mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
pci: s/pci_find_host_bus/pci_find_root_bus/g
This patch renames pci_find_host_bus() to pci_find_root_bus() as suggested by "Michael S. Tsirkin" <mst@redhat.com>. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
070297d260
commit
c469e1dd63
3 changed files with 7 additions and 7 deletions
8
hw/pci.c
8
hw/pci.c
|
@ -146,7 +146,7 @@ static void pci_host_bus_register(int domain, PCIBus *bus)
|
|||
QLIST_INSERT_HEAD(&host_buses, host, next);
|
||||
}
|
||||
|
||||
PCIBus *pci_find_host_bus(int domain)
|
||||
PCIBus *pci_find_root_bus(int domain)
|
||||
{
|
||||
struct PCIHostBus *host;
|
||||
|
||||
|
@ -372,7 +372,7 @@ static int pci_parse_devaddr(const char *addr, int *domp, int *busp, unsigned *s
|
|||
return -1;
|
||||
|
||||
/* Note: QEMU doesn't implement domains other than 0 */
|
||||
if (!pci_find_bus(pci_find_host_bus(dom), bus))
|
||||
if (!pci_find_bus(pci_find_root_bus(dom), bus))
|
||||
return -1;
|
||||
|
||||
*domp = dom;
|
||||
|
@ -402,7 +402,7 @@ PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr)
|
|||
|
||||
if (!devaddr) {
|
||||
*devfnp = -1;
|
||||
return pci_find_bus(pci_find_host_bus(0), 0);
|
||||
return pci_find_bus(pci_find_root_bus(0), 0);
|
||||
}
|
||||
|
||||
if (pci_parse_devaddr(devaddr, &dom, &bus, &slot) < 0) {
|
||||
|
@ -410,7 +410,7 @@ PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr)
|
|||
}
|
||||
|
||||
*devfnp = slot << 3;
|
||||
return pci_find_bus(pci_find_host_bus(0), bus);
|
||||
return pci_find_bus(pci_find_root_bus(0), bus);
|
||||
}
|
||||
|
||||
static void pci_init_cmask(PCIDevice *dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue