summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-11-06 18:11:48 +0100
committerBjorn Helgaas <bhelgaas@google.com>2013-11-07 22:44:27 +0100
commitc6bde215acfd637708142ae671843b6f0eadbc6d (patch)
tree675cb68ac1aff4f6444e231956dc55ec92a8cb61 /drivers/pci/pci.c
parentPCI: Add x86_msi.msi_mask_irq() and msix_mask_irq() (diff)
downloadlinux-c6bde215acfd637708142ae671843b6f0eadbc6d.tar.xz
linux-c6bde215acfd637708142ae671843b6f0eadbc6d.zip
PCI: Add pci_upstream_bridge()
This adds a pci_upstream_bridge() interface to find the PCI-to-PCI bridge upstream from a device. This is typically just "dev->bus->self", but in the case of a VF on a virtual bus, we have to start from the corresponding PF. Returns NULL if there is no upstream PCI bridge, i.e., if the device is on a root bus. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions