From 086f6beea02ecf42afb2fcfe0ccef91a5709dfc6 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 25 Mar 2014 00:08:09 +0100 Subject: unifying: add T650 features, start re firmware update The M525 was nice for testing stuff out, but it gets really interesting with the T650 which has a firmware update available. Details will be available in https://git.lekensteyn.nl/ltunify/tree/firmware-update.txt Add the initial feature set for T650, complete M525 feature set (commented out since unknown and seemingly uninteresting to implement). Signed-off-by: Peter Wu --- hw/usb/hid-logitech-dj.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (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 d10e58d1bb..58d4aecc59 100644 --- a/hw/usb/hid-logitech-dj.c +++ b/hw/usb/hid-logitech-dj.c @@ -309,6 +309,14 @@ static void hidpp_process_receiver_report(USBLtunifyState *s, HidppMsg *msg) hidpp_queue_error(s, msg, HIDPP_ERR_INVALID_VALUE); } break; + case SET_REG(0xF0): /* Enter DFU mode?? */ + // 4c 54 02: "LT" + device index? + // (followed by read f0) + // 58 49 54: "XIT" + // (followed by GET_LONG_REG(0xB3)(0, 0, 0)) + break; + case GET_REG(0xF0): /* Get DFU information? */ + break; case GET_REG(0xF1): hidpp_process_version_request(s, ms, &rcvr->info.version); break; @@ -587,7 +595,7 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, int devtype) /* hd->info.device_name N/A for HID++ 1.0 */ hd->report_interval = 20; break; - case DEVTYPE_MOUSE: + //case DEVTYPE_MOUSE: hd->info.version = (struct firmware_version) { 0x27, 0x02, 0x28, 0, 0 }; hd->hid = &s->hid[IFACE_MSE]; hd->info.report_types = 4; /* HID Collection: Mouse */ @@ -600,6 +608,7 @@ static void hidpp_init_device(USBLtunifyState *s, int device_index, int devtype) hd->battery.level = 2; /* Full - 90 % */ hd->battery.critical_perc = 2; break; + case DEVTYPE_MOUSE: case DEVTYPE_TOUCHPAD: /* TODO: perhaps "unpair" mouse and use this touchpad instead? */ hd->hid = &s->hid[IFACE_MSE]; -- cgit v1.2.1