diff options
Diffstat (limited to 'drivers/hid/hid-roccat-common.h')
-rw-r--r-- | drivers/hid/hid-roccat-common.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/hid/hid-roccat-common.h b/drivers/hid/hid-roccat-common.h index 9a5bc61f9699..a97746a63b70 100644 --- a/drivers/hid/hid-roccat-common.h +++ b/drivers/hid/hid-roccat-common.h | |||
@@ -15,9 +15,21 @@ | |||
15 | #include <linux/usb.h> | 15 | #include <linux/usb.h> |
16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
17 | 17 | ||
18 | int roccat_common_receive(struct usb_device *usb_dev, uint report_id, | 18 | enum roccat_common2_commands { |
19 | ROCCAT_COMMON_COMMAND_CONTROL = 0x4, | ||
20 | }; | ||
21 | |||
22 | struct roccat_common2_control { | ||
23 | uint8_t command; | ||
24 | uint8_t value; | ||
25 | uint8_t request; /* always 0 on requesting write check */ | ||
26 | } __packed; | ||
27 | |||
28 | int roccat_common2_receive(struct usb_device *usb_dev, uint report_id, | ||
19 | void *data, uint size); | 29 | void *data, uint size); |
20 | int roccat_common_send(struct usb_device *usb_dev, uint report_id, | 30 | int roccat_common2_send(struct usb_device *usb_dev, uint report_id, |
21 | void const *data, uint size); | 31 | void const *data, uint size); |
32 | int roccat_common2_send_with_status(struct usb_device *usb_dev, | ||
33 | uint command, void const *buf, uint size); | ||
22 | 34 | ||
23 | #endif | 35 | #endif |