wacom_wac.h 824 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * drivers/usb/input/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. enum {
  15. PENPARTNER = 0,
  16. GRAPHIRE,
  17. WACOM_G4,
  18. PTU,
  19. PL,
  20. INTUOS,
  21. INTUOS3S,
  22. INTUOS3,
  23. INTUOS3L,
  24. CINTIQ,
  25. MAX_TYPE
  26. };
  27. struct wacom_features {
  28. char *name;
  29. int pktlen;
  30. int x_max;
  31. int y_max;
  32. int pressure_max;
  33. int distance_max;
  34. int type;
  35. };
  36. struct wacom_wac {
  37. signed char *data;
  38. int tool[2];
  39. int id[2];
  40. __u32 serial[2];
  41. struct wacom_features *features;
  42. };
  43. #endif