diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:15 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-03-21 19:47:15 +0000 |
commit | 952760bb7bce7fbfe0afcf04fee268745f297b87 (patch) | |
tree | 8d0ad00eb068c13794ea691595d661eb19c3c7d3 /hw/pci_host.h | |
parent | c1f63a9d43f294d53e5f78f3534e5b8198e1fa74 (diff) |
Compile pci_host only once
Convert pci_host_conf_register_mmio_noswap(x) to
pci_host_conf_register_mmio(x, 0).
Convert pci_host_conf_register_mmio(x) to
pci_host_conf_register_mmio(x, 1) for big endian hosts, all cases
happen to be BE.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/pci_host.h')
-rw-r--r-- | hw/pci_host.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/pci_host.h b/hw/pci_host.h index 5ff64430e..bd8ede8b7 100644 --- a/hw/pci_host.h +++ b/hw/pci_host.h @@ -35,6 +35,7 @@ struct PCIHostState { SysBusDevice busdev; ReadWriteHandler conf_noswap_handler; ReadWriteHandler conf_handler; + ReadWriteHandler data_noswap_handler; ReadWriteHandler data_handler; uint32_t config_reg; PCIBus *bus; @@ -44,9 +45,8 @@ void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, int len); uint32_t pci_data_read(PCIBus *s, uint32_t addr, int len); /* for mmio */ -int pci_host_conf_register_mmio(PCIHostState *s); -int pci_host_conf_register_mmio_noswap(PCIHostState *s); -int pci_host_data_register_mmio(PCIHostState *s); +int pci_host_conf_register_mmio(PCIHostState *s, int swap); +int pci_host_data_register_mmio(PCIHostState *s, int swap); /* for ioio */ void pci_host_conf_register_ioport(pio_addr_t ioport, PCIHostState *s); |