10 #include <linux/module.h>
11 #include <linux/pci.h>
12 #include <linux/kernel.h>
13 #include <linux/errno.h>
22 #ifdef CONFIG_ACPI_APEI
27 p->
bus == pci->
bus->number &&
32 struct aer_hest_parse_info {
39 struct aer_hest_parse_info *
info =
data;
45 switch (hest_hdr->
type) {
62 if ((pci_is_pcie(info->pci_dev) &&
63 pci_pcie_type(info->pci_dev) == pcie_type) || bridge)
66 if (hest_match_pci(p, info->pci_dev))
68 info->firmware_first = ff;
76 struct aer_hest_parse_info info = {
90 int pcie_aer_get_firmware_first(
struct pci_dev *
dev)
93 aer_set_firmware_first(dev);
97 static bool aer_firmware_first;
103 if (aer_firmware_first)
106 switch (hest_hdr->
type) {
120 bool aer_acpi_firmware_first(
void)
122 static bool parsed =
false;
128 return aer_firmware_first;