summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-dj.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-08-17 23:12:01 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-08-17 23:12:01 +0200
commitde29db4632a64cc7c20eb626a1b17e41e50adb26 (patch)
treeb09a92c303180556c83db1d64d65c2a1ea5b04b4 /hw/usb/hid-logitech-dj.h
parent505280bd9af458c712ec6d19afacdc192c6e02ab (diff)
downloadqemu-logitech-unifying.tar.gz
WIP firmware reverse engineeringlogitech-unifying
Not touched since 7 April 2014.
Diffstat (limited to 'hw/usb/hid-logitech-dj.h')
-rw-r--r--hw/usb/hid-logitech-dj.h11
1 files changed, 10 insertions, 1 deletions
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 */