summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-16 20:49:50 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-16 20:49:50 +0000
commit4d1f45e1f6b95f3da8c81dd0ebacdc0ba3601c77 (patch)
tree9e670eb831cbafa4f5c59bafc82bf05c281d5441 /sys/arch/i386
parentcb24929e9b7bb91f9f3c46a7d43bf98bc41eb0ad (diff)
fix VP3_PIRQ arg name, use I386_PCI_INTERRUPT_LINE_NO_CONNECTION; from netbsd
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/pci/via82c586.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/pci/via82c586.c b/sys/arch/i386/pci/via82c586.c
index 3fbb31c645e..3894006a6c0 100644
--- a/sys/arch/i386/pci/via82c586.c
+++ b/sys/arch/i386/pci/via82c586.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: via82c586.c,v 1.4 2000/08/02 02:42:50 mickey Exp $ */
+/* $OpenBSD: via82c586.c,v 1.5 2001/01/16 20:49:49 mickey Exp $ */
/* $NetBSD: via82c586.c,v 1.2 2000/07/18 11:24:09 soda Exp $ */
/*-
@@ -113,7 +113,7 @@ const int vp3_cfg_intr_shift[] = {
VP3_CFG_INTR_SHIFT_PIRQD,
};
-#define VP3_PIRQ(req, pirq) (((reg) >> vp3_cfg_intr_shift[(pirq)]) & \
+#define VP3_PIRQ(reg, pirq) (((reg) >> vp3_cfg_intr_shift[(pirq)]) & \
VP3_CFG_INTR_MASK)
int
@@ -171,7 +171,8 @@ via82c586_get_intr(v, clink, irqp)
reg = pci_conf_read(ph->ph_pc, ph->ph_tag, VP3_CFG_PIRQ_REG);
val = VP3_PIRQ(reg, clink);
- *irqp = (val == VP3_PIRQ_NONE) ? 0xff : val;
+ *irqp = (val == VP3_PIRQ_NONE)?
+ I386_PCI_INTERRUPT_LINE_NO_CONNECTION : val;
return (0);
}