aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2014-09-24 12:36:30 +0200
committerAlexander Graf <agraf@suse.de>2014-11-04 23:26:14 +0100
commit471a9bc14444e79bb826616becd2e5531e591d30 (patch)
tree37693aa15037729d55f5006d774499b6b5d07f3a /include
parentb797318666dade9675a253d311125ae7b568e2f8 (diff)
sysbus: Expose MMIO enumeration helper
Sysbus devices have a range of MMIO regions they expose. The exact number of regions is device specific and internal information to the device model. Expose whether a region exists via a public interface. That way our platform bus enumeration code can dynamically determine how many regions exist. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/hw/sysbus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/sysbus.h b/include/hw/sysbus.h
index 2a3cfa785f..6175bf990a 100644
--- a/include/hw/sysbus.h
+++ b/include/hw/sysbus.h
@@ -67,6 +67,7 @@ void sysbus_init_ioports(SysBusDevice *dev, pio_addr_t ioport, pio_addr_t size);
bool sysbus_has_irq(SysBusDevice *dev, int n);
+bool sysbus_has_mmio(SysBusDevice *dev, unsigned int n);
void sysbus_connect_irq(SysBusDevice *dev, int n, qemu_irq irq);
bool sysbus_is_irq_connected(SysBusDevice *dev, int n);
qemu_irq sysbus_get_connected_irq(SysBusDevice *dev, int n);