hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/hid/wacom_wac.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * drivers/input/tablet/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.
84 */
95 #ifndef WACOM_WAC_H
106 #define WACOM_WAC_H
....@@ -19,6 +15,7 @@
1915 #define WACOM_NAME_MAX 64
2016 #define WACOM_MAX_REMOTES 5
2117 #define WACOM_STATUS_UNKNOWN 255
18
+#define WACOM_REMOTE_BATTERY_TIMEOUT 21000000000ll
2219
2320 /* packet length for individual models */
2421 #define WACOM_PKGLEN_BBFUN 9
....@@ -159,6 +156,7 @@
159156 #define WACOM_HID_WT_SERIALNUMBER (WACOM_HID_UP_WACOMTOUCH | 0x5b)
160157 #define WACOM_HID_WT_X (WACOM_HID_UP_WACOMTOUCH | 0x130)
161158 #define WACOM_HID_WT_Y (WACOM_HID_UP_WACOMTOUCH | 0x131)
159
+#define WACOM_HID_WT_REPORT_VALID (WACOM_HID_UP_WACOMTOUCH | 0x1d0)
162160
163161 #define WACOM_BATTERY_USAGE(f) (((f)->hid == HID_DG_BATTERYSTRENGTH) || \
164162 ((f)->hid == WACOM_HID_WD_BATTERY_CHARGING) || \
....@@ -215,6 +213,7 @@
215213 INTUOSPM,
216214 INTUOSPL,
217215 INTUOSP2_BT,
216
+ INTUOSP2S_BT,
218217 INTUOSHT3_BT,
219218 WACOM_21UX2,
220219 WACOM_22HD,
....@@ -244,6 +243,7 @@
244243 MTTPC,
245244 MTTPC_B,
246245 HID_GENERIC,
246
+ BOOTLOADER,
247247 MAX_TYPE
248248 };
249249
....@@ -321,6 +321,7 @@
321321 int bat_connected;
322322 int ps_connected;
323323 bool pad_input_event_flag;
324
+ ktime_t time_delayed;
324325 };
325326
326327 struct wacom_remote_data {