mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
allow qdev busses allocations be inplace
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
828566bc33
commit
cd739fb6e9
2 changed files with 15 additions and 3 deletions
|
@ -47,6 +47,7 @@ struct BusState {
|
|||
DeviceState *parent;
|
||||
BusInfo *info;
|
||||
const char *name;
|
||||
int qdev_allocated;
|
||||
QLIST_HEAD(, DeviceState) children;
|
||||
QLIST_ENTRY(BusState) sibling;
|
||||
};
|
||||
|
@ -145,6 +146,8 @@ BusState *qdev_get_parent_bus(DeviceState *dev);
|
|||
|
||||
/*** BUS API. ***/
|
||||
|
||||
void qbus_create_inplace(BusState *bus, BusInfo *info,
|
||||
DeviceState *parent, const char *name);
|
||||
BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name);
|
||||
|
||||
#define FROM_QBUS(type, dev) DO_UPCAST(type, qbus, dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue