0001
0002 #ifndef __HID_ROCCAT_ARVO_H
0003 #define __HID_ROCCAT_ARVO_H
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <linux/types.h>
0013
0014 struct arvo_mode_key {
0015 uint8_t command;
0016 uint8_t state;
0017 } __packed;
0018
0019 struct arvo_button {
0020 uint8_t unknown[24];
0021 } __packed;
0022
0023 struct arvo_info {
0024 uint8_t unknown[8];
0025 } __packed;
0026
0027 struct arvo_key_mask {
0028 uint8_t command;
0029 uint8_t key_mask;
0030 } __packed;
0031
0032
0033 struct arvo_actual_profile {
0034 uint8_t command;
0035 uint8_t actual_profile;
0036 } __packed;
0037
0038 enum arvo_commands {
0039 ARVO_COMMAND_MODE_KEY = 0x3,
0040 ARVO_COMMAND_BUTTON = 0x4,
0041 ARVO_COMMAND_INFO = 0x5,
0042 ARVO_COMMAND_KEY_MASK = 0x6,
0043 ARVO_COMMAND_ACTUAL_PROFILE = 0x7,
0044 };
0045
0046 struct arvo_special_report {
0047 uint8_t unknown1;
0048 uint8_t event;
0049 uint8_t unknown2;
0050 } __packed;
0051
0052 enum arvo_special_report_events {
0053 ARVO_SPECIAL_REPORT_EVENT_ACTION_PRESS = 0x10,
0054 ARVO_SPECIAL_REPORT_EVENT_ACTION_RELEASE = 0x0,
0055 };
0056
0057 enum arvo_special_report_event_masks {
0058 ARVO_SPECIAL_REPORT_EVENT_MASK_ACTION = 0xf0,
0059 ARVO_SPECIAL_REPORT_EVENT_MASK_BUTTON = 0x0f,
0060 };
0061
0062 struct arvo_roccat_report {
0063 uint8_t profile;
0064 uint8_t button;
0065 uint8_t action;
0066 } __packed;
0067
0068 enum arvo_roccat_report_action {
0069 ARVO_ROCCAT_REPORT_ACTION_RELEASE = 0,
0070 ARVO_ROCCAT_REPORT_ACTION_PRESS = 1,
0071 };
0072
0073 struct arvo_device {
0074 int roccat_claimed;
0075 int chrdev_minor;
0076
0077 struct mutex arvo_lock;
0078
0079 int actual_profile;
0080 };
0081
0082 #endif