summaryrefslogtreecommitdiff
path: root/hw/usb/hid-logitech-dj.h
diff options
context:
space:
mode:
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) */