summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-03 15:03:09 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:11:27 -0500
commitf6c64e0eea46f4083afd6f7c281cb24a3c1e2021 (patch)
tree3706f809ed5100975f4d4d64961540e5d4823e91 /hw
parent22f2e344748370b2e13888ba1057ebea2579970c (diff)
downloadqemu-f6c64e0eea46f4083afd6f7c281cb24a3c1e2021.tar.gz
qemu-f6c64e0eea46f4083afd6f7c281cb24a3c1e2021.tar.bz2
qemu-f6c64e0eea46f4083afd6f7c281cb24a3c1e2021.zip
rename "info qdrv" to "info qdm"
As requested by avi: driver != device model. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'hw')
-rw-r--r--hw/qdev.c2
-rw-r--r--hw/qdev.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index ed51ee998b..c1a7779001 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -597,7 +597,7 @@ void do_info_qtree(Monitor *mon)
qbus_print(mon, main_system_bus, 0);
}
-void do_info_qdrv(Monitor *mon)
+void do_info_qdm(Monitor *mon)
{
DeviceInfo *info;
char msg[256];
diff --git a/hw/qdev.h b/hw/qdev.h
index 0400f32ba0..5016968e86 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -148,7 +148,7 @@ BusState *qbus_create(BusInfo *info, DeviceState *parent, const char *name);
/*** monitor commands ***/
void do_info_qtree(Monitor *mon);
-void do_info_qdrv(Monitor *mon);
+void do_info_qdm(Monitor *mon);
/*** qdev-properties.c ***/
@@ -197,6 +197,8 @@ extern PropertyInfo qdev_prop_pci_devfn;
DEFINE_PROP(_n, _s, _f, qdev_prop_ptr, void*)
#define DEFINE_PROP_CHR(_n, _s, _f) \
DEFINE_PROP(_n, _s, _f, qdev_prop_chr, CharDriverState*)
+#define DEFINE_PROP_DRIVE(_n, _s, _f) \
+ DEFINE_PROP(_n, _s, _f, qdev_prop_chr, DriveInfo*)
#define DEFINE_PROP_MACADDR(_n, _s, _f) \
DEFINE_PROP(_n, _s, _f, qdev_prop_macaddr, uint8_t[6])