diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 11:54:01 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 11:54:01 +0100 |
commit | 614a271a24d7809f56b83817d1e926a8f4897a7c (patch) | |
tree | d88702e4bd120d7e0fe94239e12a98b4847ea127 /hw/usb/hid-logitech-dj.h | |
parent | a4a17543cee0f422b6348020d170d887f05e97fc (diff) | |
download | qemu-614a271a24d7809f56b83817d1e926a8f4897a7c.tar.gz |
unifying: fix report ID for HID++ 2.0 responses
The input report ID can be 0x10 or 0x11, the responses are always 0x11.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-dj.h')
-rw-r--r-- | hw/usb/hid-logitech-dj.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/usb/hid-logitech-dj.h b/hw/usb/hid-logitech-dj.h index 83cb33b8aa..3e7fab9fa1 100644 --- a/hw/usb/hid-logitech-dj.h +++ b/hw/usb/hid-logitech-dj.h @@ -44,6 +44,14 @@ enum { #define MAX_DEVICES 6 +/* Report IDs */ +enum { + HIDPP_SHORT = 0x10, /* 7 bytes */ + HIDPP_LONG = 0x11, /* 20 bytes */ + DJ_SHORT = 0x20, /* 15 bytes */ + DJ_LONG = 0x21, /* 32 bytes */ +}; + /* report formats */ typedef struct { uint8_t report_id; |