wacom_wac.h 1.4 KB

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