aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-12-20 14:41:40 -0500
committerBjorn Helgaas <bhelgaas@google.com>2013-12-20 14:41:40 -0500
commit47e0ab3f39aec53d9b7ac77dbe11a645e40583f9 (patch)
tree2d7c413a4bf808851f990416ce75c2c978332323 /include/linux/pci.h
parentf72e11123ba122c4ed8fcee52ab57cf3fbe81178 (diff)
parent52179dc9edc3b7a2b3bb01cbb1b6c96f6d05fc73 (diff)
Merge branch 'pci/msi' into next
* pci/msi: PCI/MSI: Make pci_enable_msi/msix() 'nvec' argument type as int PCI/MSI: Return -ENOSYS for unimplemented interfaces, not -1 PCI/MSI: Return msix_capability_init() failure if populate_msi_sysfs() fails s390/PCI: Remove superfluous check of MSI type s390/PCI: Fix single MSI only check PCI/MSI: Export MSI mode using attributes, not kobjects
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index f16fb1f01317..9172cc2a3041 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -352,7 +352,7 @@ struct pci_dev {
352 struct bin_attribute *res_attr_wc[DEVICE_COUNT_RESOURCE]; /* sysfs file for WC mapping of resources */ 352 struct bin_attribute *res_attr_wc[DEVICE_COUNT_RESOURCE]; /* sysfs file for WC mapping of resources */
353#ifdef CONFIG_PCI_MSI 353#ifdef CONFIG_PCI_MSI
354 struct list_head msi_list; 354 struct list_head msi_list;
355 struct kset *msi_kset; 355 const struct attribute_group **msi_irq_groups;
356#endif 356#endif
357 struct pci_vpd *vpd; 357 struct pci_vpd *vpd;
358#ifdef CONFIG_PCI_ATS 358#ifdef CONFIG_PCI_ATS
@@ -1167,15 +1167,15 @@ struct msix_entry {
1167 1167
1168 1168
1169#ifndef CONFIG_PCI_MSI 1169#ifndef CONFIG_PCI_MSI
1170static inline int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec) 1170static inline int pci_enable_msi_block(struct pci_dev *dev, int nvec)
1171{ 1171{
1172 return -1; 1172 return -ENOSYS;
1173} 1173}
1174 1174
1175static inline int 1175static inline int
1176pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec) 1176pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec)
1177{ 1177{
1178 return -1; 1178 return -ENOSYS;
1179} 1179}
1180 1180
1181static inline void pci_msi_shutdown(struct pci_dev *dev) 1181static inline void pci_msi_shutdown(struct pci_dev *dev)
@@ -1190,7 +1190,7 @@ static inline int pci_msix_table_size(struct pci_dev *dev)
1190static inline int pci_enable_msix(struct pci_dev *dev, 1190static inline int pci_enable_msix(struct pci_dev *dev,
1191 struct msix_entry *entries, int nvec) 1191 struct msix_entry *entries, int nvec)
1192{ 1192{
1193 return -1; 1193 return -ENOSYS;
1194} 1194}
1195 1195
1196static inline void pci_msix_shutdown(struct pci_dev *dev) 1196static inline void pci_msix_shutdown(struct pci_dev *dev)
@@ -1208,8 +1208,8 @@ static inline int pci_msi_enabled(void)
1208 return 0; 1208 return 0;
1209} 1209}
1210#else 1210#else
1211int pci_enable_msi_block(struct pci_dev *dev, unsigned int nvec); 1211int pci_enable_msi_block(struct pci_dev *dev, int nvec);
1212int pci_enable_msi_block_auto(struct pci_dev *dev, unsigned int *maxvec); 1212int pci_enable_msi_block_auto(struct pci_dev *dev, int *maxvec);
1213void pci_msi_shutdown(struct pci_dev *dev); 1213void pci_msi_shutdown(struct pci_dev *dev);
1214void pci_disable_msi(struct pci_dev *dev); 1214void pci_disable_msi(struct pci_dev *dev);
1215int pci_msix_table_size(struct pci_dev *dev); 1215int pci_msix_table_size(struct pci_dev *dev);