diff options
author | Ping Cheng <pingc@wacom.com> | 2006-07-13 21:01:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:52 -0400 |
commit | 3bea733ab21247290bd552dd6a2cd3049af9adef (patch) | |
tree | 26a879698f47702b64e07392a0e813b7ec2589f6 /drivers/usb/input/wacom_wac.h | |
parent | ecdc0a590268f1926ed8534a040a390c77d20948 (diff) |
USB: wacom tablet driver reorganization
- split wacom.c into 4 files: wacom.h, wacom_wac.h, wacom_sys.c, and wacom_wac.c
- where wacom_sys.c deals with system specific code,
- and wacom_wac.c deals with Wacom specific code
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/input/wacom_wac.h')
-rw-r--r-- | drivers/usb/input/wacom_wac.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/drivers/usb/input/wacom_wac.h b/drivers/usb/input/wacom_wac.h new file mode 100644 index 000000000000..ceae7bf59d9f --- /dev/null +++ b/drivers/usb/input/wacom_wac.h | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | * drivers/usb/input/wacom_wac.h | ||
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 | |||
12 | #define STYLUS_DEVICE_ID 0x02 | ||
13 | #define CURSOR_DEVICE_ID 0x06 | ||
14 | #define ERASER_DEVICE_ID 0x0A | ||
15 | |||
16 | enum { | ||
17 | PENPARTNER = 0, | ||
18 | GRAPHIRE, | ||
19 | WACOM_G4, | ||
20 | PTU, | ||
21 | PL, | ||
22 | INTUOS, | ||
23 | INTUOS3, | ||
24 | INTUOS3L, | ||
25 | CINTIQ, | ||
26 | MAX_TYPE | ||
27 | }; | ||
28 | |||
29 | struct wacom_features { | ||
30 | char *name; | ||
31 | int pktlen; | ||
32 | int x_max; | ||
33 | int y_max; | ||
34 | int pressure_max; | ||
35 | int distance_max; | ||
36 | int type; | ||
37 | usb_complete_t irq; | ||
38 | }; | ||
39 | |||
40 | struct wacom_wac { | ||
41 | signed char *data; | ||
42 | int tool[2]; | ||
43 | int id[2]; | ||
44 | __u32 serial[2]; | ||
45 | struct wacom_features *features; | ||
46 | }; | ||
47 | |||
48 | #endif | ||