wacom_wac.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. /* maximum packet length for USB devices */
  12. #define WACOM_PKGLEN_MAX 32
  13. /* packet length for individual models */
  14. #define WACOM_PKGLEN_PENPRTN 7
  15. #define WACOM_PKGLEN_GRAPHIRE 8
  16. #define WACOM_PKGLEN_BBFUN 9
  17. #define WACOM_PKGLEN_INTUOS 10
  18. #define WACOM_PKGLEN_TPC1FG 5
  19. #define WACOM_PKGLEN_TPC2FG 14
  20. /* device IDs */
  21. #define STYLUS_DEVICE_ID 0x02
  22. #define TOUCH_DEVICE_ID 0x03
  23. #define CURSOR_DEVICE_ID 0x06
  24. #define ERASER_DEVICE_ID 0x0A
  25. #define PAD_DEVICE_ID 0x0F
  26. /* wacom data packet report IDs */
  27. #define WACOM_REPORT_PENABLED 2
  28. #define WACOM_REPORT_INTUOSREAD 5
  29. #define WACOM_REPORT_INTUOSWRITE 6
  30. #define WACOM_REPORT_INTUOSPAD 12
  31. #define WACOM_REPORT_TPC1FG 6
  32. #define WACOM_REPORT_TPC2FG 13
  33. enum {
  34. PENPARTNER = 0,
  35. GRAPHIRE,
  36. WACOM_G4,
  37. PTU,
  38. PL,
  39. INTUOS,
  40. INTUOS3S,
  41. INTUOS3,
  42. INTUOS3L,
  43. INTUOS4S,
  44. INTUOS4,
  45. INTUOS4L,
  46. CINTIQ,
  47. WACOM_BEE,
  48. WACOM_MO,
  49. TABLETPC,
  50. TABLETPC2FG,
  51. MAX_TYPE
  52. };
  53. struct wacom_features {
  54. const char *name;
  55. int pktlen;
  56. int x_max;
  57. int y_max;
  58. int pressure_max;
  59. int distance_max;
  60. int type;
  61. int device_type;
  62. int x_phy;
  63. int y_phy;
  64. unsigned char unit;
  65. unsigned char unitExpo;
  66. };
  67. struct wacom_wac {
  68. char name[64];
  69. unsigned char *data;
  70. int tool[2];
  71. int id[2];
  72. __u32 serial[2];
  73. struct wacom_features features;
  74. };
  75. #endif