diff options
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 398852f526a6..a4f2d580625e 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* Functions internal to the PCI core code */ | 1 | /* Functions internal to the PCI core code */ |
2 | 2 | ||
3 | extern int __must_check __pci_enable_device(struct pci_dev *); | 3 | extern int __must_check __pci_reenable_device(struct pci_dev *); |
4 | extern int pci_uevent(struct device *dev, char **envp, int num_envp, | 4 | extern int pci_uevent(struct device *dev, char **envp, int num_envp, |
5 | char *buffer, int buffer_size); | 5 | char *buffer, int buffer_size); |
6 | extern int pci_create_sysfs_dev_files(struct pci_dev *pdev); | 6 | extern int pci_create_sysfs_dev_files(struct pci_dev *pdev); |
@@ -43,12 +43,8 @@ extern void pci_remove_legacy_files(struct pci_bus *bus); | |||
43 | /* Lock for read/write access to pci device and bus lists */ | 43 | /* Lock for read/write access to pci device and bus lists */ |
44 | extern struct rw_semaphore pci_bus_sem; | 44 | extern struct rw_semaphore pci_bus_sem; |
45 | 45 | ||
46 | #ifdef CONFIG_PCI_MSI | ||
47 | extern int pci_msi_quirk; | ||
48 | #else | ||
49 | #define pci_msi_quirk 0 | ||
50 | #endif | ||
51 | extern unsigned int pci_pm_d3_delay; | 46 | extern unsigned int pci_pm_d3_delay; |
47 | |||
52 | #ifdef CONFIG_PCI_MSI | 48 | #ifdef CONFIG_PCI_MSI |
53 | void disable_msi_mode(struct pci_dev *dev, int pos, int type); | 49 | void disable_msi_mode(struct pci_dev *dev, int pos, int type); |
54 | void pci_no_msi(void); | 50 | void pci_no_msi(void); |
@@ -56,17 +52,15 @@ void pci_no_msi(void); | |||
56 | static inline void disable_msi_mode(struct pci_dev *dev, int pos, int type) { } | 52 | static inline void disable_msi_mode(struct pci_dev *dev, int pos, int type) { } |
57 | static inline void pci_no_msi(void) { } | 53 | static inline void pci_no_msi(void) { } |
58 | #endif | 54 | #endif |
55 | |||
59 | #if defined(CONFIG_PCI_MSI) && defined(CONFIG_PM) | 56 | #if defined(CONFIG_PCI_MSI) && defined(CONFIG_PM) |
60 | int pci_save_msi_state(struct pci_dev *dev); | 57 | int pci_save_msi_state(struct pci_dev *dev); |
61 | int pci_save_msix_state(struct pci_dev *dev); | ||
62 | void pci_restore_msi_state(struct pci_dev *dev); | 58 | void pci_restore_msi_state(struct pci_dev *dev); |
63 | void pci_restore_msix_state(struct pci_dev *dev); | ||
64 | #else | 59 | #else |
65 | static inline int pci_save_msi_state(struct pci_dev *dev) { return 0; } | 60 | static inline int pci_save_msi_state(struct pci_dev *dev) { return 0; } |
66 | static inline int pci_save_msix_state(struct pci_dev *dev) { return 0; } | ||
67 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} | 61 | static inline void pci_restore_msi_state(struct pci_dev *dev) {} |
68 | static inline void pci_restore_msix_state(struct pci_dev *dev) {} | ||
69 | #endif | 62 | #endif |
63 | |||
70 | static inline int pci_no_d1d2(struct pci_dev *dev) | 64 | static inline int pci_no_d1d2(struct pci_dev *dev) |
71 | { | 65 | { |
72 | unsigned int parent_dstates = 0; | 66 | unsigned int parent_dstates = 0; |