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/idt | |
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/idt')
-rw-r--r-- | sys/dev/idt/idt_harp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/idt/idt_harp.c b/sys/dev/idt/idt_harp.c index ace90ef..44886c8 100644 --- a/sys/dev/idt/idt_harp.c +++ b/sys/dev/idt/idt_harp.c @@ -109,6 +109,7 @@ #define iu_closevcc iu_cmn.cu_closevcc #define iu_output iu_cmn.cu_output #define iu_config iu_cmn.cu_config +#define iu_softc iu_cmn.cu_softc /* * ATM Interface services @@ -313,6 +314,7 @@ idt_harp_init(nicstar_reg_t *idt) idt->iu_output = idt_output; idt->iu_vcc_zone = idt_vcc_zone; idt->iu_nif_zone = idt_nif_zone; + idt->iu_softc = (void *)idt; /* * Copy serial number into config space |