aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pci-acpi.h6
-rw-r--r--include/linux/pci.h11
2 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h
index c8b6473c5f42..479d9bb88e11 100644
--- a/include/linux/pci-acpi.h
+++ b/include/linux/pci-acpi.h
@@ -40,4 +40,10 @@ static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
40{ return NULL; } 40{ return NULL; }
41#endif 41#endif
42 42
43#ifdef CONFIG_ACPI_APEI
44extern bool aer_acpi_firmware_first(void);
45#else
46static inline bool aer_acpi_firmware_first(void) { return false; }
47#endif
48
43#endif /* _PCI_ACPI_H_ */ 49#endif /* _PCI_ACPI_H_ */
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 63cbadce337e..12dd86a82a15 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -994,6 +994,9 @@ extern void pci_restore_msi_state(struct pci_dev *dev);
994extern int pci_msi_enabled(void); 994extern int pci_msi_enabled(void);
995#endif 995#endif
996 996
997extern bool pcie_ports_disabled;
998extern bool pcie_ports_auto;
999
997#ifndef CONFIG_PCIEASPM 1000#ifndef CONFIG_PCIEASPM
998static inline int pcie_aspm_enabled(void) 1001static inline int pcie_aspm_enabled(void)
999{ 1002{
@@ -1003,6 +1006,14 @@ static inline int pcie_aspm_enabled(void)
1003extern int pcie_aspm_enabled(void); 1006extern int pcie_aspm_enabled(void);
1004#endif 1007#endif
1005 1008
1009#ifdef CONFIG_PCIEAER
1010void pci_no_aer(void);
1011bool pci_aer_available(void);
1012#else
1013static inline void pci_no_aer(void) { }
1014static inline bool pci_aer_available(void) { return false; }
1015#endif
1016
1006#ifndef CONFIG_PCIE_ECRC 1017#ifndef CONFIG_PCIE_ECRC
1007static inline void pcie_set_ecrc_checking(struct pci_dev *dev) 1018static inline void pcie_set_ecrc_checking(struct pci_dev *dev)
1008{ 1019{