diff options
author | Blue Swirl | 2010-03-21 20:47:15 +0100 |
---|---|---|
committer | Blue Swirl | 2010-03-21 20:47:15 +0100 |
commit | 952760bb7bce7fbfe0afcf04fee268745f297b87 (patch) | |
tree | 8d0ad00eb068c13794ea691595d661eb19c3c7d3 /hw/pci_host.h | |
parent | Compile pcie_host only once (diff) | |
download | qemu-952760bb7bce7fbfe0afcf04fee268745f297b87.tar.gz qemu-952760bb7bce7fbfe0afcf04fee268745f297b87.tar.xz qemu-952760bb7bce7fbfe0afcf04fee268745f297b87.zip |
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 5ff64430ed..bd8ede8b72 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); |