]> git.proxmox.com Git - qemu.git/blobdiff - hw/pci_host.h
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / pci_host.h
index 7cfa693563676b46b6c9aeaec7b40ce5861ba245..0a585951e07b7b2bdb51cbe6e450b67979a1ae25 100644 (file)
 #define PCI_HOST_H
 
 #include "sysbus.h"
+#include "rwhandler.h"
 
-typedef struct {
+struct PCIHostState {
     SysBusDevice busdev;
+    ReadWriteHandler conf_handler;
+    ReadWriteHandler data_handler;
     uint32_t config_reg;
     PCIBus *bus;
-} PCIHostState;
+};
 
 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_config_register_io_memory(PCIHostState *s);
-int pci_host_config_register_io_memory_noswap(PCIHostState *s);
-int pci_host_data_register_io_memory(PCIHostState *s);
+int pci_host_conf_register_mmio(PCIHostState *s, int endian);
+int pci_host_data_register_mmio(PCIHostState *s, int endian);
 
 /* for ioio */
-void pci_host_config_register_ioport(pio_addr_t ioport, PCIHostState *s);
+void pci_host_conf_register_ioport(pio_addr_t ioport, PCIHostState *s);
 void pci_host_data_register_ioport(pio_addr_t ioport, PCIHostState *s);
 
 #endif /* PCI_HOST_H */