Revision d2c33733 hw/pci_host.h

b/hw/pci_host.h
29 29
#define PCI_HOST_H
30 30

  
31 31
#include "sysbus.h"
32
#include "rwhandler.h"
33 32

  
34 33
struct PCIHostState {
35 34
    SysBusDevice busdev;
36
    ReadWriteHandler conf_handler;
37
    ReadWriteHandler data_handler;
35
    MemoryRegion conf_mem;
36
    MemoryRegion data_mem;
38 37
    MemoryRegion *address_space;
39 38
    uint32_t config_reg;
40 39
    PCIBus *bus;
......
49 48
void pci_data_write(PCIBus *s, uint32_t addr, uint32_t val, int len);
50 49
uint32_t pci_data_read(PCIBus *s, uint32_t addr, int len);
51 50

  
52
/* for mmio */
53
int pci_host_conf_register_mmio(PCIHostState *s, int endian);
54
int pci_host_data_register_mmio(PCIHostState *s, int endian);
55

  
56
/* for ioio */
57
void pci_host_conf_register_ioport(pio_addr_t ioport, PCIHostState *s);
58
void pci_host_data_register_ioport(pio_addr_t ioport, PCIHostState *s);
51
extern const MemoryRegionOps pci_host_conf_le_ops;
52
extern const MemoryRegionOps pci_host_conf_be_ops;
53
extern const MemoryRegionOps pci_host_data_le_ops;
54
extern const MemoryRegionOps pci_host_data_be_ops;
59 55

  
60 56
#endif /* PCI_HOST_H */

Also available in: Unified diff