diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-19 19:24:28 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-19 19:24:28 +0100 |
commit | 872bcec5b6613d18cfa9267336429ba13076a200 (patch) | |
tree | c8fad6fc99e810f9f1491f186324b4912ce48f3c /hw/usb/hid-logitech-dj.h | |
parent | 5817de3fcf4f70c1d23cfcecd01c854272eb97da (diff) | |
download | qemu-872bcec5b6613d18cfa9267336429ba13076a200.tar.gz |
unifying: handle receiver regs 0 and 2
Diffstat (limited to 'hw/usb/hid-logitech-dj.h')
-rw-r--r-- | hw/usb/hid-logitech-dj.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hw/usb/hid-logitech-dj.h b/hw/usb/hid-logitech-dj.h index 5e0ba2efe8..6518c39fba 100644 --- a/hw/usb/hid-logitech-dj.h +++ b/hw/usb/hid-logitech-dj.h @@ -127,8 +127,10 @@ typedef struct { struct firmware_version version; } info; /* static information */ -#define REPORTING_FLAG_WIRELESS_NOTIFS 0 -#define REPORTING_FLAG_SOFTWARE_PRESENT (1 << 3) +#define REPORTING_FLAG_DEV_WIRELESS_NOTIFS 1 +#define REPORTING_FLAG_DEV_SOFTWARE_PRESENT (1 << 3) +#define REPORTING_FLAG_DEV_MASK (REPORTING_FLAG_WIRELESS_NOTIFS | \ + REPORTING_FLAG_SOFTWARE_PRESENT) int reporting_flags; uint8_t activity_counter[MAX_DEVICES]; /* TODO: pairing lock open or closed (+ timeout) */ @@ -170,7 +172,8 @@ typedef struct { } mode; bool powered_on; uint8_t report_interval; -#define REPORTING_FLAG_BATTERY_STATUS (1 << 4) +#define REPORTING_FLAG_RECV_BATTERY_STATUS (1 << 4) +#define REPORTING_FLAG_RECV_MASK REPORTING_FLAG_RECV_BATTERY_STATUS int reporting_flags; /* TODO: status (device seen or not, encrypted link) */ |