aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/elantech.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/elantech.h')
-rw-r--r--drivers/input/mouse/elantech.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/input/mouse/elantech.h b/drivers/input/mouse/elantech.h
index d9e614409f92..236c33cdc708 100644
--- a/drivers/input/mouse/elantech.h
+++ b/drivers/input/mouse/elantech.h
@@ -16,6 +16,7 @@
16/* 16/*
17 * Command values for Synaptics style queries 17 * Command values for Synaptics style queries
18 */ 18 */
19#define ETP_FW_ID_QUERY 0x00
19#define ETP_FW_VERSION_QUERY 0x01 20#define ETP_FW_VERSION_QUERY 0x01
20#define ETP_CAPABILITIES_QUERY 0x02 21#define ETP_CAPABILITIES_QUERY 0x02
21 22
@@ -24,6 +25,7 @@
24 */ 25 */
25#define ETP_REGISTER_READ 0x10 26#define ETP_REGISTER_READ 0x10
26#define ETP_REGISTER_WRITE 0x11 27#define ETP_REGISTER_WRITE 0x11
28#define ETP_REGISTER_READWRITE 0x00
27 29
28/* 30/*
29 * Hardware version 2 custom PS/2 command value 31 * Hardware version 2 custom PS/2 command value
@@ -79,6 +81,14 @@
79#define ETP_WMIN_V2 0 81#define ETP_WMIN_V2 0
80#define ETP_WMAX_V2 15 82#define ETP_WMAX_V2 15
81 83
84/*
85 * v3 hardware has 2 kinds of packet types.
86 */
87#define PACKET_UNKNOWN 0x01
88#define PACKET_DEBOUNCE 0x02
89#define PACKET_V3_HEAD 0x03
90#define PACKET_V3_TAIL 0x04
91
82struct elantech_data { 92struct elantech_data {
83 unsigned char reg_10; 93 unsigned char reg_10;
84 unsigned char reg_11; 94 unsigned char reg_11;
@@ -98,6 +108,8 @@ struct elantech_data {
98 unsigned int fw_version; 108 unsigned int fw_version;
99 unsigned int single_finger_reports; 109 unsigned int single_finger_reports;
100 unsigned int y_max; 110 unsigned int y_max;
111 unsigned int prev_x;
112 unsigned int prev_y;
101 unsigned char parity[256]; 113 unsigned char parity[256];
102}; 114};
103 115