diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index abc998ffb66e..96acd0dae241 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -20,8 +20,6 @@ | |||
20 | /* Include the pci register defines */ | 20 | /* Include the pci register defines */ |
21 | #include <linux/pci_regs.h> | 21 | #include <linux/pci_regs.h> |
22 | 22 | ||
23 | struct pci_vpd; | ||
24 | |||
25 | /* | 23 | /* |
26 | * The PCI interface treats multi-function devices as independent | 24 | * The PCI interface treats multi-function devices as independent |
27 | * devices. The slot/function address of each device is encoded | 25 | * devices. The slot/function address of each device is encoded |
@@ -131,6 +129,8 @@ struct pci_cap_saved_state { | |||
131 | }; | 129 | }; |
132 | 130 | ||
133 | struct pcie_link_state; | 131 | struct pcie_link_state; |
132 | struct pci_vpd; | ||
133 | |||
134 | /* | 134 | /* |
135 | * The pci_dev structure is used to describe PCI devices. | 135 | * The pci_dev structure is used to describe PCI devices. |
136 | */ | 136 | */ |
@@ -702,6 +702,8 @@ static inline int pci_enable_msi(struct pci_dev *dev) | |||
702 | return -1; | 702 | return -1; |
703 | } | 703 | } |
704 | 704 | ||
705 | static inline void pci_msi_shutdown(struct pci_dev *dev) | ||
706 | { } | ||
705 | static inline void pci_disable_msi(struct pci_dev *dev) | 707 | static inline void pci_disable_msi(struct pci_dev *dev) |
706 | { } | 708 | { } |
707 | 709 | ||
@@ -711,6 +713,8 @@ static inline int pci_enable_msix(struct pci_dev *dev, | |||
711 | return -1; | 713 | return -1; |
712 | } | 714 | } |
713 | 715 | ||
716 | static inline void pci_msix_shutdown(struct pci_dev *dev) | ||
717 | { } | ||
714 | static inline void pci_disable_msix(struct pci_dev *dev) | 718 | static inline void pci_disable_msix(struct pci_dev *dev) |
715 | { } | 719 | { } |
716 | 720 | ||
@@ -721,9 +725,11 @@ static inline void pci_restore_msi_state(struct pci_dev *dev) | |||
721 | { } | 725 | { } |
722 | #else | 726 | #else |
723 | extern int pci_enable_msi(struct pci_dev *dev); | 727 | extern int pci_enable_msi(struct pci_dev *dev); |
728 | extern void pci_msi_shutdown(struct pci_dev *dev); | ||
724 | extern void pci_disable_msi(struct pci_dev *dev); | 729 | extern void pci_disable_msi(struct pci_dev *dev); |
725 | extern int pci_enable_msix(struct pci_dev *dev, | 730 | extern int pci_enable_msix(struct pci_dev *dev, |
726 | struct msix_entry *entries, int nvec); | 731 | struct msix_entry *entries, int nvec); |
732 | extern void pci_msix_shutdown(struct pci_dev *dev); | ||
727 | extern void pci_disable_msix(struct pci_dev *dev); | 733 | extern void pci_disable_msix(struct pci_dev *dev); |
728 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); | 734 | extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); |
729 | extern void pci_restore_msi_state(struct pci_dev *dev); | 735 | extern void pci_restore_msi_state(struct pci_dev *dev); |