summaryrefslogtreecommitdiffstats
path: root/sys/dev/hfa
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2002-10-01 22:04:31 +0000
committermdodd <mdodd@FreeBSD.org>2002-10-01 22:04:31 +0000
commit4f0de203e7e0e751f97ca6df568525dfa72697cd (patch)
treeb2939f98b56d82734e98808b1bbf8520059cf333 /sys/dev/hfa
parent912eab446573796044de866095ea99a8fe3af29a (diff)
downloadFreeBSD-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/hfa')
-rw-r--r--sys/dev/hfa/fore_var.h1
-rw-r--r--sys/dev/hfa/hfa_freebsd.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/hfa/fore_var.h b/sys/dev/hfa/fore_var.h
index 20856e8..6f7dd4c 100644
--- a/sys/dev/hfa/fore_var.h
+++ b/sys/dev/hfa/fore_var.h
@@ -245,6 +245,7 @@ typedef struct fore_unit Fore_unit;
#define fu_closevcc fu_cmn.cu_closevcc
#define fu_output fu_cmn.cu_output
#define fu_config fu_cmn.cu_config
+#define fu_softc fu_cmn.cu_softc
/*
* Device flags (in addition to CUF_* flags)
diff --git a/sys/dev/hfa/hfa_freebsd.c b/sys/dev/hfa/hfa_freebsd.c
index 40af3f8..67e4e76 100644
--- a/sys/dev/hfa/hfa_freebsd.c
+++ b/sys/dev/hfa/hfa_freebsd.c
@@ -176,6 +176,7 @@ hfa_attach (device_t dev)
fup->fu_openvcc = fore_openvcc;
fup->fu_closevcc = fore_closevcc;
fup->fu_output = fore_output;
+ fup->fu_softc = (void *)sc;
callout_handle_init(&fup->fu_thandle);
OpenPOWER on IntegriCloud