Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions | Variables
hid-roccat-kone.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  kone_keystroke
 
struct  kone_button_info
 
struct  kone_light_info
 
struct  kone_profile
 
struct  kone_settings
 
struct  kone_mouse_event
 
struct  kone_roccat_report
 
struct  kone_device
 

Enumerations

enum  kone_keystroke_buttons {
  kone_keystroke_button_1 = 0xf0, kone_keystroke_button_2 = 0xf1, kone_keystroke_button_3 = 0xf2, kone_keystroke_button_9 = 0xf3,
  kone_keystroke_button_8 = 0xf4
}
 
enum  kone_keystroke_actions { kone_keystroke_action_press = 0, kone_keystroke_action_release = 1 }
 
enum  kone_button_info_types {
  kone_button_info_type_button_1 = 0x1, kone_button_info_type_button_2 = 0x2, kone_button_info_type_button_3 = 0x3, kone_button_info_type_double_click = 0x4,
  kone_button_info_type_key = 0x5, kone_button_info_type_macro = 0x6, kone_button_info_type_off = 0x7, kone_button_info_type_osd_xy_prescaling = 0x8,
  kone_button_info_type_osd_dpi = 0x9, kone_button_info_type_osd_profile = 0xa, kone_button_info_type_button_9 = 0xb, kone_button_info_type_button_8 = 0xc,
  kone_button_info_type_dpi_up = 0xd, kone_button_info_type_dpi_down = 0xe, kone_button_info_type_button_7 = 0xf, kone_button_info_type_button_6 = 0x10,
  kone_button_info_type_profile_up = 0x11, kone_button_info_type_profile_down = 0x12, kone_button_info_type_multimedia_open_player = 0x20, kone_button_info_type_multimedia_next_track = 0x21,
  kone_button_info_type_multimedia_prev_track = 0x22, kone_button_info_type_multimedia_play_pause = 0x23, kone_button_info_type_multimedia_stop = 0x24, kone_button_info_type_multimedia_mute = 0x25,
  kone_button_info_type_multimedia_volume_up = 0x26, kone_button_info_type_multimedia_volume_down = 0x27
}
 
enum  kone_button_info_numbers {
  kone_button_top = 1, kone_button_wheel_tilt_left = 2, kone_button_wheel_tilt_right = 3, kone_button_forward = 4,
  kone_button_backward = 5, kone_button_middle = 6, kone_button_plus = 7, kone_button_minus = 8
}
 
enum  kone_polling_rates { kone_polling_rate_125 = 1, kone_polling_rate_500 = 2, kone_polling_rate_1000 = 3 }
 
enum  kone_mouse_events {
  kone_mouse_event_osd_dpi = 0xa0, kone_mouse_event_osd_profile = 0xb0, kone_mouse_event_calibration = 0xc0, kone_mouse_event_call_overlong_macro = 0xe0,
  kone_mouse_event_switch_dpi = 0xf0, kone_mouse_event_switch_profile = 0xf1
}
 
enum  kone_commands {
  kone_command_profile = 0x5a, kone_command_settings = 0x15a, kone_command_firmware_version = 0x25a, kone_command_weight = 0x45a,
  kone_command_calibrate = 0x55a, kone_command_confirm_write = 0x65a, kone_command_firmware = 0xe5a
}
 

Functions

struct kone_keystroke __attribute__ ((__packed__))
 

Variables

uint8_t key
 
uint8_t action
 
uint16_t period
 
enum kone_keystroke_buttons __attribute__
 
uint8_t number
 
uint8_t type
 
uint8_t macro_type
 
uint8_t macro_set_name [16]
 
uint8_t macro_name [16]
 
uint8_t count
 
struct kone_keystroke keystrokes [20]
 
uint8_t mod
 
uint8_t red
 
uint8_t green
 
uint8_t blue
 
uint16_t size
 
uint16_t unused
 
uint8_t profile
 
uint16_t main_sensitivity
 
uint8_t xy_sensitivity_enabled
 
uint16_t x_sensitivity
 
uint16_t y_sensitivity
 
uint8_t dpi_rate
 
uint8_t startup_dpi
 
uint8_t polling_rate
 
uint8_t dcu_flag
 
uint8_t light_effect_1
 
uint8_t light_effect_2
 
uint8_t light_effect_3
 
uint8_t light_effect_speed
 
struct kone_light_info light_infos [5]
 
struct kone_button_info button_infos [8]
 
uint16_t checksum
 
uint8_t startup_profile
 
uint8_t unknown1
 
uint8_t tcu
 
uint8_t unknown2 [23]
 
uint8_t calibration_data [4]
 
uint8_t unknown3 [2]
 
uint8_t report_number
 
uint8_t button
 
uint16_t x
 
uint16_t y
 
uint8_t wheel
 
uint8_t tilt
 
uint8_t unknown
 
uint8_t event
 
uint8_t value
 
uint8_t macro_key
 

Enumeration Type Documentation

Enumerator:
kone_button_top 
kone_button_wheel_tilt_left 
kone_button_wheel_tilt_right 
kone_button_forward 
kone_button_backward 
kone_button_middle 
kone_button_plus 
kone_button_minus 

Definition at line 78 of file hid-roccat-kone.h.

Enumerator:
kone_button_info_type_button_1 
kone_button_info_type_button_2 
kone_button_info_type_button_3 
kone_button_info_type_double_click 
kone_button_info_type_key 
kone_button_info_type_macro 
kone_button_info_type_off 
kone_button_info_type_osd_xy_prescaling 
kone_button_info_type_osd_dpi 
kone_button_info_type_osd_profile 
kone_button_info_type_button_9 
kone_button_info_type_button_8 
kone_button_info_type_dpi_up 
kone_button_info_type_dpi_down 
kone_button_info_type_button_7 
kone_button_info_type_button_6 
kone_button_info_type_profile_up 
kone_button_info_type_profile_down 
kone_button_info_type_multimedia_open_player 
kone_button_info_type_multimedia_next_track 
kone_button_info_type_multimedia_prev_track 
kone_button_info_type_multimedia_play_pause 
kone_button_info_type_multimedia_stop 
kone_button_info_type_multimedia_mute 
kone_button_info_type_multimedia_volume_up 
kone_button_info_type_multimedia_volume_down 

Definition at line 46 of file hid-roccat-kone.h.

Enumerator:
kone_command_profile 
kone_command_settings 
kone_command_firmware_version 
kone_command_weight 
kone_command_calibrate 
kone_command_confirm_write 
kone_command_firmware 

Definition at line 177 of file hid-roccat-kone.h.

Enumerator:
kone_keystroke_action_press 
kone_keystroke_action_release 

Definition at line 31 of file hid-roccat-kone.h.

Enumerator:
kone_keystroke_button_1 
kone_keystroke_button_2 
kone_keystroke_button_3 
kone_keystroke_button_9 
kone_keystroke_button_8 

Definition at line 23 of file hid-roccat-kone.h.

Enumerator:
kone_mouse_event_osd_dpi 
kone_mouse_event_osd_profile 
kone_mouse_event_calibration 
kone_mouse_event_call_overlong_macro 
kone_mouse_event_switch_dpi 
kone_mouse_event_switch_profile 

Definition at line 165 of file hid-roccat-kone.h.

Enumerator:
kone_polling_rate_125 
kone_polling_rate_500 
kone_polling_rate_1000 

Definition at line 132 of file hid-roccat-kone.h.

Function Documentation

struct kone_keystroke __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

Variable Documentation

Definition at line 23 of file hid-roccat-kone.h.

uint8_t blue

Definition at line 100 of file hid-roccat-kone.h.

uint8_t button

Definition at line 165 of file hid-roccat-kone.h.

struct kone_button_info button_infos[8]

Definition at line 160 of file hid-roccat-kone.h.

uint8_t calibration_data[4]

Definition at line 153 of file hid-roccat-kone.h.

uint16_t checksum

Definition at line 162 of file hid-roccat-kone.h.

uint8_t count

Definition at line 50 of file hid-roccat-kone.h.

uint8_t dcu_flag

Definition at line 152 of file hid-roccat-kone.h.

uint8_t dpi_rate

Definition at line 145 of file hid-roccat-kone.h.

Definition at line 171 of file hid-roccat-kone.h.

uint8_t green

Definition at line 99 of file hid-roccat-kone.h.

uint8_t key

Definition at line 22 of file hid-roccat-kone.h.

struct kone_keystroke keystrokes[20]

Definition at line 51 of file hid-roccat-kone.h.

uint8_t light_effect_1

Definition at line 153 of file hid-roccat-kone.h.

uint8_t light_effect_2

Definition at line 154 of file hid-roccat-kone.h.

uint8_t light_effect_3

Definition at line 155 of file hid-roccat-kone.h.

uint8_t light_effect_speed

Definition at line 156 of file hid-roccat-kone.h.

struct kone_light_info light_infos[5]

Definition at line 158 of file hid-roccat-kone.h.

uint8_t macro_key

Definition at line 173 of file hid-roccat-kone.h.

uint8_t macro_name[16]

Definition at line 49 of file hid-roccat-kone.h.

uint8_t macro_set_name[16]

Definition at line 48 of file hid-roccat-kone.h.

uint8_t macro_type

Definition at line 47 of file hid-roccat-kone.h.

uint16_t main_sensitivity

Definition at line 141 of file hid-roccat-kone.h.

uint8_t mod

Definition at line 97 of file hid-roccat-kone.h.

u32 number

eeprom_ptov - translate a physical EEPROM address to virtual : the physical EEPROM address

: size of function-specific area

Translate a physical EEPROM address to virtual. The first 1K is accessed through virtual addresses starting at 31K, the rest is accessed through virtual addresses starting at 0.

The mapping is as follows: [0..1K) -> [31K..32K) [1K..1K+A) -> [31K-A..31K) [1K+A..ES) -> [0..ES-A-1K)

where A =

Definition at line 45 of file hid-roccat-kone.h.

uint16_t period

Definition at line 24 of file hid-roccat-kone.h.

uint8_t polling_rate

Definition at line 147 of file hid-roccat-kone.h.

uint8_t profile

Definition at line 139 of file hid-roccat-kone.h.

uint8_t red

Definition at line 98 of file hid-roccat-kone.h.

uint8_t report_number

Definition at line 164 of file hid-roccat-kone.h.

uint16_t size

Definition at line 131 of file hid-roccat-kone.h.

uint8_t startup_dpi

Definition at line 146 of file hid-roccat-kone.h.

uint8_t startup_profile

Definition at line 149 of file hid-roccat-kone.h.

uint8_t tcu

Definition at line 151 of file hid-roccat-kone.h.

uint8_t tilt

Definition at line 169 of file hid-roccat-kone.h.

Definition at line 46 of file hid-roccat-kone.h.

uint8_t unknown

Definition at line 170 of file hid-roccat-kone.h.

uint8_t unknown1

Definition at line 150 of file hid-roccat-kone.h.

uint8_t unknown2[23]

Definition at line 152 of file hid-roccat-kone.h.

uint8_t unknown3[2]

Definition at line 154 of file hid-roccat-kone.h.

Definition at line 132 of file hid-roccat-kone.h.

uint8_t value

Definition at line 172 of file hid-roccat-kone.h.

uint8_t wheel

Definition at line 168 of file hid-roccat-kone.h.

Definition at line 166 of file hid-roccat-kone.h.

uint16_t x_sensitivity

Definition at line 143 of file hid-roccat-kone.h.

uint8_t xy_sensitivity_enabled

Definition at line 142 of file hid-roccat-kone.h.

Definition at line 167 of file hid-roccat-kone.h.

uint16_t y_sensitivity

Definition at line 144 of file hid-roccat-kone.h.