From de29db4632a64cc7c20eb626a1b17e41e50adb26 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 17 Aug 2014 23:12:01 +0200 Subject: WIP firmware reverse engineering Not touched since 7 April 2014. --- hw/usb/hid-logitech-dj.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'hw/usb/hid-logitech-dj.h') diff --git a/hw/usb/hid-logitech-dj.h b/hw/usb/hid-logitech-dj.h index d0522b2a81..0dbf6c7943 100644 --- a/hw/usb/hid-logitech-dj.h +++ b/hw/usb/hid-logitech-dj.h @@ -172,7 +172,11 @@ typedef struct { uint8_t activity_counter[MAX_DEVICES]; /* TODO: pairing lock open or closed (+ timeout) */ /* TODO: connected devices */ - /* TODO: device firmware upgrade things? */ + + struct { + bool active; + uint8_t device_index; + } dfu; /* device firmware upgrade thingeys */ } LHidReceiver; /* defined in hid-logitech-hidpp20.c */ @@ -243,6 +247,11 @@ typedef struct { uint8_t status; } battery; uint8_t activity_counter; + + struct { + bool active; + int state; + } dfu; } LHidDevice; /* helper macros for handling the report and error queue */ -- cgit v1.2.1