aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_wac.h
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2012-04-30 00:09:18 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-04-30 00:13:53 -0400
commit1963518b9b1b8019d33b4b08deee6f873ffa2730 (patch)
tree5bcdd926950a9b75799232f7f5b6dd3d95905a7f /drivers/input/tablet/wacom_wac.h
parentf393ee2b814e3291c12565000210b3cf10aa5c1d (diff)
Input: wacom - add 0xE5 (MT device) support
Main part of patch is adding support for a new Wacom MT touch packet and labels these devices using MTSCREEN type. Other items of interest: Delete some duplicate code in HID parsing for Y info since its already done in X path. In wacom_query_tablet_data(), only invoke the set report that requests tablets to send Wacom Touch packets for Finger interfaces. Mostly, this is to make code intent clear. Tested-by: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet/wacom_wac.h')
-rw-r--r--drivers/input/tablet/wacom_wac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom_wac.h b/drivers/input/tablet/wacom_wac.h
index 321269c1ac4c..78fbd3f42009 100644
--- a/drivers/input/tablet/wacom_wac.h
+++ b/drivers/input/tablet/wacom_wac.h
@@ -25,6 +25,10 @@
25#define WACOM_PKGLEN_BBTOUCH3 64 25#define WACOM_PKGLEN_BBTOUCH3 64
26#define WACOM_PKGLEN_BBPEN 10 26#define WACOM_PKGLEN_BBPEN 10
27#define WACOM_PKGLEN_WIRELESS 32 27#define WACOM_PKGLEN_WIRELESS 32
28#define WACOM_PKGLEN_MTOUCH 62
29
30/* wacom data size per MT contact */
31#define WACOM_BYTES_PER_MT_PACKET 11
28 32
29/* device IDs */ 33/* device IDs */
30#define STYLUS_DEVICE_ID 0x02 34#define STYLUS_DEVICE_ID 0x02
@@ -41,6 +45,7 @@
41#define WACOM_REPORT_INTUOS5PAD 3 45#define WACOM_REPORT_INTUOS5PAD 3
42#define WACOM_REPORT_TPC1FG 6 46#define WACOM_REPORT_TPC1FG 6
43#define WACOM_REPORT_TPC2FG 13 47#define WACOM_REPORT_TPC2FG 13
48#define WACOM_REPORT_TPCMT 13
44#define WACOM_REPORT_TPCHID 15 49#define WACOM_REPORT_TPCHID 15
45#define WACOM_REPORT_TPCST 16 50#define WACOM_REPORT_TPCST 16
46 51
@@ -76,6 +81,7 @@ enum {
76 WACOM_MO, 81 WACOM_MO,
77 TABLETPC, 82 TABLETPC,
78 TABLETPC2FG, 83 TABLETPC2FG,
84 MTSCREEN,
79 MAX_TYPE 85 MAX_TYPE
80}; 86};
81 87
@@ -118,6 +124,8 @@ struct wacom_wac {
118 struct input_dev *input; 124 struct input_dev *input;
119 int pid; 125 int pid;
120 int battery_capacity; 126 int battery_capacity;
127 int num_contacts_left;
128 int *slots;
121}; 129};
122 130
123#endif 131#endif