Revision a8170e5e hw/sysbus.h
b/hw/sysbus.h | ||
---|---|---|
36 | 36 |
qemu_irq *irqp[QDEV_MAX_IRQ]; |
37 | 37 |
int num_mmio; |
38 | 38 |
struct { |
39 |
target_phys_addr_t addr;
|
|
39 |
hwaddr addr;
|
|
40 | 40 |
MemoryRegion *memory; |
41 | 41 |
} mmio[QDEV_MAX_MMIO]; |
42 | 42 |
int num_pio; |
... | ... | |
56 | 56 |
|
57 | 57 |
|
58 | 58 |
void sysbus_connect_irq(SysBusDevice *dev, int n, qemu_irq irq); |
59 |
void sysbus_mmio_map(SysBusDevice *dev, int n, target_phys_addr_t addr);
|
|
60 |
void sysbus_add_memory(SysBusDevice *dev, target_phys_addr_t addr,
|
|
59 |
void sysbus_mmio_map(SysBusDevice *dev, int n, hwaddr addr);
|
|
60 |
void sysbus_add_memory(SysBusDevice *dev, hwaddr addr,
|
|
61 | 61 |
MemoryRegion *mem); |
62 |
void sysbus_add_memory_overlap(SysBusDevice *dev, target_phys_addr_t addr,
|
|
62 |
void sysbus_add_memory_overlap(SysBusDevice *dev, hwaddr addr,
|
|
63 | 63 |
MemoryRegion *mem, unsigned priority); |
64 | 64 |
void sysbus_del_memory(SysBusDevice *dev, MemoryRegion *mem); |
65 |
void sysbus_add_io(SysBusDevice *dev, target_phys_addr_t addr,
|
|
65 |
void sysbus_add_io(SysBusDevice *dev, hwaddr addr,
|
|
66 | 66 |
MemoryRegion *mem); |
67 | 67 |
void sysbus_del_io(SysBusDevice *dev, MemoryRegion *mem); |
68 | 68 |
MemoryRegion *sysbus_address_space(SysBusDevice *dev); |
69 | 69 |
|
70 | 70 |
/* Legacy helper function for creating devices. */ |
71 | 71 |
DeviceState *sysbus_create_varargs(const char *name, |
72 |
target_phys_addr_t addr, ...);
|
|
72 |
hwaddr addr, ...);
|
|
73 | 73 |
DeviceState *sysbus_try_create_varargs(const char *name, |
74 |
target_phys_addr_t addr, ...);
|
|
74 |
hwaddr addr, ...);
|
|
75 | 75 |
static inline DeviceState *sysbus_create_simple(const char *name, |
76 |
target_phys_addr_t addr,
|
|
76 |
hwaddr addr,
|
|
77 | 77 |
qemu_irq irq) |
78 | 78 |
{ |
79 | 79 |
return sysbus_create_varargs(name, addr, irq, NULL); |
80 | 80 |
} |
81 | 81 |
|
82 | 82 |
static inline DeviceState *sysbus_try_create_simple(const char *name, |
83 |
target_phys_addr_t addr,
|
|
83 |
hwaddr addr,
|
|
84 | 84 |
qemu_irq irq) |
85 | 85 |
{ |
86 | 86 |
return sysbus_try_create_varargs(name, addr, irq, NULL); |
Also available in: Unified diff