mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
pci: Allow PCI bus creation interfaces to specify the type of bus
No change to any types. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
cf09458d64
commit
60a0e44320
24 changed files with 40 additions and 35 deletions
|
@ -329,7 +329,7 @@ static int apb_pci_bridge_initfn(PCIDevice *dev)
|
|||
{
|
||||
int rc;
|
||||
|
||||
rc = pci_bridge_initfn(dev);
|
||||
rc = pci_bridge_initfn(dev, TYPE_PCI_BUS);
|
||||
if (rc < 0) {
|
||||
return rc;
|
||||
}
|
||||
|
@ -381,7 +381,7 @@ PCIBus *pci_apb_init(hwaddr special_base,
|
|||
pci_apb_set_irq, pci_pbm_map_irq, d,
|
||||
&d->pci_mmio,
|
||||
get_system_io(),
|
||||
0, 32);
|
||||
0, 32, TYPE_PCI_BUS);
|
||||
|
||||
*pbm_irqs = d->pbm_irqs;
|
||||
d->ivec_irqs = ivec_irqs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue