qdev: Fix Open Firmware comment
PATCH 1/1 qdev: Fix Open Firmware comment
Commit 0d936928ef87ca1bb7b41b5b89c400c699a7691c removed code, but left the related comment at a location where it no longer belongs to.
The patch moves the comment to the correct callback and improves the text.
--- hw/qdev.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
hw/qdev.h +5 -6
@@ -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); };
Signature · 1 line
1.7.10
Stefan Hajnoczi
AppliedQuoted 10 lines · Stefan Weil
Commit
0d936928ef87ca1bb7b41b5b89c400c699a7691cremoved code, but left the related comment at a location where it no longer belongs to.The patch moves the comment to the correct callback and improves the text.
Signed-off-by Stefan Weil <[email protected]>--- hw/qdev.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
Quoted 29 lines · Stefan Weil
Commit
0d936928ef87ca1bb7b41b5b89c400c699a7691cremoved code, but left the related comment at a location where it no longer belongs to.The patch moves the comment to the correct callback and improves the text.
Signed-off-by Stefan Weil <[email protected]>--- hw/qdev.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)hw/qdev.h +0
-6@@ -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)
hw/qdev.h struct BusClass { · line 96
Quoted 8 lines
hw/qdev.h +5
-0@@ -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/. +*/
The links are dead. Since you are improving the text, maybe you could find archived versions.
Quoted 7 lines
hw/qdev.h +0
-1char *(*get_fw_dev_path)(DeviceState *dev);int (*reset)(BusState *bus); }; --1.7.10
Quoted 9 lines · Blue Swirl
hw/qdev.h struct BusClass { · line 96
Quoted 5 lines · Stefan Weil
hw/qdev.h +5
-0+/* +* 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/. +*/ The links are dead. Since you are improving the text, maybe you could find archived versions.
Hard to tell not knowing what the original links were, but maybe for bus bindings:
http://www.openfirmware.org/ofwg/home.html#OFDbussupps
I suspect that finding a publicly downloadable copy of IEEE1275 is going to be tricky given it's a commercially published standards doc.
-- PMM
Am 23.07.2012 23:46, schrieb Peter Maydell:
Quoted 11 lines · Blue Swirl
Quoted 9 lines · Stefan Weil
hw/qdev.h struct BusClass { · line 96
Quoted 5 lines
hw/qdev.h +5
-0+/* +* 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/. +*/ The links are dead. Since you are improving the text, maybe you could find archived versions.
Quoted 8 lines
Hard to tell not knowing what the original links were, but maybe for bus bindings:
http://www.openfirmware.org/ofwg/home.html#OFDbussuppsI suspect that finding a publicly downloadable copy of IEEE1275 is going to be tricky given it's a commercially published standards doc.
-- PMM
http://www.openfirmware.com/1275/bindings/ seems to be the new location of the 2nd link.
http://www.openfirmware.info/IEEE_1275-1994 has a link to
http://www.openbios.org/data/docs/of1275.pdf, but it looks like there is a server configuration problem (error 403). I'll send a mail to the webmaster of openbios.org.
Regards,
Stefan W.