wacom_wac.h 880 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #define STYLUS_DEVICE_ID 0x02
  12. #define CURSOR_DEVICE_ID 0x06
  13. #define ERASER_DEVICE_ID 0x0A
  14. #define PAD_DEVICE_ID 0x0F
  15. enum {
  16. PENPARTNER = 0,
  17. GRAPHIRE,
  18. WACOM_G4,
  19. PTU,
  20. PL,
  21. INTUOS,
  22. INTUOS3S,
  23. INTUOS3,
  24. INTUOS3L,
  25. CINTIQ,
  26. WACOM_BEE,
  27. WACOM_MO,
  28. MAX_TYPE
  29. };
  30. struct wacom_features {
  31. char *name;
  32. int pktlen;
  33. int x_max;
  34. int y_max;
  35. int pressure_max;
  36. int distance_max;
  37. int type;
  38. };
  39. struct wacom_wac {
  40. unsigned char *data;
  41. int tool[2];
  42. int id[2];
  43. __u32 serial[2];
  44. struct wacom_features *features;
  45. };
  46. #endif