#include <linux/module.h>
#include <linux/cpumask.h>
#include <linux/pci-aspm.h>
-#include <acpi/acpi_hest.h>
#include "pci.h"
#define CARDBUS_LATENCY_TIMER 176 /* secondary latency timer */
pdev->is_hotplug_bridge = 1;
}
-static void set_pci_aer_firmware_first(struct pci_dev *pdev)
-{
- if (acpi_hest_firmware_first_pci(pdev))
- pdev->aer_firmware_first = 1;
-}
-
#define LEGACY_IO_RESOURCE (IORESOURCE_IO | IORESOURCE_PCI_FIXED)
/**
dev->multifunction = !!(hdr_type & 0x80);
dev->error_state = pci_channel_io_normal;
set_pcie_port_type(dev);
- set_pci_aer_firmware_first(dev);
list_for_each_entry(slot, &dev->bus->slots, list)
if (PCI_SLOT(dev->devfn) == slot->number)
/* Vital Product Data */
pci_vpd_pci22_init(dev);
-#ifdef CONFIG_XEN
- if (!is_initial_xendomain())
- return;
-#endif
-
/* Alternative Routing-ID Forwarding */
pci_enable_ari(dev);
return 0; /* Already scanned the entire slot */
dev = pci_scan_single_device(bus, devfn);
- if (!dev) {
-#ifdef pcibios_scan_all_fns
- if (!pcibios_scan_all_fns(bus, devfn))
-#endif
+ if (!dev)
return 0;
- } else if (!dev->is_added)
+ if (!dev->is_added)
nr++;
if (pci_ari_enabled(bus))
next_fn = next_ari_fn;
-#ifdef pcibios_scan_all_fns
- else if (pcibios_scan_all_fns(bus, devfn))
- next_fn = next_trad_fn;
-#endif
else if (dev->multifunction)
next_fn = next_trad_fn;