mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 05:51:53 -06:00
Introduce new BusInfo callback get_fw_dev_path.
New get_fw_dev_path callback will be used for build device path usable by firmware in contrast to qdev qemu internal device path. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
779206de67
commit
21150814d9
1 changed files with 7 additions and 0 deletions
|
@ -49,6 +49,12 @@ struct DeviceState {
|
||||||
|
|
||||||
typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent);
|
typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent);
|
||||||
typedef char *(*bus_get_dev_path)(DeviceState *dev);
|
typedef char *(*bus_get_dev_path)(DeviceState *dev);
|
||||||
|
/*
|
||||||
|
* This callback is used to create Open Firmware device path in accordance with
|
||||||
|
* OF spec http://forthworks.com/standards/of1275.pdf. Indicidual bus bindings
|
||||||
|
* can be found here http://playground.sun.com/1275/bindings/.
|
||||||
|
*/
|
||||||
|
typedef char *(*bus_get_fw_dev_path)(DeviceState *dev);
|
||||||
typedef int (qbus_resetfn)(BusState *bus);
|
typedef int (qbus_resetfn)(BusState *bus);
|
||||||
|
|
||||||
struct BusInfo {
|
struct BusInfo {
|
||||||
|
@ -56,6 +62,7 @@ struct BusInfo {
|
||||||
size_t size;
|
size_t size;
|
||||||
bus_dev_printfn print_dev;
|
bus_dev_printfn print_dev;
|
||||||
bus_get_dev_path get_dev_path;
|
bus_get_dev_path get_dev_path;
|
||||||
|
bus_get_fw_dev_path get_fw_dev_path;
|
||||||
qbus_resetfn *reset;
|
qbus_resetfn *reset;
|
||||||
Property *props;
|
Property *props;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue