aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 7454408c41b6..559d02897075 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -806,7 +806,7 @@ size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size);
806 806
807/* Power management related routines */ 807/* Power management related routines */
808int pci_save_state(struct pci_dev *dev); 808int pci_save_state(struct pci_dev *dev);
809int pci_restore_state(struct pci_dev *dev); 809void pci_restore_state(struct pci_dev *dev);
810int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state); 810int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state);
811int pci_set_power_state(struct pci_dev *dev, pci_power_t state); 811int pci_set_power_state(struct pci_dev *dev, pci_power_t state);
812pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); 812pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state);
@@ -820,7 +820,6 @@ int pci_prepare_to_sleep(struct pci_dev *dev);
820int pci_back_from_sleep(struct pci_dev *dev); 820int pci_back_from_sleep(struct pci_dev *dev);
821bool pci_dev_run_wake(struct pci_dev *dev); 821bool pci_dev_run_wake(struct pci_dev *dev);
822bool pci_check_pme_status(struct pci_dev *dev); 822bool pci_check_pme_status(struct pci_dev *dev);
823void pci_wakeup_event(struct pci_dev *dev);
824void pci_pme_wakeup_bus(struct pci_bus *bus); 823void pci_pme_wakeup_bus(struct pci_bus *bus);
825 824
826static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, 825static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state,
@@ -994,6 +993,14 @@ extern void pci_restore_msi_state(struct pci_dev *dev);
994extern int pci_msi_enabled(void); 993extern int pci_msi_enabled(void);
995#endif 994#endif
996 995
996#ifdef CONFIG_PCIEPORTBUS
997extern bool pcie_ports_disabled;
998extern bool pcie_ports_auto;
999#else
1000#define pcie_ports_disabled true
1001#define pcie_ports_auto false
1002#endif
1003
997#ifndef CONFIG_PCIEASPM 1004#ifndef CONFIG_PCIEASPM
998static inline int pcie_aspm_enabled(void) 1005static inline int pcie_aspm_enabled(void)
999{ 1006{
@@ -1003,6 +1010,14 @@ static inline int pcie_aspm_enabled(void)
1003extern int pcie_aspm_enabled(void); 1010extern int pcie_aspm_enabled(void);
1004#endif 1011#endif
1005 1012
1013#ifdef CONFIG_PCIEAER
1014void pci_no_aer(void);
1015bool pci_aer_available(void);
1016#else
1017static inline void pci_no_aer(void) { }
1018static inline bool pci_aer_available(void) { return false; }
1019#endif
1020
1006#ifndef CONFIG_PCIE_ECRC 1021#ifndef CONFIG_PCIE_ECRC
1007static inline void pcie_set_ecrc_checking(struct pci_dev *dev) 1022static inline void pcie_set_ecrc_checking(struct pci_dev *dev)
1008{ 1023{
@@ -1168,10 +1183,8 @@ static inline int pci_save_state(struct pci_dev *dev)
1168 return 0; 1183 return 0;
1169} 1184}
1170 1185
1171static inline int pci_restore_state(struct pci_dev *dev) 1186static inline void pci_restore_state(struct pci_dev *dev)
1172{ 1187{ }
1173 return 0;
1174}
1175 1188
1176static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state) 1189static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state)
1177{ 1190{