1 #ifndef __HID_ROCCAT_ISKU_H
2 #define __HID_ROCCAT_ISKU_H
5 * Copyright (c) 2011 Stefan Achatz <erazor_de@users.sourceforge.net>
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 enum isku_control_values
{
29 ISKU_CONTROL_VALUE_STATUS_OVERLOAD
= 0,
30 ISKU_CONTROL_VALUE_STATUS_OK
= 1,
31 ISKU_CONTROL_VALUE_STATUS_INVALID
= 2,
32 ISKU_CONTROL_VALUE_STATUS_WAIT
= 3,
35 struct isku_actual_profile
{
36 uint8_t command
; /* ISKU_COMMAND_ACTUAL_PROFILE */
37 uint8_t size
; /* always 3 */
38 uint8_t actual_profile
;
41 struct isku_key_mask
{
42 uint8_t command
; /* ISKU_COMMAND_KEY_MASK */
44 uint8_t profile_number
; /* 0-4 */
49 struct isku_keys_function
{
53 struct isku_keys_easyzone
{
57 struct isku_keys_media
{
61 struct isku_keys_thumbster
{
65 struct isku_keys_macro
{
69 struct isku_keys_capslock
{
83 uint8_t firmware_version
;
91 struct isku_last_set
{
96 ISKU_COMMAND_CONTROL
= 0x4,
97 ISKU_COMMAND_ACTUAL_PROFILE
= 0x5,
98 ISKU_COMMAND_KEY_MASK
= 0x7,
99 ISKU_COMMAND_KEYS_FUNCTION
= 0x8,
100 ISKU_COMMAND_KEYS_EASYZONE
= 0x9,
101 ISKU_COMMAND_KEYS_MEDIA
= 0xa,
102 ISKU_COMMAND_KEYS_THUMBSTER
= 0xb,
103 ISKU_COMMAND_KEYS_MACRO
= 0xd,
104 ISKU_COMMAND_MACRO
= 0xe,
105 ISKU_COMMAND_INFO
= 0xf,
106 ISKU_COMMAND_LIGHT
= 0x10,
107 ISKU_COMMAND_KEYS_CAPSLOCK
= 0x13,
108 ISKU_COMMAND_LAST_SET
= 0x14,
109 ISKU_COMMAND_15
= 0x15,
110 ISKU_COMMAND_TALK
= 0x16,
111 ISKU_COMMAND_FIRMWARE_WRITE
= 0x1b,
112 ISKU_COMMAND_FIRMWARE_WRITE_CONTROL
= 0x1c,
115 struct isku_report_button
{
116 uint8_t number
; /* ISKU_REPORT_NUMBER_BUTTON */
123 enum isku_report_numbers
{
124 ISKU_REPORT_NUMBER_BUTTON
= 3,
127 enum isku_report_button_events
{
128 ISKU_REPORT_BUTTON_EVENT_PROFILE
= 0x2,
131 struct isku_roccat_report
{
142 struct mutex isku_lock
;