~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/hid/hid-roccat-koneplus.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        KONEPLUS_CONTROL_REQUEST_STATUS_WAIT = 3,
41
41
};
42
42
 
43
 
struct koneplus_startup_profile {
44
 
        uint8_t command; /* KONEPLUS_COMMAND_STARTUP_PROFILE */
 
43
struct koneplus_actual_profile {
 
44
        uint8_t command; /* KONEPLUS_COMMAND_ACTUAL_PROFILE */
45
45
        uint8_t size; /* always 3 */
46
 
        uint8_t startup_profile; /* Range 0-4! */
 
46
        uint8_t actual_profile; /* Range 0-4! */
47
47
} __attribute__ ((__packed__));
48
48
 
49
49
struct koneplus_profile_settings {
132
132
 
133
133
enum koneplus_commands {
134
134
        KONEPLUS_COMMAND_CONTROL = 0x4,
135
 
        KONEPLUS_COMMAND_STARTUP_PROFILE = 0x5,
 
135
        KONEPLUS_COMMAND_ACTUAL_PROFILE = 0x5,
136
136
        KONEPLUS_COMMAND_PROFILE_SETTINGS = 0x6,
137
137
        KONEPLUS_COMMAND_PROFILE_BUTTONS = 0x7,
138
138
        KONEPLUS_COMMAND_MACRO = 0x8,
145
145
 
146
146
enum koneplus_usb_commands {
147
147
        KONEPLUS_USB_COMMAND_CONTROL = 0x304,
148
 
        KONEPLUS_USB_COMMAND_STARTUP_PROFILE = 0x305,
 
148
        KONEPLUS_USB_COMMAND_ACTUAL_PROFILE = 0x305,
149
149
        KONEPLUS_USB_COMMAND_PROFILE_SETTINGS = 0x306,
150
150
        KONEPLUS_USB_COMMAND_PROFILE_BUTTONS = 0x307,
151
151
        KONEPLUS_USB_COMMAND_MACRO = 0x308,
215
215
 
216
216
        struct mutex koneplus_lock;
217
217
 
218
 
        int startup_profile;
219
218
        struct koneplus_info info;
220
219
        struct koneplus_profile_settings profile_settings[5];
221
220
        struct koneplus_profile_buttons profile_buttons[5];