Path: blob/master/drivers/input/tablet/wacom_wac.h
15112 views
/*1* drivers/input/tablet/wacom_wac.h2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*/8#ifndef WACOM_WAC_H9#define WACOM_WAC_H1011#include <linux/types.h>1213/* maximum packet length for USB devices */14#define WACOM_PKGLEN_MAX 321516/* packet length for individual models */17#define WACOM_PKGLEN_PENPRTN 718#define WACOM_PKGLEN_GRAPHIRE 819#define WACOM_PKGLEN_BBFUN 920#define WACOM_PKGLEN_INTUOS 1021#define WACOM_PKGLEN_TPC1FG 522#define WACOM_PKGLEN_TPC2FG 1423#define WACOM_PKGLEN_BBTOUCH 202425/* device IDs */26#define STYLUS_DEVICE_ID 0x0227#define TOUCH_DEVICE_ID 0x0328#define CURSOR_DEVICE_ID 0x0629#define ERASER_DEVICE_ID 0x0A30#define PAD_DEVICE_ID 0x0F3132/* wacom data packet report IDs */33#define WACOM_REPORT_PENABLED 234#define WACOM_REPORT_INTUOSREAD 535#define WACOM_REPORT_INTUOSWRITE 636#define WACOM_REPORT_INTUOSPAD 1237#define WACOM_REPORT_TPC1FG 638#define WACOM_REPORT_TPC2FG 133940/* device quirks */41#define WACOM_QUIRK_MULTI_INPUT 0x000142#define WACOM_QUIRK_BBTOUCH_LOWRES 0x00024344enum {45PENPARTNER = 0,46GRAPHIRE,47WACOM_G4,48PTU,49PL,50DTU,51BAMBOO_PT,52INTUOS,53INTUOS3S,54INTUOS3,55INTUOS3L,56INTUOS4S,57INTUOS4,58INTUOS4L,59WACOM_21UX2,60CINTIQ,61WACOM_BEE,62WACOM_MO,63TABLETPC,64TABLETPC2FG,65MAX_TYPE66};6768struct wacom_features {69const char *name;70int pktlen;71int x_max;72int y_max;73int pressure_max;74int distance_max;75int type;76int x_resolution;77int y_resolution;78int device_type;79int x_phy;80int y_phy;81unsigned char unit;82unsigned char unitExpo;83int x_fuzz;84int y_fuzz;85int pressure_fuzz;86int distance_fuzz;87unsigned quirks;88};8990struct wacom_shared {91bool stylus_in_proximity;92bool touch_down;93};9495struct wacom_wac {96char name[64];97unsigned char *data;98int tool[2];99int id[2];100__u32 serial[2];101struct wacom_features features;102struct wacom_shared *shared;103struct input_dev *input;104};105106#endif107108109