aboutsummaryrefslogtreecommitdiff
path: root/hw/sysbus.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-08-29 23:59:06 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-08-29 23:59:06 +0200
commitf0fb8b7180fdcf536ea635a0720e1496110ecb3b (patch)
tree18416e22020e4f7dd5efd546542eacc24e38c39a /hw/sysbus.c
parent9f4bd6baf64b8139cf2d7f8f53a98b27531da13c (diff)
parentd5c8cf993a5018aa61a935e1160cb95ef1afd1f5 (diff)
Merge branch 'omap-for-upstream' of git://git.linaro.org/people/pmaydell/qemu-arm into pm
Diffstat (limited to 'hw/sysbus.c')
-rw-r--r--hw/sysbus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c
index f39768b6a2..c365d39d24 100644
--- a/hw/sysbus.c
+++ b/hw/sysbus.c
@@ -131,6 +131,11 @@ void sysbus_init_mmio_region(SysBusDevice *dev, MemoryRegion *memory)
dev->mmio[n].memory = memory;
}
+MemoryRegion *sysbus_mmio_get_region(SysBusDevice *dev, int n)
+{
+ return dev->mmio[n].memory;
+}
+
void sysbus_init_ioports(SysBusDevice *dev, pio_addr_t ioport, pio_addr_t size)
{
pio_addr_t i;