Assign PCI intline values for ISA interrupts using the new INTR_VEC()

macro.
This commit is contained in:
marcel 2010-06-24 05:49:58 +00:00
parent 3bd98efb16
commit 3afd8b158b

View File

@ -470,11 +470,11 @@ pci_ocp_route_int(struct pci_ocp_softc *sc, u_int bus, u_int slot, u_int func,
devfn = DEVFN(bus, slot, func);
if (devfn == sc->sc_devfn_via_ide)
intline = 14;
intline = INTR_VEC(ATPIC_ID, 14);
else if (devfn == sc->sc_devfn_via_ide + 1)
intline = 10;
intline = INTR_VEC(ATPIC_ID, 10);
else if (devfn == sc->sc_devfn_via_ide + 2)
intline = 10;
intline = INTR_VEC(ATPIC_ID, 10);
else {
if (intpin != 0) {
intline = intpin - 1;