summaryrefslogtreecommitdiff
path: root/driver/touchpad_st.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/touchpad_st.h')
-rw-r--r--driver/touchpad_st.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/touchpad_st.h b/driver/touchpad_st.h
index 23bb404d36..db4a8f4bc1 100644
--- a/driver/touchpad_st.h
+++ b/driver/touchpad_st.h
@@ -197,8 +197,10 @@ struct st_tp_host_buffer_heat_map_t {
} __packed;
struct st_tp_event_t {
+#define ST_TP_EVENT_MAGIC 0x3
unsigned magic:2; /* should always be 0x3 */
unsigned major_high:2;
+#define ST_TP_EVENT_ID_CONTROLLER_READY 0x0
#define ST_TP_EVENT_ID_ENTER_POINTER 0x1
#define ST_TP_EVENT_ID_MOTION_POINTER 0x2
#define ST_TP_EVENT_ID_LEAVE_POINTER 0x3
@@ -226,7 +228,7 @@ struct st_tp_event_t {
struct {
uint8_t report_type;
- uint32_t info;
+ uint8_t info[4];
uint8_t reserved;
} __packed report;
} __packed ; /* anonymous */