diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2015-05-26 15:11:44 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-05-29 17:14:17 -0500 |
commit | 19bdb6e4ec071bc49a9871b41e6a59a1657ed365 (patch) | |
tree | d058b31e972d88e4ba3a340fbad5ca3dc0c14865 /drivers/pci | |
parent | 247de694349c2eeea11b8d8936541f5012a09318 (diff) | |
download | blackbird-obmc-linux-19bdb6e4ec071bc49a9871b41e6a59a1657ed365.tar.gz blackbird-obmc-linux-19bdb6e4ec071bc49a9871b41e6a59a1657ed365.zip |
PCI: Move pci_ari_enabled() to global header
pci_ari_enabled() is useful outside of drivers/pci, particularly for
deriving INTx routing via ACPI _PRT, so move it to the global header.
Also convert to bool return.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Don Dutile <ddutile@redhat.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 9bd762c237ab..c1b2a433ca04 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -216,17 +216,6 @@ void __pci_bus_assign_resources(const struct pci_bus *bus, struct list_head *fail_head); bool pci_bus_clip_resource(struct pci_dev *dev, int idx); -/** - * pci_ari_enabled - query ARI forwarding status - * @bus: the PCI bus - * - * Returns 1 if ARI forwarding is enabled, or 0 if not enabled; - */ -static inline int pci_ari_enabled(struct pci_bus *bus) -{ - return bus->self && bus->self->ari_enabled; -} - void pci_reassigndev_resource_alignment(struct pci_dev *dev); void pci_disable_bridge_window(struct pci_dev *dev); |