1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #ifndef __HID_ROCCAT_ARVO_H
3 #define __HID_ROCCAT_ARVO_H
6 * Copyright (c) 2011 Stefan Achatz <erazor_de@users.sourceforge.net>
12 #include <linux/types.h>
14 struct arvo_mode_key { /* 2 bytes */
15 uint8_t command; /* ARVO_COMMAND_MODE_KEY */
27 struct arvo_key_mask { /* 2 bytes */
28 uint8_t command; /* ARVO_COMMAND_KEY_MASK */
32 /* selected profile is persistent */
33 struct arvo_actual_profile { /* 2 bytes */
34 uint8_t command; /* ARVO_COMMAND_ACTUAL_PROFILE */
35 uint8_t actual_profile;
39 ARVO_COMMAND_MODE_KEY = 0x3,
40 ARVO_COMMAND_BUTTON = 0x4,
41 ARVO_COMMAND_INFO = 0x5,
42 ARVO_COMMAND_KEY_MASK = 0x6,
43 ARVO_COMMAND_ACTUAL_PROFILE = 0x7,
46 struct arvo_special_report {
47 uint8_t unknown1; /* always 0x01 */
49 uint8_t unknown2; /* always 0x70 */
52 enum arvo_special_report_events {
53 ARVO_SPECIAL_REPORT_EVENT_ACTION_PRESS = 0x10,
54 ARVO_SPECIAL_REPORT_EVENT_ACTION_RELEASE = 0x0,
57 enum arvo_special_report_event_masks {
58 ARVO_SPECIAL_REPORT_EVENT_MASK_ACTION = 0xf0,
59 ARVO_SPECIAL_REPORT_EVENT_MASK_BUTTON = 0x0f,
62 struct arvo_roccat_report {
68 enum arvo_roccat_report_action {
69 ARVO_ROCCAT_REPORT_ACTION_RELEASE = 0,
70 ARVO_ROCCAT_REPORT_ACTION_PRESS = 1,
77 struct mutex arvo_lock;