diff options
Diffstat (limited to 'drivers/input/tablet/wacom_wac.h')
-rw-r--r-- | drivers/input/tablet/wacom_wac.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/drivers/input/tablet/wacom_wac.h b/drivers/input/tablet/wacom_wac.h index 99e1a54cd305..53eb71b68330 100644 --- a/drivers/input/tablet/wacom_wac.h +++ b/drivers/input/tablet/wacom_wac.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #define WACOM_PKGLEN_INTUOS 10 | 21 | #define WACOM_PKGLEN_INTUOS 10 |
22 | #define WACOM_PKGLEN_TPC1FG 5 | 22 | #define WACOM_PKGLEN_TPC1FG 5 |
23 | #define WACOM_PKGLEN_TPC2FG 14 | 23 | #define WACOM_PKGLEN_TPC2FG 14 |
24 | #define WACOM_PKGLEN_BBTOUCH 20 | ||
24 | 25 | ||
25 | /* device IDs */ | 26 | /* device IDs */ |
26 | #define STYLUS_DEVICE_ID 0x02 | 27 | #define STYLUS_DEVICE_ID 0x02 |
@@ -37,6 +38,10 @@ | |||
37 | #define WACOM_REPORT_TPC1FG 6 | 38 | #define WACOM_REPORT_TPC1FG 6 |
38 | #define WACOM_REPORT_TPC2FG 13 | 39 | #define WACOM_REPORT_TPC2FG 13 |
39 | 40 | ||
41 | /* device quirks */ | ||
42 | #define WACOM_QUIRK_MULTI_INPUT 0x0001 | ||
43 | #define WACOM_QUIRK_BBTOUCH_LOWRES 0x0002 | ||
44 | |||
40 | enum { | 45 | enum { |
41 | PENPARTNER = 0, | 46 | PENPARTNER = 0, |
42 | GRAPHIRE, | 47 | GRAPHIRE, |
@@ -44,6 +49,7 @@ enum { | |||
44 | PTU, | 49 | PTU, |
45 | PL, | 50 | PL, |
46 | DTU, | 51 | DTU, |
52 | BAMBOO_PT, | ||
47 | INTUOS, | 53 | INTUOS, |
48 | INTUOS3S, | 54 | INTUOS3S, |
49 | INTUOS3, | 55 | INTUOS3, |
@@ -68,24 +74,31 @@ struct wacom_features { | |||
68 | int pressure_max; | 74 | int pressure_max; |
69 | int distance_max; | 75 | int distance_max; |
70 | int type; | 76 | int type; |
77 | int x_resolution; | ||
78 | int y_resolution; | ||
71 | int device_type; | 79 | int device_type; |
72 | int x_phy; | 80 | int x_phy; |
73 | int y_phy; | 81 | int y_phy; |
74 | unsigned char unit; | 82 | unsigned char unit; |
75 | unsigned char unitExpo; | 83 | unsigned char unitExpo; |
84 | int x_fuzz; | ||
85 | int y_fuzz; | ||
86 | int pressure_fuzz; | ||
87 | int distance_fuzz; | ||
88 | unsigned quirks; | ||
76 | }; | 89 | }; |
77 | 90 | ||
78 | struct wacom_shared { | 91 | struct wacom_shared { |
79 | bool stylus_in_proximity; | 92 | bool stylus_in_proximity; |
93 | bool touch_down; | ||
80 | }; | 94 | }; |
81 | 95 | ||
82 | struct wacom_wac { | 96 | struct wacom_wac { |
83 | char name[64]; | 97 | char name[64]; |
84 | unsigned char *data; | 98 | unsigned char *data; |
85 | int tool[3]; | 99 | int tool[2]; |
86 | int id[3]; | 100 | int id[2]; |
87 | __u32 serial[2]; | 101 | __u32 serial[2]; |
88 | int last_finger; | ||
89 | struct wacom_features features; | 102 | struct wacom_features features; |
90 | struct wacom_shared *shared; | 103 | struct wacom_shared *shared; |
91 | struct input_dev *input; | 104 | struct input_dev *input; |