Revision 768d7e2c
b/hw/isa/i82378.c | ||
---|---|---|
45 | 45 |
typedef struct PCIi82378State { |
46 | 46 |
PCIDevice pci_dev; |
47 | 47 |
uint32_t isa_io_base; |
48 |
uint32_t isa_mem_base; |
|
49 | 48 |
I82378State state; |
50 | 49 |
} PCIi82378State; |
51 | 50 |
|
... | ... | |
234 | 233 |
pci_set_long(dev->wmask + PCI_BASE_ADDRESS_0, 0); |
235 | 234 |
pci_set_long(pci_conf + PCI_BASE_ADDRESS_0, pci->isa_io_base); |
236 | 235 |
|
237 |
isa_mem_base = pci->isa_mem_base; |
|
238 | 236 |
isa_bus_new(&dev->qdev, pci_address_space_io(dev)); |
239 | 237 |
|
240 | 238 |
i82378_init(&dev->qdev, s); |
... | ... | |
244 | 242 |
|
245 | 243 |
static Property i82378_properties[] = { |
246 | 244 |
DEFINE_PROP_HEX32("iobase", PCIi82378State, isa_io_base, 0x80000000), |
247 |
DEFINE_PROP_HEX32("membase", PCIi82378State, isa_mem_base, 0xc0000000), |
|
248 | 245 |
DEFINE_PROP_END_OF_LIST() |
249 | 246 |
}; |
250 | 247 |
|
b/hw/pci-host/prep.c | ||
---|---|---|
119 | 119 |
MemoryRegion *address_space_mem = get_system_memory(); |
120 | 120 |
int i; |
121 | 121 |
|
122 |
isa_mem_base = 0xc0000000; |
|
123 |
|
|
122 | 124 |
for (i = 0; i < 4; i++) { |
123 | 125 |
sysbus_init_irq(dev, &s->irq[i]); |
124 | 126 |
} |
Also available in: Unified diff