aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hfa
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2001-01-17 01:08:50 +0000
committerPeter Wemm <peter@FreeBSD.org>2001-01-17 01:08:50 +0000
commitb348bd939230b734a7ec92b5d41166e1830c74c8 (patch)
treec1d7aaed9c585dc6762480238c6d360209f18e61 /sys/dev/hfa
parent8c2956e18d3d76568995592381c996e6f3cae180 (diff)
Notes
Diffstat (limited to 'sys/dev/hfa')
-rw-r--r--sys/dev/hfa/fore_load.c8
-rw-r--r--sys/dev/hfa/fore_var.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/hfa/fore_load.c b/sys/dev/hfa/fore_load.c
index be586895cc70..d7d7def5b925 100644
--- a/sys/dev/hfa/fore_load.c
+++ b/sys/dev/hfa/fore_load.c
@@ -27,6 +27,10 @@
*
*/
+#ifdef COMPILING_LINT
+#warning "The fore pci driver is broken and is not compiled with LINT"
+#else
+
/*
* FORE Systems 200-Series Adapter Support
* ---------------------------------------
@@ -77,6 +81,9 @@ static void fore_pci_shutdown __P((void *, int));
static void fore_unattach __P((Fore_unit *));
static void fore_reset __P((Fore_unit *));
+#ifndef COMPAT_OLDPCI
+#error "The fore device requires the old pci compatibility shims"
+#endif
/*
* Local variables
@@ -632,3 +639,4 @@ fore_mod(lkmtp, cmd, ver)
#endif /* ATM_LINKED */
+#endif
diff --git a/sys/dev/hfa/fore_var.h b/sys/dev/hfa/fore_var.h
index 5f844e87e752..4c0d6c2f35a1 100644
--- a/sys/dev/hfa/fore_var.h
+++ b/sys/dev/hfa/fore_var.h
@@ -166,7 +166,9 @@ struct fore_unit {
Fore_reg *fu_ctlreg; /* Device control register */
Fore_reg *fu_imask; /* Interrupt mask register */
Fore_reg *fu_psr; /* PCI specific register */
+#ifdef COMPAT_OLDPCI
pcici_t fu_pcitag; /* PCI tag */
+#endif
Fore_mem *fu_ram; /* Device RAM */
u_int fu_ramsize; /* Size of device RAM */
Mon960 *fu_mon; /* Monitor program interface */