summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/isa.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1995-04-23 09:13:08 +0000
committerjulian <julian@FreeBSD.org>1995-04-23 09:13:08 +0000
commita54d9b63a502546b0da813c5e41258d47986602d (patch)
tree2d27ea91f804c548a5b3f12e0c4b4e175fa20b3c /sys/i386/isa/isa.c
parentae0cae0135cf10da17f00608dd3bd9048af901d1 (diff)
downloadFreeBSD-src-a54d9b63a502546b0da813c5e41258d47986602d.zip
FreeBSD-src-a54d9b63a502546b0da813c5e41258d47986602d.tar.gz
include hooks for EISA configuration (possibly wrong :)
Diffstat (limited to 'sys/i386/isa/isa.c')
-rw-r--r--sys/i386/isa/isa.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/sys/i386/isa/isa.c b/sys/i386/isa/isa.c
index 2422893..edb6ba3 100644
--- a/sys/i386/isa/isa.c
+++ b/sys/i386/isa/isa.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)isa.c 7.2 (Berkeley) 5/13/91
- * $Id: isa.c,v 1.44 1995/04/06 13:55:56 ache Exp $
+ * $Id: isa.c,v 1.45 1995/04/12 20:47:54 wollman Exp $
*/
/*
@@ -86,15 +86,6 @@
#define DMA2_FFC (IO_DMA2 + 2*12) /* clear first/last FF */
/*
- * Bits to specify the type and amount of conflict checking.
- */
-#define CC_ATTACH (1 << 0)
-#define CC_DRQ (1 << 1)
-#define CC_IOADDR (1 << 2)
-#define CC_IRQ (1 << 3)
-#define CC_MEMADDR (1 << 4)
-
-/*
* XXX these defines should be in a central place.
*/
#define read_eflags() ({u_long ef; \
@@ -147,7 +138,6 @@ static void conflict __P((struct isa_device *dvp, struct isa_device *tmpdvp,
char const *format));
static int haveseen __P((struct isa_device *dvp, struct isa_device *tmpdvp,
u_int checkbits));
-static int haveseen_isadev __P((struct isa_device *dvp, u_int checkbits));
static inthand2_t isa_strayintr;
static void register_imask __P((struct isa_device *dvp, u_int mask));
@@ -249,7 +239,12 @@ haveseen(dvp, tmpdvp, checkbits)
* Search through all the isa_devtab_* tables looking for anything that
* conflicts with the current device.
*/
-static int
+#include "eisa.h"
+#if NEISA > 0
+extern struct isa_device isa_devtab_eisa[];
+#endif
+
+int
haveseen_isadev(dvp, checkbits)
struct isa_device *dvp;
u_int checkbits;
@@ -277,6 +272,13 @@ haveseen_isadev(dvp, checkbits)
if (status)
return status;
}
+#if NEISA > 0
+ for (tmpdvp = isa_devtab_eisa; tmpdvp->id_driver; tmpdvp++) {
+ status |= haveseen(dvp, tmpdvp, checkbits);
+ if (status)
+ return status;
+ }
+#endif
return(status);
}
OpenPOWER on IntegriCloud