qemu/include/hw/pci
David Gibson e492dc5a26 pci: Eliminate pci_find_primary_bus()
pci_find_primary_bus() only has one user, in pc_xen_hvm_init().  That's
inside the machine construction code, so it already has easy access to the
machine's primary PCI bus.

Get it directly, and thereby remove pci_find_primary_bus().  This removes
one of only a handful of users of the ugly pci_host_bridges global.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
2017-12-05 19:13:45 +02:00
..
msi.h
msix.h
pci.h pci: Eliminate pci_find_primary_bus() 2017-12-05 19:13:45 +02:00
pci_bridge.h
pci_bus.h
pci_host.h
pci_ids.h
pci_regs.h
pcie.h
pcie_aer.h
pcie_host.h
pcie_port.h
pcie_regs.h
shpc.h
slotid_cap.h