[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCHv8 02/16] Introduce new BusInfo callback get_fw_dev_p
From: |
Gleb Natapov |
Subject: |
[Qemu-devel] [PATCHv8 02/16] Introduce new BusInfo callback get_fw_dev_path. |
Date: |
Wed, 8 Dec 2010 13:34:55 +0200 |
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 <address@hidden>
---
hw/qdev.h | 7 +++++++
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;
};
--
1.7.2.3
- [Qemu-devel] [PATCHv8 00/16] boot order specification, Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 02/16] Introduce new BusInfo callback get_fw_dev_path.,
Gleb Natapov <=
- [Qemu-devel] [PATCHv8 15/16] Add notifier that will be called when machine is fully created., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 03/16] Keep track of ISA ports ISA device is using in qdev., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 05/16] Store IDE bus id in IDEBus structure for easy access., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 14/16] Add bootindex for option roms., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 16/16] Pass boot device list to firmware., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 09/16] Record which USBDevice USBPort belongs too., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 08/16] Add get_fw_dev_path callback for pci bus., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 11/16] Add get_fw_dev_path callback to scsi bus., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 04/16] Add get_fw_dev_path callback to ISA bus in qdev., Gleb Natapov, 2010/12/08
- [Qemu-devel] [PATCHv8 12/16] Add bootindex parameter to net/block/fd device, Gleb Natapov, 2010/12/08