diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-07-23 13:15:34 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-07-23 13:15:34 -0500 |
| commit | ef6bbdf9e5eb6da5cbdea1bf55e08709c6e181d5 (patch) | |
| tree | f3ac512465cc261cb6a3a70fba2da99b12231412 /hw/qdev.h | |
| parent | 400006c27622d54ef588e1a9bd5a005d5fc9be5b (diff) | |
| parent | 43ffe61f9cc22f9ad4d05a18a304b1095fa1f2b3 (diff) | |
| download | focaccia-qemu-ef6bbdf9e5eb6da5cbdea1bf55e08709c6e181d5.tar.gz focaccia-qemu-ef6bbdf9e5eb6da5cbdea1bf55e08709c6e181d5.zip | |
Merge remote-tracking branch 'stefanha/trivial-patches' into staging
* stefanha/trivial-patches: Fix some more Qemus in documentation and help text qdev: Fix Open Firmware comment cpus.c: Make all_cpu_threads_idle() static Use macro QEMU_PACKED for new packed structures Recognize PCID feature powerpc pci: fixed packing of ranges[]
Diffstat (limited to 'hw/qdev.h')
| -rw-r--r-- | hw/qdev.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/hw/qdev.h b/hw/qdev.h index 247dd1eb39..a2cbd9dba0 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -78,12 +78,6 @@ struct DeviceState { int alias_required_for_version; }; -/* - * 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/. - */ - #define TYPE_BUS "bus" #define BUS(obj) OBJECT_CHECK(BusState, (obj), TYPE_BUS) #define BUS_CLASS(klass) OBJECT_CLASS_CHECK(BusClass, (klass), TYPE_BUS) @@ -95,6 +89,11 @@ struct BusClass { /* FIXME first arg should be BusState */ void (*print_dev)(Monitor *mon, DeviceState *dev, int indent); char *(*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. Individual bus + * bindings can be found at http://playground.sun.com/1275/bindings/. + */ char *(*get_fw_dev_path)(DeviceState *dev); int (*reset)(BusState *bus); }; |