Patchwork [PATCHv5,02/15] Introduce new BusInfo callback get_fw_dev_path.

login
register
mail settings
Submitter Gleb Natapov
Date Nov. 15, 2010, 2:30 p.m.
Message ID <1289831469-25540-3-git-send-email-gleb@redhat.com>
Download mbox | patch
Permalink /patch/71221/
State New
Headers show

Comments

Gleb Natapov - Nov. 15, 2010, 2:30 p.m.
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>
---
 hw/qdev.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/qdev.h b/hw/qdev.h
index 9f90efe..dc669b3 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -49,12 +49,14 @@  struct DeviceState {
 
 typedef void (*bus_dev_printfn)(Monitor *mon, DeviceState *dev, int indent);
 typedef char *(*bus_get_dev_path)(DeviceState *dev);
+typedef char *(*bus_get_fw_dev_path)(DeviceState *dev);
 
 struct BusInfo {
     const char *name;
     size_t size;
     bus_dev_printfn print_dev;
     bus_get_dev_path get_dev_path;
+    bus_get_fw_dev_path get_fw_dev_path;
     Property *props;
 };