aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2008-10-14 02:02:53 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-10-20 13:54:32 -0400
commit58c3a727cb73b75a9104d295f096cca12959a5a5 (patch)
tree70f1fe31f1ec12021777b6c6c49167356a864749 /drivers/pci/pci.h
parent201de56eb22f1ff3f36804bc70cbff220b50f067 (diff)
PCI: support PCIe ARI capability
This patch adds support for PCI Express Alternative Routing-ID Interpretation (ARI) capability. The ARI capability extends the Function Number field of the PCI Express Endpoint by reusing the Device Number which is otherwise hardwired to 0. With ARI, an Endpoint can have up to 256 functions. Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 601abdc8dd9..39684c1415c 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
154extern 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 */
161static 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 */