summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-dj.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-04-01 00:13:22 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-04-01 00:13:22 +0200
commitc1ba3a7d4ac7273891b974770196608ddf2c5d43 (patch)
tree07fe7e9c0aa3a532847e0f8bdef640574ce83c03 /hw/usb/hid-logitech-dj.c
parent0a8042251297cb7c213c77d9b9c6b5ded635e76c (diff)
downloadqemu-c1ba3a7d4ac7273891b974770196608ddf2c5d43.tar.gz
unifying: add T400 device
This also has the DFU capability :-) Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-dj.c')
-rw-r--r--hw/usb/hid-logitech-dj.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/hw/usb/hid-logitech-dj.c b/hw/usb/hid-logitech-dj.c
index 7afd3d8194..403d994457 100644
--- a/hw/usb/hid-logitech-dj.c
+++ b/hw/usb/hid-logitech-dj.c
@@ -610,6 +610,21 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, uint16_t pid
hd->battery.level = 2; /* Full - 90 % */
hd->battery.critical_perc = 2;
break;
+ case WPID_T400:
+ hd->info.device_type = DEVTYPE_MOUSE;
+ hd->info.version = (struct firmware_version) { 0x39, 0x00, 0x29, 3, 0 };
+ // Other versions: (2) HW 01.00; (3) TP 04.00
+ hd->hid = &s->hid[IFACE_MSE];
+ hd->info.report_types = 0x0e; /* Keyboard, Mouse, Consumer Ctrl */
+ hd->info.serial = 0x4f6f7073;
+ memcpy(hd->info.name, "T400", 4);
+ hd->info.device_name = "Zone Touch Mouse T400";
+ hd->report_interval = 8;
+ hd->battery.nlevels = 4;
+ hd->battery.level = 3; /* Good - 50 % */
+ hd->battery.flags = BAT_FLAG_RECHARGEABLE;
+ hd->battery.critical_perc = 10;
+ break;
case WPID_T650:
hd->info.device_type = DEVTYPE_TOUCHPAD;
hd->info.version = (struct firmware_version) { 0x41, 0x01, 0x37, 3, 0 };