wacom_wac.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_PENABLED 8
  19. #define WACOM_PKGLEN_TPC1FG 5
  20. #define STYLUS_DEVICE_ID 0x02
  21. #define TOUCH_DEVICE_ID 0x03
  22. #define CURSOR_DEVICE_ID 0x06
  23. #define ERASER_DEVICE_ID 0x0A
  24. #define PAD_DEVICE_ID 0x0F
  25. enum {
  26. PENPARTNER = 0,
  27. GRAPHIRE,
  28. WACOM_G4,
  29. PTU,
  30. PL,
  31. INTUOS,
  32. INTUOS3S,
  33. INTUOS3,
  34. INTUOS3L,
  35. INTUOS4S,
  36. INTUOS4,
  37. INTUOS4L,
  38. CINTIQ,
  39. WACOM_BEE,
  40. WACOM_MO,
  41. TABLETPC,
  42. MAX_TYPE
  43. };
  44. struct wacom_features {
  45. char *name;
  46. int pktlen;
  47. int x_max;
  48. int y_max;
  49. int pressure_max;
  50. int distance_max;
  51. int type;
  52. int touch_x_max;
  53. int touch_y_max;
  54. };
  55. struct wacom_wac {
  56. unsigned char *data;
  57. int tool[2];
  58. int id[2];
  59. __u32 serial[2];
  60. struct wacom_features *features;
  61. };
  62. #endif