1 #ifndef __HID_ROCCAT_ISKU_H
2 #define __HID_ROCCAT_ISKU_H
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the Free
11 * Software Foundation; either version 2 of the License, or (at your option)
15 #include <linux/types.h>
19 ISKU_USB_INTERFACE_PROTOCOL = 0,
23 uint8_t command; /* ISKU_COMMAND_CONTROL */
28 struct isku_actual_profile {
29 uint8_t command; /* ISKU_COMMAND_ACTUAL_PROFILE */
30 uint8_t size; /* always 3 */
31 uint8_t actual_profile;
34 struct isku_key_mask {
35 uint8_t command; /* ISKU_COMMAND_KEY_MASK */
37 uint8_t profile_number; /* 0-4 */
42 struct isku_keys_function {
46 struct isku_keys_easyzone {
50 struct isku_keys_media {
54 struct isku_keys_thumbster {
58 struct isku_keys_macro {
62 struct isku_keys_capslock {
76 uint8_t firmware_version;
84 struct isku_last_set {
89 ISKU_COMMAND_CONTROL = 0x4,
90 ISKU_COMMAND_ACTUAL_PROFILE = 0x5,
91 ISKU_COMMAND_KEY_MASK = 0x7,
92 ISKU_COMMAND_KEYS_FUNCTION = 0x8,
93 ISKU_COMMAND_KEYS_EASYZONE = 0x9,
94 ISKU_COMMAND_KEYS_MEDIA = 0xa,
95 ISKU_COMMAND_KEYS_THUMBSTER = 0xb,
96 ISKU_COMMAND_KEYS_MACRO = 0xd,
97 ISKU_COMMAND_MACRO = 0xe,
98 ISKU_COMMAND_INFO = 0xf,
99 ISKU_COMMAND_LIGHT = 0x10,
100 ISKU_COMMAND_KEYS_CAPSLOCK = 0x13,
101 ISKU_COMMAND_LAST_SET = 0x14,
102 ISKU_COMMAND_15 = 0x15,
103 ISKU_COMMAND_TALK = 0x16,
104 ISKU_COMMAND_FIRMWARE_WRITE = 0x1b,
105 ISKU_COMMAND_FIRMWARE_WRITE_CONTROL = 0x1c,
108 struct isku_report_button {
109 uint8_t number; /* ISKU_REPORT_NUMBER_BUTTON */
116 enum isku_report_numbers {
117 ISKU_REPORT_NUMBER_BUTTON = 3,
120 enum isku_report_button_events {
121 ISKU_REPORT_BUTTON_EVENT_PROFILE = 0x2,
124 struct isku_roccat_report {
135 struct mutex isku_lock;