1 #ifndef __HID_ROCCAT_COMMON_H
2 #define __HID_ROCCAT_COMMON_H
5 * Copyright (c) 2011 Stefan Achatz <erazor_de@users.sourceforge.net>
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the Free
11 * Software Foundation; either version 2 of the License, or (at your option)
15 #include <linux/usb.h>
16 #include <linux/types.h>
18 enum roccat_common2_commands
{
19 ROCCAT_COMMON_COMMAND_CONTROL
= 0x4,
22 struct roccat_common2_control
{
25 uint8_t request
; /* always 0 on requesting write check */
28 int roccat_common2_receive(struct usb_device
*usb_dev
, uint report_id
,
29 void *data
, uint size
);
30 int roccat_common2_send(struct usb_device
*usb_dev
, uint report_id
,
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
);