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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 7a0770d4c4e2..e09c57e9c373 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -701,6 +701,8 @@ static inline int pci_enable_msi(struct pci_dev *dev)
701 return -1; 701 return -1;
702} 702}
703 703
704static inline void pci_msi_shutdown(struct pci_dev *dev)
705{ }
704static inline void pci_disable_msi(struct pci_dev *dev) 706static inline void pci_disable_msi(struct pci_dev *dev)
705{ } 707{ }
706 708
@@ -710,6 +712,8 @@ static inline int pci_enable_msix(struct pci_dev *dev,
710 return -1; 712 return -1;
711} 713}
712 714
715static inline void pci_msix_shutdown(struct pci_dev *dev)
716{ }
713static inline void pci_disable_msix(struct pci_dev *dev) 717static inline void pci_disable_msix(struct pci_dev *dev)
714{ } 718{ }
715 719
@@ -720,9 +724,11 @@ static inline void pci_restore_msi_state(struct pci_dev *dev)
720{ } 724{ }
721#else 725#else
722extern int pci_enable_msi(struct pci_dev *dev); 726extern int pci_enable_msi(struct pci_dev *dev);
727extern void pci_msi_shutdown(struct pci_dev *dev);
723extern void pci_disable_msi(struct pci_dev *dev); 728extern void pci_disable_msi(struct pci_dev *dev);
724extern int pci_enable_msix(struct pci_dev *dev, 729extern int pci_enable_msix(struct pci_dev *dev,
725 struct msix_entry *entries, int nvec); 730 struct msix_entry *entries, int nvec);
731extern void pci_msix_shutdown(struct pci_dev *dev);
726extern void pci_disable_msix(struct pci_dev *dev); 732extern void pci_disable_msix(struct pci_dev *dev);
727extern void msi_remove_pci_irq_vectors(struct pci_dev *dev); 733extern void msi_remove_pci_irq_vectors(struct pci_dev *dev);
728extern void pci_restore_msi_state(struct pci_dev *dev); 734extern void pci_restore_msi_state(struct pci_dev *dev);