]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc_piix.c
pci: Abolish pci_find_root_bus()
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 6 Jun 2013 08:48:47 +0000 (18:48 +1000)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 7 Jul 2013 20:10:07 +0000 (23:10 +0300)
commit1ef7a2a2afedbba47e06af5081a8b4bf6dc1cf71
treefbb429cd5213d47dce1a44ae69a3b4f7a58adaf5
parent6ac363b50c569815786a795d806e068b3f6a07eb
pci: Abolish pci_find_root_bus()

pci_find_root_bus() takes a domain parameter.  Currently PCI root buses
with domain other than 0 can't be created, so this is more or less a long
winded way of retrieving the main PCI root bus.  Numbered domains don't
actually properly cover the (non x86) possibilities for multiple PCI root
buses, so this patch for now enforces the domain == 0 restriction in other
places to replace pci_find_root_bus() with an explicit
pci_find_primary_bus().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c
hw/pci/pci-hotplug-old.c
hw/pci/pci.c
include/hw/pci/pci.h