Revision a8170e5e hw/prep_pci.c
b/hw/prep_pci.c | ||
---|---|---|
44 | 44 |
PCIDevice dev; |
45 | 45 |
} RavenPCIState; |
46 | 46 |
|
47 |
static inline uint32_t PPC_PCIIO_config(target_phys_addr_t addr)
|
|
47 |
static inline uint32_t PPC_PCIIO_config(hwaddr addr)
|
|
48 | 48 |
{ |
49 | 49 |
int i; |
50 | 50 |
|
... | ... | |
56 | 56 |
return (addr & 0x7ff) | (i << 11); |
57 | 57 |
} |
58 | 58 |
|
59 |
static void ppc_pci_io_write(void *opaque, target_phys_addr_t addr,
|
|
59 |
static void ppc_pci_io_write(void *opaque, hwaddr addr,
|
|
60 | 60 |
uint64_t val, unsigned int size) |
61 | 61 |
{ |
62 | 62 |
PREPPCIState *s = opaque; |
... | ... | |
64 | 64 |
pci_data_write(phb->bus, PPC_PCIIO_config(addr), val, size); |
65 | 65 |
} |
66 | 66 |
|
67 |
static uint64_t ppc_pci_io_read(void *opaque, target_phys_addr_t addr,
|
|
67 |
static uint64_t ppc_pci_io_read(void *opaque, hwaddr addr,
|
|
68 | 68 |
unsigned int size) |
69 | 69 |
{ |
70 | 70 |
PREPPCIState *s = opaque; |
... | ... | |
78 | 78 |
.endianness = DEVICE_LITTLE_ENDIAN, |
79 | 79 |
}; |
80 | 80 |
|
81 |
static uint64_t ppc_intack_read(void *opaque, target_phys_addr_t addr,
|
|
81 |
static uint64_t ppc_intack_read(void *opaque, hwaddr addr,
|
|
82 | 82 |
unsigned int size) |
83 | 83 |
{ |
84 | 84 |
return pic_read_irq(isa_pic); |
Also available in: Unified diff