diff options
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 84225c756bd1..72401596b2a8 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -308,7 +308,7 @@ struct pci_dev { | |||
308 | unsigned int is_added:1; | 308 | unsigned int is_added:1; |
309 | unsigned int is_busmaster:1; /* device is busmaster */ | 309 | unsigned int is_busmaster:1; /* device is busmaster */ |
310 | unsigned int no_msi:1; /* device may not use msi */ | 310 | unsigned int no_msi:1; /* device may not use msi */ |
311 | unsigned int block_ucfg_access:1; /* userspace config space access is blocked */ | 311 | unsigned int block_cfg_access:1; /* config space access is blocked */ |
312 | unsigned int broken_parity_status:1; /* Device generates false positive parity */ | 312 | unsigned int broken_parity_status:1; /* Device generates false positive parity */ |
313 | unsigned int irq_reroute_variant:2; /* device needs IRQ rerouting variant */ | 313 | unsigned int irq_reroute_variant:2; /* device needs IRQ rerouting variant */ |
314 | unsigned int msi_enabled:1; | 314 | unsigned int msi_enabled:1; |
@@ -1085,8 +1085,9 @@ int ht_create_irq(struct pci_dev *dev, int idx); | |||
1085 | void ht_destroy_irq(unsigned int irq); | 1085 | void ht_destroy_irq(unsigned int irq); |
1086 | #endif /* CONFIG_HT_IRQ */ | 1086 | #endif /* CONFIG_HT_IRQ */ |
1087 | 1087 | ||
1088 | extern void pci_block_user_cfg_access(struct pci_dev *dev); | 1088 | extern void pci_cfg_access_lock(struct pci_dev *dev); |
1089 | extern void pci_unblock_user_cfg_access(struct pci_dev *dev); | 1089 | extern bool pci_cfg_access_trylock(struct pci_dev *dev); |
1090 | extern void pci_cfg_access_unlock(struct pci_dev *dev); | ||
1090 | 1091 | ||
1091 | /* | 1092 | /* |
1092 | * PCI domain support. Sometimes called PCI segment (eg by ACPI), | 1093 | * PCI domain support. Sometimes called PCI segment (eg by ACPI), |
@@ -1283,10 +1284,13 @@ static inline void pci_release_regions(struct pci_dev *dev) | |||
1283 | 1284 | ||
1284 | #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0) | 1285 | #define pci_dma_burst_advice(pdev, strat, strategy_parameter) do { } while (0) |
1285 | 1286 | ||
1286 | static inline void pci_block_user_cfg_access(struct pci_dev *dev) | 1287 | static inline void pci_block_cfg_access(struct pci_dev *dev) |
1287 | { } | 1288 | { } |
1288 | 1289 | ||
1289 | static inline void pci_unblock_user_cfg_access(struct pci_dev *dev) | 1290 | static inline int pci_block_cfg_access_in_atomic(struct pci_dev *dev) |
1291 | { return 0; } | ||
1292 | |||
1293 | static inline void pci_unblock_cfg_access(struct pci_dev *dev) | ||
1290 | { } | 1294 | { } |
1291 | 1295 | ||
1292 | static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from) | 1296 | static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from) |