summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa/isa_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/isa/isa_machdep.c')
-rw-r--r--sys/arch/i386/isa/isa_machdep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/isa_machdep.c b/sys/arch/i386/isa/isa_machdep.c
index 23f2b2370a0..2193fddeb99 100644
--- a/sys/arch/i386/isa/isa_machdep.c
+++ b/sys/arch/i386/isa/isa_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isa_machdep.c,v 1.31 1998/07/17 22:00:00 deraadt Exp $ */
+/* $OpenBSD: isa_machdep.c,v 1.32 1998/12/27 00:27:16 deraadt Exp $ */
/* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */
#define ISA_DMA_STATS
@@ -446,6 +446,7 @@ isa_intr_alloc(ic, mask, type, irq)
/*
* Just check to see if an IRQ is available/can be shared.
+ * 0 = no match, 1 = ok match, 2 = great match
*/
int
isa_intr_check(ic, irq, type)
@@ -458,12 +459,14 @@ isa_intr_check(ic, irq, type)
switch (intrtype[irq]) {
case IST_NONE:
+ return (2);
break;
- case IST_EDGE:
case IST_LEVEL:
if (type != intrtype[irq])
return (0);
+ return (2);
break;
+ case IST_EDGE:
case IST_PULSE:
if (type != IST_NONE)
return (0);