mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
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>
This commit is contained in:
parent
c1f63a9d43
commit
952760bb7b
9 changed files with 69 additions and 48 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue