Skip to content

Commit

Permalink
raven: Rename intack region to pci_intack
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hpoussin authored and afaerber committed Mar 19, 2014
1 parent d1a1451 commit 49a4e21
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hw/pci-host/prep.c
Expand Up @@ -52,9 +52,9 @@ typedef struct RavenPCIState {
typedef struct PRePPCIState {
PCIHostState parent_obj;

MemoryRegion intack;
qemu_irq irq[PCI_NUM_PINS];
PCIBus pci_bus;
MemoryRegion pci_intack;
RavenPCIState pci_dev;
} PREPPCIState;

Expand Down Expand Up @@ -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_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_add_subregion(address_space_mem, 0xbffffff0, &s->intack);
memory_region_init_io(&s->pci_intack, OBJECT(s), &PPC_intack_ops, s,
"pci-intack", 1);
memory_region_add_subregion(address_space_mem, 0xbffffff0, &s->pci_intack);

/* TODO Remove once realize propagates to child devices. */
object_property_set_bool(OBJECT(&s->pci_dev), true, "realized", errp);
Expand Down

0 comments on commit 49a4e21

Please sign in to comment.