]> git.proxmox.com Git - qemu.git/commit
hw/sysbus: Add sysbus_mmio_get_region()
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 28 Aug 2011 16:22:17 +0000 (16:22 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 28 Aug 2011 16:22:17 +0000 (16:22 +0000)
commit46c305ef6b0d1ed6c85e863568fccc03caf7f75e
treea4fc37959569c26e6e1f86d61b332813801d1033
parent9f94778c1603420e48d779a495e84eb82945cc75
hw/sysbus: Add sysbus_mmio_get_region()

Add a sysbus_mmio_get_region() which allows users of sysbus
devices to turn a (SysBusDevice*, mmioidx) tuple into a
MemoryRegion*. This enables some useful simplifications of
devices which pass through another device's mmio region
(either directly or by implementing some kind of memory
controller device).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sysbus.c
hw/sysbus.h