summaryrefslogtreecommitdiffstats
path: root/include/linux/roccat.h
diff options
context:
space:
mode:
authorStefan Achatz <erazor_de@users.sourceforge.net>2011-01-30 13:38:25 +0100
committerJiri Kosina <jkosina@suse.cz>2011-02-03 16:37:28 +0100
commit8211e46004518c977f70f2661da961d5ba617399 (patch)
treeb2ae1cdc75fad9dbdece7b1dd5fc23ce0624f3c2 /include/linux/roccat.h
parentHID: roccat: Increase waiting time for Kone[+] to prevent occasional freezes (diff)
downloadlinux-8211e46004518c977f70f2661da961d5ba617399.tar.xz
linux-8211e46004518c977f70f2661da961d5ba617399.zip
HID: roccat: Add ioctl command to retreive report size from chardev
Roccat chardev was reworked to support only a defined report size per device and this can be retreived by an ioctl now to enable future changes in report definitions. Header was moved/renamed from drivers/hid to include/linux for accessibility. Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to '')
-rw-r--r--include/linux/roccat.h (renamed from drivers/hid/hid-roccat.h)11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/hid/hid-roccat.h b/include/linux/roccat.h
index c7393372df7c..24e1ca01f9a0 100644
--- a/drivers/hid/hid-roccat.h
+++ b/include/linux/roccat.h
@@ -15,8 +15,15 @@
#include <linux/hid.h>
#include <linux/types.h>
-int roccat_connect(struct class *klass, struct hid_device *hid);
+#define ROCCATIOCGREPSIZE _IOR('H', 0xf1, int)
+
+#ifdef __KERNEL__
+
+int roccat_connect(struct class *klass, struct hid_device *hid,
+ int report_size);
void roccat_disconnect(int minor);
-int roccat_report_event(int minor, u8 const *data, int len);
+int roccat_report_event(int minor, u8 const *data);
+
+#endif
#endif