mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
dbe4070e59
commit
b7a1b5483e
3 changed files with 13 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue