diff options
author | mdodd <mdodd@FreeBSD.org> | 2002-10-01 22:04:31 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2002-10-01 22:04:31 +0000 |
commit | 4f0de203e7e0e751f97ca6df568525dfa72697cd (patch) | |
tree | b2939f98b56d82734e98808b1bbf8520059cf333 /sys/dev/hea | |
parent | 912eab446573796044de866095ea99a8fe3af29a (diff) | |
download | FreeBSD-src-4f0de203e7e0e751f97ca6df568525dfa72697cd.zip FreeBSD-src-4f0de203e7e0e751f97ca6df568525dfa72697cd.tar.gz |
Add a field to struct cmn_unit to hold a pointer to the driver's softc.
Diffstat (limited to 'sys/dev/hea')
-rw-r--r-- | sys/dev/hea/eni.h | 1 | ||||
-rw-r--r-- | sys/dev/hea/hea_freebsd.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/hea/eni.h b/sys/dev/hea/eni.h index dde8788..e3fd644 100644 --- a/sys/dev/hea/eni.h +++ b/sys/dev/hea/eni.h @@ -499,5 +499,6 @@ typedef struct eni_unit Eni_unit; #define eu_closevcc eu_cmn.cu_closevcc #define eu_output eu_cmn.cu_output #define eu_config eu_cmn.cu_config +#define eu_softc eu_cmn.cu_softc #endif /* _ENI_ENI_H */ diff --git a/sys/dev/hea/hea_freebsd.c b/sys/dev/hea/hea_freebsd.c index 08b9e75..6efabb5 100644 --- a/sys/dev/hea/hea_freebsd.c +++ b/sys/dev/hea/hea_freebsd.c @@ -184,6 +184,7 @@ hea_attach (device_t dev) eup->eu_output = eni_output; eup->eu_pcitag = dev; + eup->eu_softc = (void *)sc; /* * Map memory structures into adapter space |