summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-dj.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-03-19 19:24:28 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-03-19 19:24:28 +0100
commit872bcec5b6613d18cfa9267336429ba13076a200 (patch)
treec8fad6fc99e810f9f1491f186324b4912ce48f3c /hw/usb/hid-logitech-dj.h
parent5817de3fcf4f70c1d23cfcecd01c854272eb97da (diff)
downloadqemu-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.h9
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) */