aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-06-10 07:32:21 +0200
committerMarkus Armbruster <armbru@redhat.com>2020-06-15 22:05:28 +0200
commitb7a1b5483ee0179f0e5d31cf43678fa225227614 (patch)
tree85d76ecd34fda42f1f2f8871c30afbcac4c40945 /include
parentdbe4070e59ab86f4a25de9cd12ed56f9eb68049b (diff)
downloadqemu-b7a1b5483ee0179f0e5d31cf43678fa225227614.zip
qemu-b7a1b5483ee0179f0e5d31cf43678fa225227614.tar.gz
qemu-b7a1b5483ee0179f0e5d31cf43678fa225227614.tar.bz2
auxbus: New aux_bus_realize(), pairing with aux_bus_init()
aux_bus_init() encapsulates the creation of an aux-bus and its aux-to-i2c-bridge device. Create aux_bus_realize() to similarly encapsulate their realization. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200610053247.1583243-33-armbru@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/misc/auxbus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/misc/auxbus.h b/include/hw/misc/auxbus.h
index 5cfd7a9..0d849d9 100644
--- a/include/hw/misc/auxbus.h
+++ b/include/hw/misc/auxbus.h
@@ -93,6 +93,13 @@ struct AUXSlave {
*/
AUXBus *aux_bus_init(DeviceState *parent, const char *name);
+/**
+ * aux_bus_realize: Realize an AUX bus.
+ *
+ * @bus: The AUX bus.
+ */
+void aux_bus_realize(AUXBus *bus);
+
/*
* aux_request: Make a request on the bus.
*