diff options
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 601abdc8dd9f..39684c1415c5 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -151,4 +151,16 @@ struct pci_slot_attribute { | |||
151 | }; | 151 | }; |
152 | #define to_pci_slot_attr(s) container_of(s, struct pci_slot_attribute, attr) | 152 | #define to_pci_slot_attr(s) container_of(s, struct pci_slot_attribute, attr) |
153 | 153 | ||
154 | extern void pci_enable_ari(struct pci_dev *dev); | ||
155 | /** | ||
156 | * pci_ari_enabled - query ARI forwarding status | ||
157 | * @dev: the PCI device | ||
158 | * | ||
159 | * Returns 1 if ARI forwarding is enabled, or 0 if not enabled; | ||
160 | */ | ||
161 | static inline int pci_ari_enabled(struct pci_dev *dev) | ||
162 | { | ||
163 | return dev->ari_enabled; | ||
164 | } | ||
165 | |||
154 | #endif /* DRIVERS_PCI_H */ | 166 | #endif /* DRIVERS_PCI_H */ |