Commit | Line | Data |
---|---|---|
3bea733a | 1 | /* |
4104d13f | 2 | * drivers/input/tablet/wacom_wac.h |
3bea733a PC |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | */ | |
9 | #ifndef WACOM_WAC_H | |
10 | #define WACOM_WAC_H | |
11 | ||
ee54500d PC |
12 | /* maximum packet length for USB devices */ |
13 | #define WACOM_PKGLEN_MAX 32 | |
14 | ||
15 | /* packet length for individual models */ | |
16 | #define WACOM_PKGLEN_PENPRTN 7 | |
17 | #define WACOM_PKGLEN_GRAPHIRE 8 | |
18 | #define WACOM_PKGLEN_BBFUN 9 | |
19 | #define WACOM_PKGLEN_INTUOS 10 | |
20 | #define WACOM_PKGLEN_PENABLED 8 | |
21 | #define WACOM_PKGLEN_TPC1FG 5 | |
22 | ||
3bea733a | 23 | #define STYLUS_DEVICE_ID 0x02 |
545f4e99 | 24 | #define TOUCH_DEVICE_ID 0x03 |
3bea733a PC |
25 | #define CURSOR_DEVICE_ID 0x06 |
26 | #define ERASER_DEVICE_ID 0x0A | |
80d4e8e9 | 27 | #define PAD_DEVICE_ID 0x0F |
3bea733a PC |
28 | |
29 | enum { | |
30 | PENPARTNER = 0, | |
31 | GRAPHIRE, | |
32 | WACOM_G4, | |
33 | PTU, | |
34 | PL, | |
35 | INTUOS, | |
8d32e3ae | 36 | INTUOS3S, |
3bea733a PC |
37 | INTUOS3, |
38 | INTUOS3L, | |
6f660f12 PC |
39 | INTUOS4S, |
40 | INTUOS4, | |
41 | INTUOS4L, | |
3bea733a | 42 | CINTIQ, |
0e1763f5 | 43 | WACOM_BEE, |
7ecfbfd3 | 44 | WACOM_MO, |
545f4e99 | 45 | TABLETPC, |
3bea733a PC |
46 | MAX_TYPE |
47 | }; | |
48 | ||
49 | struct wacom_features { | |
50 | char *name; | |
51 | int pktlen; | |
52 | int x_max; | |
53 | int y_max; | |
54 | int pressure_max; | |
55 | int distance_max; | |
56 | int type; | |
545f4e99 PC |
57 | int touch_x_max; |
58 | int touch_y_max; | |
3bea733a PC |
59 | }; |
60 | ||
61 | struct wacom_wac { | |
4ee1fc8e | 62 | unsigned char *data; |
3bea733a PC |
63 | int tool[2]; |
64 | int id[2]; | |
65 | __u32 serial[2]; | |
66 | struct wacom_features *features; | |
67 | }; | |
68 | ||
69 | #endif |