| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | #ifndef WACOM_WAC_H |
|---|
| 10 | 6 | #define WACOM_WAC_H |
|---|
| .. | .. |
|---|
| 19 | 15 | #define WACOM_NAME_MAX 64 |
|---|
| 20 | 16 | #define WACOM_MAX_REMOTES 5 |
|---|
| 21 | 17 | #define WACOM_STATUS_UNKNOWN 255 |
|---|
| 18 | +#define WACOM_REMOTE_BATTERY_TIMEOUT 21000000000ll |
|---|
| 22 | 19 | |
|---|
| 23 | 20 | /* packet length for individual models */ |
|---|
| 24 | 21 | #define WACOM_PKGLEN_BBFUN 9 |
|---|
| .. | .. |
|---|
| 159 | 156 | #define WACOM_HID_WT_SERIALNUMBER (WACOM_HID_UP_WACOMTOUCH | 0x5b) |
|---|
| 160 | 157 | #define WACOM_HID_WT_X (WACOM_HID_UP_WACOMTOUCH | 0x130) |
|---|
| 161 | 158 | #define WACOM_HID_WT_Y (WACOM_HID_UP_WACOMTOUCH | 0x131) |
|---|
| 159 | +#define WACOM_HID_WT_REPORT_VALID (WACOM_HID_UP_WACOMTOUCH | 0x1d0) |
|---|
| 162 | 160 | |
|---|
| 163 | 161 | #define WACOM_BATTERY_USAGE(f) (((f)->hid == HID_DG_BATTERYSTRENGTH) || \ |
|---|
| 164 | 162 | ((f)->hid == WACOM_HID_WD_BATTERY_CHARGING) || \ |
|---|
| .. | .. |
|---|
| 215 | 213 | INTUOSPM, |
|---|
| 216 | 214 | INTUOSPL, |
|---|
| 217 | 215 | INTUOSP2_BT, |
|---|
| 216 | + INTUOSP2S_BT, |
|---|
| 218 | 217 | INTUOSHT3_BT, |
|---|
| 219 | 218 | WACOM_21UX2, |
|---|
| 220 | 219 | WACOM_22HD, |
|---|
| .. | .. |
|---|
| 244 | 243 | MTTPC, |
|---|
| 245 | 244 | MTTPC_B, |
|---|
| 246 | 245 | HID_GENERIC, |
|---|
| 246 | + BOOTLOADER, |
|---|
| 247 | 247 | MAX_TYPE |
|---|
| 248 | 248 | }; |
|---|
| 249 | 249 | |
|---|
| .. | .. |
|---|
| 321 | 321 | int bat_connected; |
|---|
| 322 | 322 | int ps_connected; |
|---|
| 323 | 323 | bool pad_input_event_flag; |
|---|
| 324 | + ktime_t time_delayed; |
|---|
| 324 | 325 | }; |
|---|
| 325 | 326 | |
|---|
| 326 | 327 | struct wacom_remote_data { |
|---|