raven: Rename intack region to pci_intack
Regions added subsequently will also have the pci_ prefix. Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Andreas Färber <andreas.faerber@web.de>
This commit is contained in:
parent
d1a1451cd3
commit
49a4e21251
@ -52,9 +52,9 @@ typedef struct RavenPCIState {
|
|||||||
typedef struct PRePPCIState {
|
typedef struct PRePPCIState {
|
||||||
PCIHostState parent_obj;
|
PCIHostState parent_obj;
|
||||||
|
|
||||||
MemoryRegion intack;
|
|
||||||
qemu_irq irq[PCI_NUM_PINS];
|
qemu_irq irq[PCI_NUM_PINS];
|
||||||
PCIBus pci_bus;
|
PCIBus pci_bus;
|
||||||
|
MemoryRegion pci_intack;
|
||||||
RavenPCIState pci_dev;
|
RavenPCIState pci_dev;
|
||||||
} PREPPCIState;
|
} PREPPCIState;
|
||||||
|
|
||||||
@ -148,8 +148,9 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp)
|
|||||||
memory_region_init_io(&h->mmcfg, OBJECT(s), &PPC_PCIIO_ops, s, "pciio", 0x00400000);
|
memory_region_init_io(&h->mmcfg, OBJECT(s), &PPC_PCIIO_ops, s, "pciio", 0x00400000);
|
||||||
memory_region_add_subregion(address_space_mem, 0x80800000, &h->mmcfg);
|
memory_region_add_subregion(address_space_mem, 0x80800000, &h->mmcfg);
|
||||||
|
|
||||||
memory_region_init_io(&s->intack, OBJECT(s), &PPC_intack_ops, s, "pci-intack", 1);
|
memory_region_init_io(&s->pci_intack, OBJECT(s), &PPC_intack_ops, s,
|
||||||
memory_region_add_subregion(address_space_mem, 0xbffffff0, &s->intack);
|
"pci-intack", 1);
|
||||||
|
memory_region_add_subregion(address_space_mem, 0xbffffff0, &s->pci_intack);
|
||||||
|
|
||||||
/* TODO Remove once realize propagates to child devices. */
|
/* TODO Remove once realize propagates to child devices. */
|
||||||
object_property_set_bool(OBJECT(&s->pci_dev), true, "realized", errp);
|
object_property_set_bool(OBJECT(&s->pci_dev), true, "realized", errp);
|
||||||
|
Loading…
Reference in New Issue
Block a user