summaryrefslogtreecommitdiffstats
path: root/sys/dev/hea
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/hea
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/hea')
-rw-r--r--sys/dev/hea/eni.c9
-rw-r--r--sys/dev/hea/eni.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/hea/eni.c b/sys/dev/hea/eni.c
index ae0da84..8a938df 100644
--- a/sys/dev/hea/eni.c
+++ b/sys/dev/hea/eni.c
@@ -35,6 +35,10 @@
*
*/
+#ifdef COMPILING_LINT
+#warning "The eni driver is broken and is not compiled with LINT"
+#else
+
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
@@ -62,6 +66,10 @@
__RCSID("@(#) $FreeBSD$");
#endif
+#ifndef COMPAT_OLDPCI
+#error "The eni device requires the old pci compatibility shims"
+#endif
+
/*
* Typedef local functions
*/
@@ -678,3 +686,4 @@ eni_pci_shutdown ( eup, howto )
}
#endif /* BSD < 199506 */
+#endif
diff --git a/sys/dev/hea/eni.h b/sys/dev/hea/eni.h
index e44a2a9..76b4c9c 100644
--- a/sys/dev/hea/eni.h
+++ b/sys/dev/hea/eni.h
@@ -442,7 +442,9 @@ struct mbd {
*/
struct eni_unit {
Cmn_unit eu_cmn; /* Common unit stuff */
+#ifdef COMPAT_OLDPCI
pcici_t eu_pcitag; /* PCI tag */
+#endif
Eni_mem eu_base; /* Adapter memory base */
Eni_mem eu_ram; /* Adapter RAM */
u_long eu_ramsize;
OpenPOWER on IntegriCloud