mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
pci: pass I/O address space to new PCI bus
This lets us register BARs in the I/O address space. Reviewed-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
309cb471c8
commit
aee97b840f
20 changed files with 91 additions and 38 deletions
|
@ -62,7 +62,8 @@ static void pci_grackle_reset(void *opaque)
|
|||
}
|
||||
|
||||
PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic,
|
||||
MemoryRegion *address_space)
|
||||
MemoryRegion *address_space_mem,
|
||||
MemoryRegion *address_space_io)
|
||||
{
|
||||
DeviceState *dev;
|
||||
SysBusDevice *s;
|
||||
|
@ -75,7 +76,10 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic,
|
|||
d->host_state.bus = pci_register_bus(&d->busdev.qdev, "pci",
|
||||
pci_grackle_set_irq,
|
||||
pci_grackle_map_irq,
|
||||
pic, address_space, 0, 4);
|
||||
pic,
|
||||
address_space_mem,
|
||||
address_space_io,
|
||||
0, 4);
|
||||
|
||||
pci_create_simple(d->host_state.bus, 0, "grackle");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue