diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 21:29:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-10 21:29:38 -0500 |
commit | 870fd0f5df4e131467612cc46db46fc3b69fd706 (patch) | |
tree | b7747c644003da42ec9d4265fa4a9cc6b9fb7297 /drivers/hid/wacom_wac.h | |
parent | 06cc01a0dea523b5c9acfd1ed276648c54012912 (diff) | |
parent | 988b7fb0bfc215476c3a0a623b442cd0e29ce4c0 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
Pull HID updates from Jiri Kosina:
"Updates for HID code
- improveements of Logitech HID++ procotol implementation, from
Benjamin Tissoires
- support for composite RMI devices, from Andrew Duggan
- new driver for BETOP controller, from Huang Bo
- fixup for conflicting mapping in HID core between PC-101/103/104
and PC-102/105 keyboards from David Herrmann
- new hardware support and fixes in Wacom driver, from Ping Cheng
- assorted small fixes and device ID additions all over the place"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (33 commits)
HID: wacom: add support for Cintiq 27QHD and 27QHD touch
HID: wacom: consolidate input capability settings for pen and touch
HID: wacom: make sure touch arbitration is applied consistently
HID: pidff: Fix initialisation forMicrosoft Sidewinder FF Pro 2
HID: hyperv: match wait_for_completion_timeout return type
HID: wacom: Report ABS_MISC event for Cintiq Companion Hybrid
HID: Use Kbuild idiom in Makefiles
HID: do not bind to Microchip Pick16F1454
HID: hid-lg4ff: use DEVICE_ATTR_RW macro
HID: hid-lg4ff: fix sysfs attribute permission
HID: wacom: peport In Range event according to the spec
HID: wacom: process invalid Cintiq and Intuos data in wacom_intuos_inout()
HID: rmi: Add support for the touchpad in the Razer Blade 14 laptop
HID: rmi: Support touchpads with external buttons
HID: rmi: Use hid_report_len to compute the size of reports
HID: logitech-hidpp: store the name of the device in struct hidpp
HID: microsoft: add support for Japanese Surface Type Cover 3
HID: fixup the conflicting keyboard mappings quirk
HID: apple: fix battery support for the 2009 ANSI wireless keyboard
HID: fix Kconfig text
...
Diffstat (limited to 'drivers/hid/wacom_wac.h')
-rw-r--r-- | drivers/hid/wacom_wac.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h index bfad815cda8a..021ee1c1980a 100644 --- a/drivers/hid/wacom_wac.h +++ b/drivers/hid/wacom_wac.h | |||
@@ -10,9 +10,10 @@ | |||
10 | #define WACOM_WAC_H | 10 | #define WACOM_WAC_H |
11 | 11 | ||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <linux/hid.h> | ||
13 | 14 | ||
14 | /* maximum packet length for USB devices */ | 15 | /* maximum packet length for USB devices */ |
15 | #define WACOM_PKGLEN_MAX 68 | 16 | #define WACOM_PKGLEN_MAX 192 |
16 | 17 | ||
17 | #define WACOM_NAME_MAX 64 | 18 | #define WACOM_NAME_MAX 64 |
18 | 19 | ||
@@ -36,6 +37,7 @@ | |||
36 | /* wacom data size per MT contact */ | 37 | /* wacom data size per MT contact */ |
37 | #define WACOM_BYTES_PER_MT_PACKET 11 | 38 | #define WACOM_BYTES_PER_MT_PACKET 11 |
38 | #define WACOM_BYTES_PER_24HDT_PACKET 14 | 39 | #define WACOM_BYTES_PER_24HDT_PACKET 14 |
40 | #define WACOM_BYTES_PER_QHDTHID_PACKET 6 | ||
39 | 41 | ||
40 | /* device IDs */ | 42 | /* device IDs */ |
41 | #define STYLUS_DEVICE_ID 0x02 | 43 | #define STYLUS_DEVICE_ID 0x02 |
@@ -57,6 +59,8 @@ | |||
57 | #define WACOM_REPORT_TPCMT 13 | 59 | #define WACOM_REPORT_TPCMT 13 |
58 | #define WACOM_REPORT_TPCMT2 3 | 60 | #define WACOM_REPORT_TPCMT2 3 |
59 | #define WACOM_REPORT_TPCHID 15 | 61 | #define WACOM_REPORT_TPCHID 15 |
62 | #define WACOM_REPORT_CINTIQ 16 | ||
63 | #define WACOM_REPORT_CINTIQPAD 17 | ||
60 | #define WACOM_REPORT_TPCST 16 | 64 | #define WACOM_REPORT_TPCST 16 |
61 | #define WACOM_REPORT_DTUS 17 | 65 | #define WACOM_REPORT_DTUS 17 |
62 | #define WACOM_REPORT_TPC1FGE 18 | 66 | #define WACOM_REPORT_TPC1FGE 18 |
@@ -71,6 +75,14 @@ | |||
71 | #define WACOM_QUIRK_MONITOR 0x0008 | 75 | #define WACOM_QUIRK_MONITOR 0x0008 |
72 | #define WACOM_QUIRK_BATTERY 0x0010 | 76 | #define WACOM_QUIRK_BATTERY 0x0010 |
73 | 77 | ||
78 | #define WACOM_PEN_FIELD(f) (((f)->logical == HID_DG_STYLUS) || \ | ||
79 | ((f)->physical == HID_DG_STYLUS) || \ | ||
80 | ((f)->physical == HID_DG_PEN) || \ | ||
81 | ((f)->application == HID_DG_PEN)) | ||
82 | #define WACOM_FINGER_FIELD(f) (((f)->logical == HID_DG_FINGER) || \ | ||
83 | ((f)->physical == HID_DG_FINGER) || \ | ||
84 | ((f)->application == HID_DG_TOUCHSCREEN)) | ||
85 | |||
74 | enum { | 86 | enum { |
75 | PENPARTNER = 0, | 87 | PENPARTNER = 0, |
76 | GRAPHIRE, | 88 | GRAPHIRE, |
@@ -100,6 +112,7 @@ enum { | |||
100 | WACOM_22HD, | 112 | WACOM_22HD, |
101 | DTK, | 113 | DTK, |
102 | WACOM_24HD, | 114 | WACOM_24HD, |
115 | WACOM_27QHD, | ||
103 | CINTIQ_HYBRID, | 116 | CINTIQ_HYBRID, |
104 | CINTIQ, | 117 | CINTIQ, |
105 | WACOM_BEE, | 118 | WACOM_BEE, |
@@ -108,6 +121,7 @@ enum { | |||
108 | WIRELESS, | 121 | WIRELESS, |
109 | BAMBOO_PT, | 122 | BAMBOO_PT, |
110 | WACOM_24HDT, | 123 | WACOM_24HDT, |
124 | WACOM_27QHDT, | ||
111 | TABLETPC, /* add new TPC below */ | 125 | TABLETPC, /* add new TPC below */ |
112 | TABLETPCE, | 126 | TABLETPCE, |
113 | TABLETPC2FG, | 127 | TABLETPC2FG, |
@@ -180,6 +194,7 @@ struct wacom_wac { | |||
180 | int tool[2]; | 194 | int tool[2]; |
181 | int id[2]; | 195 | int id[2]; |
182 | __u32 serial[2]; | 196 | __u32 serial[2]; |
197 | bool reporting_data; | ||
183 | struct wacom_features features; | 198 | struct wacom_features features; |
184 | struct wacom_shared *shared; | 199 | struct wacom_shared *shared; |
185 | struct input_dev *input; | 200 | struct input_dev *input; |