|
Lines 94-100
Link Here
|
| 94 |
#define PACKET_V4_HEAD 0x05 |
94 |
#define PACKET_V4_HEAD 0x05 |
| 95 |
#define PACKET_V4_MOTION 0x06 |
95 |
#define PACKET_V4_MOTION 0x06 |
| 96 |
#define PACKET_V4_STATUS 0x07 |
96 |
#define PACKET_V4_STATUS 0x07 |
| 97 |
#define PACKET_TRACKPOINT 0x08 |
|
|
| 98 |
|
97 |
|
| 99 |
/* |
98 |
/* |
| 100 |
* track up to 5 fingers for v4 hardware |
99 |
* track up to 5 fingers for v4 hardware |
|
Lines 115-122
struct finger_pos {
Link Here
|
| 115 |
}; |
114 |
}; |
| 116 |
|
115 |
|
| 117 |
struct elantech_data { |
116 |
struct elantech_data { |
| 118 |
struct input_dev *tp_dev; /* Relative device for trackpoint */ |
|
|
| 119 |
char tp_phys[32]; |
| 120 |
unsigned char reg_07; |
117 |
unsigned char reg_07; |
| 121 |
unsigned char reg_10; |
118 |
unsigned char reg_10; |
| 122 |
unsigned char reg_11; |
119 |
unsigned char reg_11; |
|
Lines 132-139
struct elantech_data {
Link Here
|
| 132 |
bool paritycheck; |
129 |
bool paritycheck; |
| 133 |
bool jumpy_cursor; |
130 |
bool jumpy_cursor; |
| 134 |
bool reports_pressure; |
131 |
bool reports_pressure; |
| 135 |
bool crc_enabled; |
|
|
| 136 |
bool set_hw_resolution; |
| 137 |
unsigned char hw_version; |
132 |
unsigned char hw_version; |
| 138 |
unsigned int fw_version; |
133 |
unsigned int fw_version; |
| 139 |
unsigned int single_finger_reports; |
134 |
unsigned int single_finger_reports; |
|
Lines 142-148
struct elantech_data {
Link Here
|
| 142 |
struct finger_pos mt[ETP_MAX_FINGERS]; |
137 |
struct finger_pos mt[ETP_MAX_FINGERS]; |
| 143 |
unsigned char parity[256]; |
138 |
unsigned char parity[256]; |
| 144 |
int (*send_cmd)(struct psmouse *psmouse, unsigned char c, unsigned char *param); |
139 |
int (*send_cmd)(struct psmouse *psmouse, unsigned char c, unsigned char *param); |
| 145 |
void (*original_set_rate)(struct psmouse *psmouse, unsigned int rate); |
|
|
| 146 |
}; |
140 |
}; |
| 147 |
|
141 |
|
| 148 |
#ifdef CONFIG_MOUSE_PS2_ELANTECH |
142 |
#ifdef CONFIG_MOUSE_PS2_ELANTECH |