Revision 4f5e19e6 hw/piix_pci.c
b/hw/piix_pci.c | ||
---|---|---|
25 | 25 |
#include "hw.h" |
26 | 26 |
#include "pc.h" |
27 | 27 |
#include "pci.h" |
28 |
#include "pci_host.h" |
|
28 | 29 |
#include "isa.h" |
29 | 30 |
#include "sysbus.h" |
30 | 31 |
|
31 |
typedef uint32_t pci_addr_t; |
|
32 |
#include "pci_host.h" |
|
33 |
|
|
34 | 32 |
typedef PCIHostState I440FXState; |
35 | 33 |
|
36 | 34 |
typedef struct PIIX3State { |
... | ... | |
197 | 195 |
register_ioport_write(0xcf8, 4, 4, i440fx_addr_writel, s); |
198 | 196 |
register_ioport_read(0xcf8, 4, 4, i440fx_addr_readl, s); |
199 | 197 |
|
200 |
register_ioport_write(0xcfc, 4, 1, pci_host_data_writeb, s); |
|
201 |
register_ioport_write(0xcfc, 4, 2, pci_host_data_writew, s); |
|
202 |
register_ioport_write(0xcfc, 4, 4, pci_host_data_writel, s); |
|
203 |
register_ioport_read(0xcfc, 4, 1, pci_host_data_readb, s); |
|
204 |
register_ioport_read(0xcfc, 4, 2, pci_host_data_readw, s); |
|
205 |
register_ioport_read(0xcfc, 4, 4, pci_host_data_readl, s); |
|
198 |
pci_host_data_register_ioport(0xcfc, s); |
|
206 | 199 |
return 0; |
207 | 200 |
} |
208 | 201 |
|
Also available in: Unified diff