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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 2599a980340f..7256f33b6a15 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -367,6 +367,12 @@ struct pci_dev {
367 int rom_attr_enabled; /* has display of the rom attribute been enabled? */ 367 int rom_attr_enabled; /* has display of the rom attribute been enabled? */
368 struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */ 368 struct bin_attribute *res_attr[DEVICE_COUNT_RESOURCE]; /* sysfs file for resources */
369 struct bin_attribute *res_attr_wc[DEVICE_COUNT_RESOURCE]; /* sysfs file for WC mapping of resources */ 369 struct bin_attribute *res_attr_wc[DEVICE_COUNT_RESOURCE]; /* sysfs file for WC mapping of resources */
370
371#ifdef CONFIG_PCIE_PTM
372 unsigned int ptm_root:1;
373 unsigned int ptm_enabled:1;
374 u8 ptm_granularity;
375#endif
370#ifdef CONFIG_PCI_MSI 376#ifdef CONFIG_PCI_MSI
371 const struct attribute_group **msi_irq_groups; 377 const struct attribute_group **msi_irq_groups;
372#endif 378#endif
@@ -1402,6 +1408,13 @@ static inline void pci_disable_ats(struct pci_dev *d) { }
1402static inline int pci_ats_queue_depth(struct pci_dev *d) { return -ENODEV; } 1408static inline int pci_ats_queue_depth(struct pci_dev *d) { return -ENODEV; }
1403#endif 1409#endif
1404 1410
1411#ifdef CONFIG_PCIE_PTM
1412int pci_enable_ptm(struct pci_dev *dev, u8 *granularity);
1413#else
1414static inline int pci_enable_ptm(struct pci_dev *dev, u8 *granularity)
1415{ return -EINVAL; }
1416#endif
1417
1405void pci_cfg_access_lock(struct pci_dev *dev); 1418void pci_cfg_access_lock(struct pci_dev *dev);
1406bool pci_cfg_access_trylock(struct pci_dev *dev); 1419bool pci_cfg_access_trylock(struct pci_dev *dev);
1407void pci_cfg_access_unlock(struct pci_dev *dev); 1420void pci_cfg_access_unlock(struct pci_dev *dev);