wacom_wac.h (99acedadde157a02b21761fd406ef7adc7615533) wacom_wac.h (83417206427bdf0fef9fa69957807194f25923c3)
1/*
2 * 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 */
9#ifndef WACOM_WAC_H
10#define WACOM_WAC_H
11
12#include <linux/types.h>
13#include <linux/hid.h>
1/*
2 * 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 */
9#ifndef WACOM_WAC_H
10#define WACOM_WAC_H
11
12#include <linux/types.h>
13#include <linux/hid.h>
14#include <linux/kfifo.h>
14
15/* maximum packet length for USB/BT devices */
16#define WACOM_PKGLEN_MAX 361
17
18#define WACOM_NAME_MAX 64
19#define WACOM_MAX_REMOTES 5
20#define WACOM_STATUS_UNKNOWN 255
21

--- 61 unchanged lines hidden (view full) ---

83#define WAC_CMD_UNPAIR_ALL 0xFF
84#define WAC_CMD_WL_INTUOSP2 0x82
85
86/* device quirks */
87#define WACOM_QUIRK_BBTOUCH_LOWRES 0x0001
88#define WACOM_QUIRK_SENSE 0x0002
89#define WACOM_QUIRK_AESPEN 0x0004
90#define WACOM_QUIRK_BATTERY 0x0008
15
16/* maximum packet length for USB/BT devices */
17#define WACOM_PKGLEN_MAX 361
18
19#define WACOM_NAME_MAX 64
20#define WACOM_MAX_REMOTES 5
21#define WACOM_STATUS_UNKNOWN 255
22

--- 61 unchanged lines hidden (view full) ---

84#define WAC_CMD_UNPAIR_ALL 0xFF
85#define WAC_CMD_WL_INTUOSP2 0x82
86
87/* device quirks */
88#define WACOM_QUIRK_BBTOUCH_LOWRES 0x0001
89#define WACOM_QUIRK_SENSE 0x0002
90#define WACOM_QUIRK_AESPEN 0x0004
91#define WACOM_QUIRK_BATTERY 0x0008
92#define WACOM_QUIRK_TOOLSERIAL 0x0010
91
92/* device types */
93#define WACOM_DEVICETYPE_NONE 0x0000
94#define WACOM_DEVICETYPE_PEN 0x0001
95#define WACOM_DEVICETYPE_TOUCH 0x0002
96#define WACOM_DEVICETYPE_PAD 0x0004
97#define WACOM_DEVICETYPE_WL_MONITOR 0x0008
98#define WACOM_DEVICETYPE_DIRECT 0x0010

--- 235 unchanged lines hidden (view full) ---

334 int id[2];
335 __u64 serial[2];
336 bool reporting_data;
337 struct wacom_features features;
338 struct wacom_shared *shared;
339 struct input_dev *pen_input;
340 struct input_dev *touch_input;
341 struct input_dev *pad_input;
93
94/* device types */
95#define WACOM_DEVICETYPE_NONE 0x0000
96#define WACOM_DEVICETYPE_PEN 0x0001
97#define WACOM_DEVICETYPE_TOUCH 0x0002
98#define WACOM_DEVICETYPE_PAD 0x0004
99#define WACOM_DEVICETYPE_WL_MONITOR 0x0008
100#define WACOM_DEVICETYPE_DIRECT 0x0010

--- 235 unchanged lines hidden (view full) ---

336 int id[2];
337 __u64 serial[2];
338 bool reporting_data;
339 struct wacom_features features;
340 struct wacom_shared *shared;
341 struct input_dev *pen_input;
342 struct input_dev *touch_input;
343 struct input_dev *pad_input;
344 struct kfifo_rec_ptr_2 pen_fifo;
342 int pid;
343 int num_contacts_left;
344 u8 bt_features;
345 u8 bt_high_speed;
346 int mode_report;
347 int mode_value;
348 struct hid_data hid_data;
349 bool has_mute_touch_switch;
350 bool has_mode_change;
351 bool is_direct_mode;
352
353};
354
355#endif
345 int pid;
346 int num_contacts_left;
347 u8 bt_features;
348 u8 bt_high_speed;
349 int mode_report;
350 int mode_value;
351 struct hid_data hid_data;
352 bool has_mute_touch_switch;
353 bool has_mode_change;
354 bool is_direct_mode;
355
356};
357
358#endif