wacom_wac.h 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_MO,
  27. MAX_TYPE
  28. };
  29. struct wacom_features {
  30. char *name;
  31. int pktlen;
  32. int x_max;
  33. int y_max;
  34. int pressure_max;
  35. int distance_max;
  36. int type;
  37. };
  38. struct wacom_wac {
  39. unsigned char *data;
  40. int tool[2];
  41. int id[2];
  42. __u32 serial[2];
  43. struct wacom_features *features;
  44. };
  45. #endif