summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-12-31 09:17:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-12-31 09:17:59 +0000
commit2e3726e915ae695604a012b2f1e6e60ac3754ceb (patch)
tree19dd80533d24969f106acd95c5cd7fef567768f3 /sys/arch/alpha
parentb8fb19a05702431b353055a718f2de5401350912 (diff)
semantic change: prefer unshared intr, settle for level shared. this will still fail in some cases
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/dev/shared_intr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/alpha/dev/shared_intr.c b/sys/arch/alpha/dev/shared_intr.c
index d2b31d27cf1..5d3302bc491 100644
--- a/sys/arch/alpha/dev/shared_intr.c
+++ b/sys/arch/alpha/dev/shared_intr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shared_intr.c,v 1.4 1998/12/27 00:27:18 deraadt Exp $ */
+/* $OpenBSD: shared_intr.c,v 1.5 1998/12/31 09:17:58 deraadt Exp $ */
/* $NetBSD: shared_intr.c,v 1.1 1996/11/17 02:03:08 cgd Exp $ */
/*
@@ -115,6 +115,12 @@ alpha_shared_intr_dispatch(intr, num)
return (handled);
}
+/*
+ * Just check to see if an IRQ is available/can be shared.
+ * 0 = interrupt not available
+ * 1 = interrupt shareable
+ * 2 = interrupt all to ourself
+ */
int
alpha_shared_intr_check(intr, num, type)
struct alpha_shared_intr *intr;
@@ -131,7 +137,7 @@ alpha_shared_intr_check(intr, num, type)
case IST_LEVEL:
if (type != intr[num].intr_sharetype)
return (0);
- return (2);
+ return (1);
case IST_EDGE:
case IST_PULSE:
if ((type != IST_NONE) && (intr[num].intr_q.tqh_first != NULL))