mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qdev: introduce reset call back for qbus level
and make it called via qbus_reset_all(). The qbus reset callback will be used by pci bus reset. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
ec990eb622
commit
b4694b7ce8
2 changed files with 11 additions and 1 deletions
|
@ -49,12 +49,14 @@ struct DeviceState {
|
|||
|
||||
typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent);
|
||||
typedef char *(*bus_get_dev_path)(DeviceState *dev);
|
||||
typedef int (qbus_resetfn)(BusState *bus);
|
||||
|
||||
struct BusInfo {
|
||||
const char *name;
|
||||
size_t size;
|
||||
bus_dev_printfn print_dev;
|
||||
bus_get_dev_path get_dev_path;
|
||||
qbus_resetfn *reset;
|
||||
Property *props;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue