diff options
Diffstat (limited to 'drivers/hid/hid-roccat-pyra.h')
-rw-r--r-- | drivers/hid/hid-roccat-pyra.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/drivers/hid/hid-roccat-pyra.h b/drivers/hid/hid-roccat-pyra.h index eada7830fa99..beedcf001ceb 100644 --- a/drivers/hid/hid-roccat-pyra.h +++ b/drivers/hid/hid-roccat-pyra.h | |||
@@ -14,11 +14,13 @@ | |||
14 | 14 | ||
15 | #include <linux/types.h> | 15 | #include <linux/types.h> |
16 | 16 | ||
17 | struct pyra_b { | 17 | enum { |
18 | uint8_t command; /* PYRA_COMMAND_B */ | 18 | PYRA_SIZE_CONTROL = 0x03, |
19 | uint8_t size; /* always 3 */ | 19 | PYRA_SIZE_INFO = 0x06, |
20 | uint8_t unknown; /* 1 */ | 20 | PYRA_SIZE_PROFILE_SETTINGS = 0x0d, |
21 | } __attribute__ ((__packed__)); | 21 | PYRA_SIZE_PROFILE_BUTTONS = 0x13, |
22 | PYRA_SIZE_SETTINGS = 0x03, | ||
23 | }; | ||
22 | 24 | ||
23 | enum pyra_control_requests { | 25 | enum pyra_control_requests { |
24 | PYRA_CONTROL_REQUEST_PROFILE_SETTINGS = 0x10, | 26 | PYRA_CONTROL_REQUEST_PROFILE_SETTINGS = 0x10, |
@@ -46,14 +48,6 @@ struct pyra_profile_settings { | |||
46 | uint16_t checksum; /* byte sum */ | 48 | uint16_t checksum; /* byte sum */ |
47 | } __attribute__ ((__packed__)); | 49 | } __attribute__ ((__packed__)); |
48 | 50 | ||
49 | struct pyra_profile_buttons { | ||
50 | uint8_t command; /* PYRA_COMMAND_PROFILE_BUTTONS */ | ||
51 | uint8_t size; /* always 0x13 */ | ||
52 | uint8_t number; /* Range 0-4 */ | ||
53 | uint8_t buttons[14]; | ||
54 | uint16_t checksum; /* byte sum */ | ||
55 | } __attribute__ ((__packed__)); | ||
56 | |||
57 | struct pyra_info { | 51 | struct pyra_info { |
58 | uint8_t command; /* PYRA_COMMAND_INFO */ | 52 | uint8_t command; /* PYRA_COMMAND_INFO */ |
59 | uint8_t size; /* always 6 */ | 53 | uint8_t size; /* always 6 */ |
@@ -64,6 +58,7 @@ struct pyra_info { | |||
64 | } __attribute__ ((__packed__)); | 58 | } __attribute__ ((__packed__)); |
65 | 59 | ||
66 | enum pyra_commands { | 60 | enum pyra_commands { |
61 | PYRA_COMMAND_CONTROL = 0x4, | ||
67 | PYRA_COMMAND_SETTINGS = 0x5, | 62 | PYRA_COMMAND_SETTINGS = 0x5, |
68 | PYRA_COMMAND_PROFILE_SETTINGS = 0x6, | 63 | PYRA_COMMAND_PROFILE_SETTINGS = 0x6, |
69 | PYRA_COMMAND_PROFILE_BUTTONS = 0x7, | 64 | PYRA_COMMAND_PROFILE_BUTTONS = 0x7, |
@@ -148,13 +143,10 @@ struct pyra_roccat_report { | |||
148 | struct pyra_device { | 143 | struct pyra_device { |
149 | int actual_profile; | 144 | int actual_profile; |
150 | int actual_cpi; | 145 | int actual_cpi; |
151 | int firmware_version; | ||
152 | int roccat_claimed; | 146 | int roccat_claimed; |
153 | int chrdev_minor; | 147 | int chrdev_minor; |
154 | struct mutex pyra_lock; | 148 | struct mutex pyra_lock; |
155 | struct pyra_settings settings; | ||
156 | struct pyra_profile_settings profile_settings[5]; | 149 | struct pyra_profile_settings profile_settings[5]; |
157 | struct pyra_profile_buttons profile_buttons[5]; | ||
158 | }; | 150 | }; |
159 | 151 | ||
160 | #endif | 152 | #endif |