mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
apb: return APBState from pci_apb_init() rather than PCIBus
This is a first step towards removing pci_apb_init() completely. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
This commit is contained in:
parent
b26f441903
commit
588978c0a1
3 changed files with 11 additions and 9 deletions
|
@ -482,6 +482,7 @@ static void sun4uv_init(MemoryRegion *address_space_mem,
|
|||
Nvram *nvram;
|
||||
unsigned int i;
|
||||
uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry;
|
||||
APBState *apb;
|
||||
PCIBus *pci_bus, *pci_busA, *pci_busB;
|
||||
PCIDevice *ebus, *pci_dev;
|
||||
SysBusDevice *s;
|
||||
|
@ -502,8 +503,9 @@ static void sun4uv_init(MemoryRegion *address_space_mem,
|
|||
prom_init(hwdef->prom_addr, bios_name);
|
||||
|
||||
ivec_irqs = qemu_allocate_irqs(sparc64_cpu_set_ivec_irq, cpu, IVEC_MAX);
|
||||
pci_bus = pci_apb_init(APB_SPECIAL_BASE, APB_MEM_BASE, ivec_irqs, &pci_busA,
|
||||
&pci_busB);
|
||||
apb = pci_apb_init(APB_SPECIAL_BASE, APB_MEM_BASE, ivec_irqs, &pci_busA,
|
||||
&pci_busB);
|
||||
pci_bus = PCI_HOST_BRIDGE(apb)->bus;
|
||||
|
||||
/* Only in-built Simba PBMs can exist on the root bus, slot 0 on busA is
|
||||
reserved (leaving no slots free after on-board devices) however slots
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue