aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2009-01-23 18:21:14 -0500
committerJesse Barnes <jbarnes@hobbes.lan>2009-03-19 22:29:25 -0400
commita52e2e3513d4beafe8fe8699f1519b021c2d05ba (patch)
tree4a2aea26275e0ffe58e53629e50696b559b8c6e0 /include
parenta447b772826fde2a3abfd9bb943dee8750994c55 (diff)
PCI/MSI: Introduce pci_msix_table_size()
Introduce new function pci_msix_table_size() returning the size of the MSI-X table of given PCI device or 0 if the device doesn't support MSI-X. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 7bd624bfdcfd..b5d6d0e0f1cb 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -799,6 +799,10 @@ static inline void pci_msi_shutdown(struct pci_dev *dev)
799static inline void pci_disable_msi(struct pci_dev *dev) 799static inline void pci_disable_msi(struct pci_dev *dev)
800{ } 800{ }
801 801
802static inline int pci_msix_table_size(struct pci_dev *dev)
803{
804 return 0;
805}
802static inline int pci_enable_msix(struct pci_dev *dev, 806static inline int pci_enable_msix(struct pci_dev *dev,
803 struct msix_entry *entries, int nvec) 807 struct msix_entry *entries, int nvec)
804{ 808{
@@ -823,6 +827,7 @@ static inline int pci_msi_enabled(void)
823extern int pci_enable_msi(struct pci_dev *dev); 827extern int pci_enable_msi(struct pci_dev *dev);
824extern void pci_msi_shutdown(struct pci_dev *dev); 828extern void pci_msi_shutdown(struct pci_dev *dev);
825extern void pci_disable_msi(struct pci_dev *dev); 829extern void pci_disable_msi(struct pci_dev *dev);
830extern int pci_msix_table_size(struct pci_dev *dev);
826extern int pci_enable_msix(struct pci_dev *dev, 831extern int pci_enable_msix(struct pci_dev *dev,
827 struct msix_entry *entries, int nvec); 832 struct msix_entry *entries, int nvec);
828extern void pci_msix_shutdown(struct pci_dev *dev); 833extern void pci_msix_shutdown(struct pci_dev *dev);