Skip to content

Commit

Permalink
pci-host/prep: Set isa_mem_base in the PCI host bridge
Browse files Browse the repository at this point in the history
Currently, it is done by i82378 PCI-ISA bridge, which shouldn't
care about it.

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 Jul 31, 2013
1 parent 1197cbb commit 768d7e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hw/isa/i82378.c
Expand Up @@ -45,7 +45,6 @@ typedef struct I82378State {
typedef struct PCIi82378State {
PCIDevice pci_dev;
uint32_t isa_io_base;
uint32_t isa_mem_base;
I82378State state;
} PCIi82378State;

Expand Down Expand Up @@ -234,7 +233,6 @@ static int pci_i82378_init(PCIDevice *dev)
pci_set_long(dev->wmask + PCI_BASE_ADDRESS_0, 0);
pci_set_long(pci_conf + PCI_BASE_ADDRESS_0, pci->isa_io_base);

isa_mem_base = pci->isa_mem_base;
isa_bus_new(&dev->qdev, pci_address_space_io(dev));

i82378_init(&dev->qdev, s);
Expand All @@ -244,7 +242,6 @@ static int pci_i82378_init(PCIDevice *dev)

static Property i82378_properties[] = {
DEFINE_PROP_HEX32("iobase", PCIi82378State, isa_io_base, 0x80000000),
DEFINE_PROP_HEX32("membase", PCIi82378State, isa_mem_base, 0xc0000000),
DEFINE_PROP_END_OF_LIST()
};

Expand Down
2 changes: 2 additions & 0 deletions hw/pci-host/prep.c
Expand Up @@ -119,6 +119,8 @@ static void raven_pcihost_realizefn(DeviceState *d, Error **errp)
MemoryRegion *address_space_mem = get_system_memory();
int i;

isa_mem_base = 0xc0000000;

for (i = 0; i < 4; i++) {
sysbus_init_irq(dev, &s->irq[i]);
}
Expand Down

0 comments on commit 768d7e2

Please sign in to comment.