Assign PCI intline values for ISA interrupts using the new INTR_VEC()
macro.
This commit is contained in:
parent
3bd98efb16
commit
3afd8b158b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user