Revision 4f5e19e6 hw/prep_pci.c
b/hw/prep_pci.c | ||
---|---|---|
24 | 24 |
|
25 | 25 |
#include "hw.h" |
26 | 26 |
#include "pci.h" |
27 |
|
|
28 |
typedef uint32_t pci_addr_t; |
|
29 | 27 |
#include "pci_host.h" |
30 | 28 |
|
31 | 29 |
typedef PCIHostState PREPPCIState; |
... | ... | |
144 | 142 |
register_ioport_write(0xcf8, 4, 4, pci_prep_addr_writel, s); |
145 | 143 |
register_ioport_read(0xcf8, 4, 4, pci_prep_addr_readl, s); |
146 | 144 |
|
147 |
register_ioport_write(0xcfc, 4, 1, pci_host_data_writeb, s); |
|
148 |
register_ioport_write(0xcfc, 4, 2, pci_host_data_writew, s); |
|
149 |
register_ioport_write(0xcfc, 4, 4, pci_host_data_writel, s); |
|
150 |
register_ioport_read(0xcfc, 4, 1, pci_host_data_readb, s); |
|
151 |
register_ioport_read(0xcfc, 4, 2, pci_host_data_readw, s); |
|
152 |
register_ioport_read(0xcfc, 4, 4, pci_host_data_readl, s); |
|
145 |
pci_host_data_register_ioport(0xcfc, s); |
|
153 | 146 |
|
154 | 147 |
PPC_io_memory = cpu_register_io_memory(PPC_PCIIO_read, |
155 | 148 |
PPC_PCIIO_write, s); |
Also available in: Unified diff