View | Details | Raw Unified | Return to bug 211081
Collapse All | Expand All

(-)pci_pci.c (+8 lines)
Lines 907-917 pcib_set_mem_decode(struct pcib_softc *sc) Link Here
907
/*
907
/*
908
 * PCI-express HotPlug support.
908
 * PCI-express HotPlug support.
909
 */
909
 */
910
static int pci_enable_pcie_hp = 1;
911
SYSCTL_INT(_hw_pci, OID_AUTO, enable_pcie_hp, CTLFLAG_RDTUN,
912
    &pci_enable_pcie_hp, 0,
913
    "Enable support for native PCI-express HotPlug.");
914
910
static void
915
static void
911
pcib_probe_hotplug(struct pcib_softc *sc)
916
pcib_probe_hotplug(struct pcib_softc *sc)
912
{
917
{
913
	device_t dev;
918
	device_t dev;
914
919
920
	if (!pci_enable_pcie_hp)
921
		return;
922
915
	dev = sc->dev;
923
	dev = sc->dev;
916
	if (pci_find_cap(dev, PCIY_EXPRESS, NULL) != 0)
924
	if (pci_find_cap(dev, PCIY_EXPRESS, NULL) != 0)
917
		return;
925
		return;

Return to bug 211081