From c1ba3a7d4ac7273891b974770196608ddf2c5d43 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 1 Apr 2014 00:13:22 +0200 Subject: unifying: add T400 device This also has the DFU capability :-) Signed-off-by: Peter Wu --- hw/usb/hid-logitech-dj.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'hw/usb/hid-logitech-dj.c') 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 }; -- cgit v1.2.1