Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) #ifndef __HID_ROCCAT_KONE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3) #define __HID_ROCCAT_KONE_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * Copyright (c) 2010 Stefan Achatz <erazor_de@users.sourceforge.net>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) struct kone_keystroke {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 	uint8_t key;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) 	uint8_t action;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) 	uint16_t period; /* in milliseconds */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) enum kone_keystroke_buttons {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 	kone_keystroke_button_1 = 0xf0, /* left mouse button */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 	kone_keystroke_button_2 = 0xf1, /* right mouse button */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 	kone_keystroke_button_3 = 0xf2, /* wheel */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	kone_keystroke_button_9 = 0xf3, /* side button up */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 	kone_keystroke_button_8 = 0xf4 /* side button down */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) enum kone_keystroke_actions {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	kone_keystroke_action_press = 0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 	kone_keystroke_action_release = 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) struct kone_button_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	uint8_t number; /* range 1-8 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 	uint8_t type;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 	uint8_t macro_type; /* 0 = short, 1 = overlong */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	uint8_t macro_set_name[16]; /* can be max 15 chars long */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 	uint8_t macro_name[16]; /* can be max 15 chars long */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 	uint8_t count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 	struct kone_keystroke keystrokes[20];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) enum kone_button_info_types {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	/* valid button types until firmware 1.32 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 	kone_button_info_type_button_1 = 0x1, /* click (left mouse button) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 	kone_button_info_type_button_2 = 0x2, /* menu (right mouse button)*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 	kone_button_info_type_button_3 = 0x3, /* scroll (wheel) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	kone_button_info_type_double_click = 0x4,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	kone_button_info_type_key = 0x5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) 	kone_button_info_type_macro = 0x6,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	kone_button_info_type_off = 0x7,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	/* TODO clarify function and rename */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) 	kone_button_info_type_osd_xy_prescaling = 0x8,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	kone_button_info_type_osd_dpi = 0x9,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) 	kone_button_info_type_osd_profile = 0xa,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 	kone_button_info_type_button_9 = 0xb, /* ie forward */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 	kone_button_info_type_button_8 = 0xc, /* ie backward */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	kone_button_info_type_dpi_up = 0xd, /* internal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	kone_button_info_type_dpi_down = 0xe, /* internal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	kone_button_info_type_button_7 = 0xf, /* tilt left */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	kone_button_info_type_button_6 = 0x10, /* tilt right */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) 	kone_button_info_type_profile_up = 0x11, /* internal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 	kone_button_info_type_profile_down = 0x12, /* internal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	/* additional valid button types since firmware 1.38 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	kone_button_info_type_multimedia_open_player = 0x20,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 	kone_button_info_type_multimedia_next_track = 0x21,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 	kone_button_info_type_multimedia_prev_track = 0x22,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 	kone_button_info_type_multimedia_play_pause = 0x23,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	kone_button_info_type_multimedia_stop = 0x24,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	kone_button_info_type_multimedia_mute = 0x25,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 	kone_button_info_type_multimedia_volume_up = 0x26,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 	kone_button_info_type_multimedia_volume_down = 0x27
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) enum kone_button_info_numbers {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	kone_button_top = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) 	kone_button_wheel_tilt_left = 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 	kone_button_wheel_tilt_right = 3,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) 	kone_button_forward = 4,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	kone_button_backward = 5,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	kone_button_middle = 6,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	kone_button_plus = 7,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	kone_button_minus = 8,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) struct kone_light_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	uint8_t number; /* number of light 1-5 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 	uint8_t mod;   /* 1 = on, 2 = off */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	uint8_t red;   /* range 0x00-0xff */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 	uint8_t green; /* range 0x00-0xff */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	uint8_t blue;  /* range 0x00-0xff */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) struct kone_profile {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	uint16_t size; /* always 975 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 	uint16_t unused; /* always 0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	 * range 1-5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 	 * This number does not need to correspond with location where profile
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 	 * saved
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 	uint8_t profile; /* range 1-5 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	uint16_t main_sensitivity; /* range 100-1000 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 	uint8_t xy_sensitivity_enabled; /* 1 = on, 2 = off */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 	uint16_t x_sensitivity; /* range 100-1000 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	uint16_t y_sensitivity; /* range 100-1000 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 	uint8_t dpi_rate; /* bit 1 = 800, ... */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	uint8_t startup_dpi; /* range 1-6 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 	uint8_t polling_rate; /* 1 = 125Hz, 2 = 500Hz, 3 = 1000Hz */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	/* kone has no dcu
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) 	 * value is always 2 in firmwares <= 1.32 and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 	 * 1 in firmwares > 1.32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) 	uint8_t dcu_flag;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	uint8_t light_effect_1; /* range 1-3 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	uint8_t light_effect_2; /* range 1-5 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	uint8_t light_effect_3; /* range 1-4 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	uint8_t light_effect_speed; /* range 0-255 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	struct kone_light_info light_infos[5];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	/* offset is kone_button_info_numbers - 1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	struct kone_button_info button_infos[8];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	uint16_t checksum; /* \brief holds checksum of struct */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) enum kone_polling_rates {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) 	kone_polling_rate_125 = 1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) 	kone_polling_rate_500 = 2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	kone_polling_rate_1000 = 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) struct kone_settings {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	uint16_t size; /* always 36 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	uint8_t  startup_profile; /* 1-5 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	uint8_t	 unknown1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 	uint8_t  tcu; /* 0 = off, 1 = on */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 	uint8_t  unknown2[23];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) 	uint8_t  calibration_data[4];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	uint8_t  unknown3[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 	uint16_t checksum;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147)  * 12 byte mouse event read by interrupt_read
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) struct kone_mouse_event {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	uint8_t report_number; /* always 1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 	uint8_t button;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	uint16_t x;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 	uint16_t y;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 	uint8_t wheel; /* up = 1, down = -1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	uint8_t tilt; /* right = 1, left = -1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	uint8_t unknown;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	uint8_t event;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 	uint8_t value; /* press = 0, release = 1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	uint8_t macro_key; /* 0 to 8 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) enum kone_mouse_events {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) 	/* osd events are thought to be display on screen */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	kone_mouse_event_osd_dpi = 0xa0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	kone_mouse_event_osd_profile = 0xb0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	/* TODO clarify meaning and occurence of kone_mouse_event_calibration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	kone_mouse_event_calibration = 0xc0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 	kone_mouse_event_call_overlong_macro = 0xe0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	kone_mouse_event_multimedia = 0xe1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 	/* switch events notify if user changed values with mousebutton click */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	kone_mouse_event_switch_dpi = 0xf0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	kone_mouse_event_switch_profile = 0xf1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) enum kone_commands {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	kone_command_profile = 0x5a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 	kone_command_settings = 0x15a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 	kone_command_firmware_version = 0x25a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 	kone_command_weight = 0x45a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 	kone_command_calibrate = 0x55a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 	kone_command_confirm_write = 0x65a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 	kone_command_firmware = 0xe5a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) struct kone_roccat_report {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	uint8_t event;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) 	uint8_t value; /* holds dpi or profile value */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 	uint8_t key; /* macro key on overlong macro execution */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) } __attribute__ ((__packed__));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) struct kone_device {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) 	 * Storing actual values when we get informed about changes since there
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 	 * is no way of getting this information from the device on demand
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	int actual_profile, actual_dpi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 	/* Used for neutralizing abnormal button behaviour */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	struct kone_mouse_event last_mouse_event;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 	 * It's unlikely that multiple sysfs attributes are accessed at a time,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) 	 * so only one mutex is used to secure hardware access and profiles and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 	 * settings of this struct.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) 	struct mutex kone_lock;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) 	 * Storing the data here reduces IO and ensures that data is available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) 	 * when its needed (E.g. interrupt handler).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 	struct kone_profile profiles[5];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) 	struct kone_settings settings;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) 	 * firmware doesn't change unless firmware update is implemented,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 	 * so it's read only once
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) 	int firmware_version;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) 	int roccat_claimed;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 	int chrdev_minor;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) #endif