hid-roccat-savu.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. #ifndef __HID_ROCCAT_SAVU_H
  3. #define __HID_ROCCAT_SAVU_H
  4. /*
  5. * Copyright (c) 2012 Stefan Achatz <[email protected]>
  6. */
  7. /*
  8. */
  9. #include <linux/types.h>
  10. struct savu_mouse_report_special {
  11. uint8_t report_number; /* always 3 */
  12. uint8_t zero;
  13. uint8_t type;
  14. uint8_t data[2];
  15. } __packed;
  16. enum {
  17. SAVU_MOUSE_REPORT_NUMBER_SPECIAL = 3,
  18. };
  19. enum savu_mouse_report_button_types {
  20. /* data1 = new profile range 1-5 */
  21. SAVU_MOUSE_REPORT_BUTTON_TYPE_PROFILE = 0x20,
  22. /* data1 = button number range 1-24; data2 = action */
  23. SAVU_MOUSE_REPORT_BUTTON_TYPE_QUICKLAUNCH = 0x60,
  24. /* data1 = button number range 1-24; data2 = action */
  25. SAVU_MOUSE_REPORT_BUTTON_TYPE_TIMER = 0x80,
  26. /* data1 = setting number range 1-5 */
  27. SAVU_MOUSE_REPORT_BUTTON_TYPE_CPI = 0xb0,
  28. /* data1 and data2 = range 0x1-0xb */
  29. SAVU_MOUSE_REPORT_BUTTON_TYPE_SENSITIVITY = 0xc0,
  30. /* data1 = 22 = next track...
  31. * data2 = action
  32. */
  33. SAVU_MOUSE_REPORT_BUTTON_TYPE_MULTIMEDIA = 0xf0,
  34. };
  35. struct savu_roccat_report {
  36. uint8_t type;
  37. uint8_t data[2];
  38. } __packed;
  39. #endif