aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/uhid.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/uhid.h')
-rw-r--r--include/linux/uhid.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/uhid.h b/include/linux/uhid.h
new file mode 100644
index 000000000000..16b786a2b18f
--- /dev/null
+++ b/include/linux/uhid.h
@@ -0,0 +1,33 @@
1#ifndef __UHID_H_
2#define __UHID_H_
3
4/*
5 * User-space I/O driver support for HID subsystem
6 * Copyright (c) 2012 David Herrmann
7 */
8
9/*
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the Free
12 * Software Foundation; either version 2 of the License, or (at your option)
13 * any later version.
14 */
15
16/*
17 * Public header for user-space communication. We try to keep every structure
18 * aligned but to be safe we also use __attribute__((__packed__)). Therefore,
19 * the communication should be ABI compatible even between architectures.
20 */
21
22#include <linux/input.h>
23#include <linux/types.h>
24
25enum uhid_event_type {
26 UHID_DUMMY,
27};
28
29struct uhid_event {
30 __u32 type;
31} __attribute__((__packed__));
32
33#endif /* __UHID_H_ */