ia64/linux-2.6.18-xen.hg

changeset 813:955d92afcbce

Backport: PCI: enhance pci_ari_enabled()

commit 6a49d8120021897e139641062236215aac5d220e
Author: Yu Zhao <yu.zhao@intel.com>
Date: Sat Nov 22 02:38:21 2008 +0800

PCI: enhance pci_ari_enabled()

Change parameter of pci_ari_enabled() from 'pci_dev' to 'pci_bus'.

ARI forwarding on the bridge mostly concerns the subordinate
devices
rather than the bridge itself. So this change will make the
function
easier to use.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 13 07:41:39 2009 +0000 (2009-03-13)
parents 44fd32e157f2
children e3cec0113535
files drivers/pci/pci.h
line diff
     1.1 --- a/drivers/pci/pci.h	Fri Mar 13 07:41:23 2009 +0000
     1.2 +++ b/drivers/pci/pci.h	Fri Mar 13 07:41:39 2009 +0000
     1.3 @@ -122,11 +122,11 @@ extern int __pci_read_base(struct pci_de
     1.4  extern void pci_enable_ari(struct pci_dev *dev);
     1.5  /**
     1.6   * pci_ari_enabled - query ARI forwarding status
     1.7 - * @dev: the PCI device
     1.8 + * @bus: the PCI bus
     1.9   *
    1.10   * Returns 1 if ARI forwarding is enabled, or 0 if not enabled;
    1.11   */
    1.12 -static inline int pci_ari_enabled(struct pci_dev *dev)
    1.13 +static inline int pci_ari_enabled(struct pci_bus *bus)
    1.14  {
    1.15 -	return dev->ari_enabled;
    1.16 +	return bus->self && bus->self->ari_enabled;
    1.17  }