1 #ifndef __HID_ROCCAT_KONEPURE_H
2 #define __HID_ROCCAT_KONEPURE_H
5 * Copyright (c) 2012 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>
18 KONEPURE_SIZE_ACTUAL_PROFILE
= 0x03,
19 KONEPURE_SIZE_CONTROL
= 0x03,
20 KONEPURE_SIZE_FIRMWARE_WRITE
= 0x0402,
21 KONEPURE_SIZE_INFO
= 0x06,
22 KONEPURE_SIZE_MACRO
= 0x0822,
23 KONEPURE_SIZE_PROFILE_SETTINGS
= 0x1f,
24 KONEPURE_SIZE_PROFILE_BUTTONS
= 0x3b,
25 KONEPURE_SIZE_SENSOR
= 0x06,
26 KONEPURE_SIZE_TALK
= 0x10,
27 KONEPURE_SIZE_TCU
= 0x04,
28 KONEPURE_SIZE_TCU_IMAGE
= 0x0404,
31 enum konepure_control_requests
{
32 KONEPURE_CONTROL_REQUEST_GENERAL
= 0x80,
33 KONEPURE_CONTROL_REQUEST_BUTTONS
= 0x90,
36 enum konepure_commands
{
37 KONEPURE_COMMAND_CONTROL
= 0x04,
38 KONEPURE_COMMAND_ACTUAL_PROFILE
= 0x05,
39 KONEPURE_COMMAND_PROFILE_SETTINGS
= 0x06,
40 KONEPURE_COMMAND_PROFILE_BUTTONS
= 0x07,
41 KONEPURE_COMMAND_MACRO
= 0x08,
42 KONEPURE_COMMAND_INFO
= 0x09,
43 KONEPURE_COMMAND_TCU
= 0x0c,
44 KONEPURE_COMMAND_TCU_IMAGE
= 0x0c,
45 KONEPURE_COMMAND_E
= 0x0e,
46 KONEPURE_COMMAND_SENSOR
= 0x0f,
47 KONEPURE_COMMAND_TALK
= 0x10,
48 KONEPURE_COMMAND_FIRMWARE_WRITE
= 0x1b,
49 KONEPURE_COMMAND_FIRMWARE_WRITE_CONTROL
= 0x1c,
53 KONEPURE_MOUSE_REPORT_NUMBER_BUTTON
= 3,
56 struct konepure_mouse_report_button
{
57 uint8_t report_number
; /* always KONEPURE_MOUSE_REPORT_NUMBER_BUTTON */
66 struct konepure_device
{
69 struct mutex konepure_lock
;