qemu/include/hw/pci
David Gibson c473d18da1 pci: Use helper to find device's root bus in pci_find_domain()
Currently pci_find_domain() performs two functions - it locates the PCI
root bus above the given bus, then looks up that root bus's domain number.
This patch adds a helper function to perform the first task, finding the
root bus for a given PCI device.  This is then used in pci_find_domain().
This changes pci_find_domain()'s signature slightly, taking a PCIDevice
instead of a PCIBus - since all callers passed something of the form
dev->bus, this simplifies things slightly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-07-07 23:10:57 +03:00
..
msi.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
msix.h pci: add VMSTATE_MSIX 2013-06-03 11:37:44 +02:00
pci_bridge.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci_bus.h pci: use memory core for iommu support 2013-06-20 16:32:47 +02:00
pci_host.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci_ids.h NVMe: Initial commit for new storage interface 2013-06-17 17:47:59 +02:00
pci_regs.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pci.h pci: Use helper to find device's root bus in pci_find_domain() 2013-07-07 23:10:57 +03:00
pcie_aer.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pcie_host.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pcie_port.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pcie_regs.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pcie.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
shpc.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
slotid_cap.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00