diff options
author | 2001-01-16 20:49:49 +0000 | |
---|---|---|
committer | 2001-01-16 20:49:49 +0000 | |
commit | 126e3646dd152f7088c6d62a0678445bc0fb0298 (patch) | |
tree | 132abfb2698e65d7abad4a0a1cf10abffc4bf310 /sys | |
parent | Enforce building stuff at compile time, not install time. (diff) | |
download | wireguard-openbsd-126e3646dd152f7088c6d62a0678445bc0fb0298.tar.xz wireguard-openbsd-126e3646dd152f7088c6d62a0678445bc0fb0298.zip |
fix VP3_PIRQ arg name, use I386_PCI_INTERRUPT_LINE_NO_CONNECTION; from netbsd
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/pci/via82c586.c | 7 |
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); } |