Changeset View
Changeset View
Standalone View
Standalone View
FreeBSD/sys/dev/pci/pci_pci.c
Context not available. | |||||
} | } | ||||
static void | static void | ||||
pcib_pcie_intr(void *arg) | pcib_pcie_intr_hotplug(void *arg) | ||||
{ | { | ||||
struct pcib_softc *sc; | struct pcib_softc *sc; | ||||
device_t dev; | device_t dev; | ||||
Context not available. | |||||
} else { | } else { | ||||
device_printf(dev, | device_printf(dev, | ||||
"Missed HotPlug interrupt waiting for Command Completion\n"); | "Missed HotPlug interrupt waiting for Command Completion\n"); | ||||
pcib_pcie_intr(sc); | pcib_pcie_intr_hotplug(sc); | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
} else if (sta != sc->pcie_link_sta) { | } else if (sta != sc->pcie_link_sta) { | ||||
device_printf(dev, | device_printf(dev, | ||||
"Missed HotPlug interrupt waiting for DLL Active\n"); | "Missed HotPlug interrupt waiting for DLL Active\n"); | ||||
pcib_pcie_intr(sc); | pcib_pcie_intr_hotplug(sc); | ||||
} | } | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
error = bus_setup_intr(dev, sc->pcie_irq, INTR_TYPE_MISC, | error = bus_setup_intr(dev, sc->pcie_irq, INTR_TYPE_MISC, | ||||
NULL, pcib_pcie_intr, sc, &sc->pcie_ihand); | NULL, pcib_pcie_intr_hotplug, sc, &sc->pcie_ihand); | ||||
if (error) { | if (error) { | ||||
device_printf(dev, "Failed to setup PCI-e interrupt handler\n"); | device_printf(dev, "Failed to setup PCI-e interrupt handler\n"); | ||||
bus_release_resource(dev, SYS_RES_IRQ, rid, sc->pcie_irq); | bus_release_resource(dev, SYS_RES_IRQ, rid, sc->pcie_irq); | ||||
Context not available. |