aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2009-08-31 14:24:01 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:55:18 -0500
commit274945b633200d9bf7dc8885ee2a80a4570cfe11 (patch)
tree5db0e464033f3793c4659e692e231ad8673ff1f3
parenta5d2f7273c4f59942cc7ffa763d6b60a6f44e908 (diff)
qdev/usb: add some convinience aliases.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--hw/usb-hid.c3
-rw-r--r--hw/usb-wacom.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c
index 0837ec1587..3bf06fa411 100644
--- a/hw/usb-hid.c
+++ b/hw/usb-hid.c
@@ -882,6 +882,7 @@ void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *))
static struct USBDeviceInfo hid_info[] = {
{
.qdev.name = "QEMU USB Tablet",
+ .qdev.alias = "usb-tablet",
.qdev.size = sizeof(USBHIDState),
.init = usb_tablet_initfn,
.handle_packet = usb_generic_handle_packet,
@@ -891,6 +892,7 @@ static struct USBDeviceInfo hid_info[] = {
.handle_destroy = usb_hid_handle_destroy,
},{
.qdev.name = "QEMU USB Mouse",
+ .qdev.alias = "usb-mouse",
.qdev.size = sizeof(USBHIDState),
.init = usb_mouse_initfn,
.handle_packet = usb_generic_handle_packet,
@@ -900,6 +902,7 @@ static struct USBDeviceInfo hid_info[] = {
.handle_destroy = usb_hid_handle_destroy,
},{
.qdev.name = "QEMU USB Keyboard",
+ .qdev.alias = "usb-kbd",
.qdev.size = sizeof(USBHIDState),
.init = usb_keyboard_initfn,
.handle_packet = usb_generic_handle_packet,
diff --git a/hw/usb-wacom.c b/hw/usb-wacom.c
index 4007e0fe5a..55f06bfd99 100644
--- a/hw/usb-wacom.c
+++ b/hw/usb-wacom.c
@@ -401,6 +401,7 @@ static int usb_wacom_initfn(USBDevice *dev)
static struct USBDeviceInfo wacom_info = {
.qdev.name = "QEMU PenPartner Tablet",
+ .qdev.alias = "wacom-tablet",
.qdev.size = sizeof(USBWacomState),
.init = usb_wacom_initfn,
.handle_packet = usb_generic_handle_packet,