Revision e63d28d7
b/hw/sysbus.c | ||
---|---|---|
236 | 236 |
return g_strdup(path); |
237 | 237 |
} |
238 | 238 |
|
239 |
void sysbus_add_memory(SysBusDevice *dev, hwaddr addr, |
|
240 |
MemoryRegion *mem) |
|
241 |
{ |
|
242 |
memory_region_add_subregion(get_system_memory(), addr, mem); |
|
243 |
} |
|
244 |
|
|
245 |
void sysbus_add_memory_overlap(SysBusDevice *dev, hwaddr addr, |
|
246 |
MemoryRegion *mem, unsigned priority) |
|
247 |
{ |
|
248 |
memory_region_add_subregion_overlap(get_system_memory(), addr, mem, |
|
249 |
priority); |
|
250 |
} |
|
251 |
|
|
252 |
void sysbus_del_memory(SysBusDevice *dev, MemoryRegion *mem) |
|
253 |
{ |
|
254 |
memory_region_del_subregion(get_system_memory(), mem); |
|
255 |
} |
|
256 |
|
|
257 | 239 |
void sysbus_add_io(SysBusDevice *dev, hwaddr addr, |
258 | 240 |
MemoryRegion *mem) |
259 | 241 |
{ |
b/hw/sysbus.h | ||
---|---|---|
58 | 58 |
void sysbus_mmio_map(SysBusDevice *dev, int n, hwaddr addr); |
59 | 59 |
void sysbus_mmio_map_overlap(SysBusDevice *dev, int n, hwaddr addr, |
60 | 60 |
unsigned priority); |
61 |
void sysbus_add_memory(SysBusDevice *dev, hwaddr addr, |
|
62 |
MemoryRegion *mem); |
|
63 |
void sysbus_add_memory_overlap(SysBusDevice *dev, hwaddr addr, |
|
64 |
MemoryRegion *mem, unsigned priority); |
|
65 |
void sysbus_del_memory(SysBusDevice *dev, MemoryRegion *mem); |
|
66 | 61 |
void sysbus_add_io(SysBusDevice *dev, hwaddr addr, |
67 | 62 |
MemoryRegion *mem); |
68 | 63 |
void sysbus_del_io(SysBusDevice *dev, MemoryRegion *mem); |
Also available in: Unified diff