aboutsummaryrefslogtreecommitdiff
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-12-08 13:34:55 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-12-11 21:27:45 +0000
commit21150814d9f0d40b77f8ec54e716505b85b87e6b (patch)
tree607437ea9829dc23177ae5930a81d0ce229902db /hw/qdev.h
parent779206de677533616ec3558bae89ea06fb91fc84 (diff)
downloadqemu-21150814d9f0d40b77f8ec54e716505b85b87e6b.zip
qemu-21150814d9f0d40b77f8ec54e716505b85b87e6b.tar.gz
qemu-21150814d9f0d40b77f8ec54e716505b85b87e6b.tar.bz2
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>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index bc71110..f72fbde 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -49,6 +49,12 @@ struct DeviceState {
typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent);
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);
struct BusInfo {
@@ -56,6 +62,7 @@ struct BusInfo {
size_t size;
bus_dev_printfn print_dev;
bus_get_dev_path get_dev_path;
+ bus_get_fw_dev_path get_fw_dev_path;
qbus_resetfn *reset;
Property *props;
};