diff options
author | Avi Kivity | 2011-12-08 14:57:34 +0100 |
---|---|---|
committer | Avi Kivity | 2011-12-20 13:14:06 +0100 |
commit | 62ec4832ea1093b20a8a0893a016a00ef8145496 (patch) | |
tree | 21c76f42e903ebf5ca1177cbc194c72a6e99fd7a /hw/sysbus.h | |
parent | sysbus: remove sysbus_init_mmio_cb2 (diff) | |
download | qemu-62ec4832ea1093b20a8a0893a016a00ef8145496.tar.gz qemu-62ec4832ea1093b20a8a0893a016a00ef8145496.tar.xz qemu-62ec4832ea1093b20a8a0893a016a00ef8145496.zip |
sysbus: add sysbus_address_space()
Given a bus device, retrieves the memory address space for its bus.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/sysbus.h')
-rw-r--r-- | hw/sysbus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/sysbus.h b/hw/sysbus.h index 2f4025b221..899756bf7f 100644 --- a/hw/sysbus.h +++ b/hw/sysbus.h @@ -57,6 +57,7 @@ void sysbus_del_memory(SysBusDevice *dev, MemoryRegion *mem); void sysbus_add_io(SysBusDevice *dev, target_phys_addr_t addr, MemoryRegion *mem); void sysbus_del_io(SysBusDevice *dev, MemoryRegion *mem); +MemoryRegion *sysbus_address_space(SysBusDevice *dev); /* Legacy helper function for creating devices. */ DeviceState *sysbus_create_varargs(const char *name, |