Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uhid.h
Go to the documentation of this file.
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 
37 };
38 
40  __u8 name[128];
41  __u8 phys[64];
42  __u8 uniq[64];
45 
51 } __attribute__((__packed__));
52 
53 #define UHID_DATA_MAX 4096
54 
59 };
60 
64 } __attribute__((__packed__));
65 
70 } __attribute__((__packed__));
71 
76 } __attribute__((__packed__));
77 
82 } __attribute__((__packed__));
83 
89 };
90 
91 struct uhid_event {
93 
94  union {
101  } u;
102 } __attribute__((__packed__));
103 
104 #endif /* __UHID_H_ */