summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-16 14:35:08 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-16 14:35:08 +0000
commit18c5ba9157ed013a40d5dc3715db90df2b0930bb (patch)
tree6ff5edc7c6e0e8896cd033a5910c69cbd8607a3f /sys/dev
parent4d1d14bef70e1c72dd6e326646e91646c9a4405b (diff)
add a point from tht_softc back to thtc_softc so we can use thtc's bus
space bits.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_tht.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index e52c1c2d003..65e44645b90 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.10 2007/04/16 14:33:35 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.11 2007/04/16 14:35:07 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -89,6 +89,7 @@ struct cfdriver thtc_cd = {
struct tht_softc {
struct device sc_dev;
+ struct thtc_softc *sc_thtc;
void *sc_ih;
@@ -229,6 +230,8 @@ tht_attach(struct device *parent, struct device *self, void *aux)
struct tht_softc *sc = (struct tht_softc *)self;
struct tht_attach_args *taa = aux;
+ sc->sc_thtc = csc;
+
if (bus_space_subregion(csc->sc_memt, csc->sc_memh,
THT_PORT_REGION(taa->taa_port), THT_PORT_SIZE,
&sc->sc_memh) != 0) {