Revision 1eed09cb hw/ppc4xx_pci.c
b/hw/ppc4xx_pci.c | ||
---|---|---|
384 | 384 |
pci_config_set_class(pci_conf, PCI_CLASS_BRIDGE_OTHER); |
385 | 385 |
|
386 | 386 |
/* CFGADDR */ |
387 |
index = cpu_register_io_memory(0, pci4xx_cfgaddr_read,
|
|
387 |
index = cpu_register_io_memory(pci4xx_cfgaddr_read, |
|
388 | 388 |
pci4xx_cfgaddr_write, controller); |
389 | 389 |
if (index < 0) |
390 | 390 |
goto free; |
391 | 391 |
cpu_register_physical_memory(config_space + PCIC0_CFGADDR, 4, index); |
392 | 392 |
|
393 | 393 |
/* CFGDATA */ |
394 |
index = cpu_register_io_memory(0, pci4xx_cfgdata_read,
|
|
394 |
index = cpu_register_io_memory(pci4xx_cfgdata_read, |
|
395 | 395 |
pci4xx_cfgdata_write, |
396 | 396 |
&controller->pci_state); |
397 | 397 |
if (index < 0) |
... | ... | |
399 | 399 |
cpu_register_physical_memory(config_space + PCIC0_CFGDATA, 4, index); |
400 | 400 |
|
401 | 401 |
/* Internal registers */ |
402 |
index = cpu_register_io_memory(0, pci_reg_read, pci_reg_write, controller);
|
|
402 |
index = cpu_register_io_memory(pci_reg_read, pci_reg_write, controller); |
|
403 | 403 |
if (index < 0) |
404 | 404 |
goto free; |
405 | 405 |
cpu_register_physical_memory(registers, PCI_REG_SIZE, index); |
Also available in: Unified diff