summaryrefslogtreecommitdiffstats
path: root/sys/dev/hfa
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-01-17 01:08:50 +0000
committerpeter <peter@FreeBSD.org>2001-01-17 01:08:50 +0000
commit69aff11b5db450d01fcdd725b06997b5064c6461 (patch)
tree083a1655da30b9412b2e11ce20bb8756bc90c193 /sys/dev/hfa
parent136bb589b55a34b9c00424c70b0776e4322018f7 (diff)
downloadFreeBSD-src-69aff11b5db450d01fcdd725b06997b5064c6461.zip
FreeBSD-src-69aff11b5db450d01fcdd725b06997b5064c6461.tar.gz
Minor tweaks to get these to stop breaking LINT. They still dont work
and emit warnings, but we need to get the test coverage elsewhere.
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 be58689..d7d7def 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 5f844e8..4c0d6c2 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 */
OpenPOWER on IntegriCloud