提交 c5788614 编写于 作者: S Stefan Weil 提交者: Stefan Hajnoczi

qdev: Fix Open Firmware comment

Commit 0d936928 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.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 ac873f1e
...@@ -78,12 +78,6 @@ struct DeviceState { ...@@ -78,12 +78,6 @@ struct DeviceState {
int alias_required_for_version; 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 TYPE_BUS "bus"
#define BUS(obj) OBJECT_CHECK(BusState, (obj), TYPE_BUS) #define BUS(obj) OBJECT_CHECK(BusState, (obj), TYPE_BUS)
#define BUS_CLASS(klass) OBJECT_CLASS_CHECK(BusClass, (klass), TYPE_BUS) #define BUS_CLASS(klass) OBJECT_CLASS_CHECK(BusClass, (klass), TYPE_BUS)
...@@ -95,6 +89,11 @@ struct BusClass { ...@@ -95,6 +89,11 @@ struct BusClass {
/* FIXME first arg should be BusState */ /* FIXME first arg should be BusState */
void (*print_dev)(Monitor *mon, DeviceState *dev, int indent); void (*print_dev)(Monitor *mon, DeviceState *dev, int indent);
char *(*get_dev_path)(DeviceState *dev); 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); char *(*get_fw_dev_path)(DeviceState *dev);
int (*reset)(BusState *bus); int (*reset)(BusState *bus);
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册