Lines 1-6
Link Here
|
1 |
--- include/linux/input.h.orig 2016-12-05 05:15:21 UTC |
1 |
--- include/linux/input.h.orig 2017-10-30 05:16:22 UTC |
2 |
+++ include/linux/input.h |
2 |
+++ include/linux/input.h |
3 |
@@ -11,7 +11,17 @@ |
3 |
@@ -11,7 +11,18 @@ |
4 |
#include <sys/time.h> |
4 |
#include <sys/time.h> |
5 |
#include <sys/ioctl.h> |
5 |
#include <sys/ioctl.h> |
6 |
#include <sys/types.h> |
6 |
#include <sys/types.h> |
Lines 8-13
Link Here
|
8 |
+#define __u8 uint8_t |
8 |
+#define __u8 uint8_t |
9 |
+#define __u16 uint16_t |
9 |
+#define __u16 uint16_t |
10 |
+#define __u32 uint32_t |
10 |
+#define __u32 uint32_t |
|
|
11 |
+#define __u64 uint64_t |
11 |
+#define __s16 int16_t |
12 |
+#define __s16 int16_t |
12 |
+#define __s32 int32_t |
13 |
+#define __s32 int32_t |
13 |
+#define _IOC_READ IOC_OUT |
14 |
+#define _IOC_READ IOC_OUT |
Lines 16-24
Link Here
|
16 |
#include <linux/types.h> |
17 |
#include <linux/types.h> |
17 |
+#endif |
18 |
+#endif |
18 |
|
19 |
|
19 |
/* |
20 |
#include "input-event-codes.h" |
20 |
* The event structure itself |
21 |
|
21 |
@@ -132,7 +142,7 @@ struct input_keymap_entry { |
22 |
@@ -145,7 +156,7 @@ struct input_mask { |
22 |
* |
23 |
* |
23 |
* If the request code is not an ABS_MT value, -EINVAL is returned. |
24 |
* If the request code is not an ABS_MT value, -EINVAL is returned. |
24 |
*/ |
25 |
*/ |
Lines 27-33
Link Here
|
27 |
|
28 |
|
28 |
#define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ |
29 |
#define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ |
29 |
#define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ |
30 |
#define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ |
30 |
@@ -147,7 +157,7 @@ struct input_keymap_entry { |
31 |
@@ -160,7 +171,7 @@ struct input_mask { |
31 |
#define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */ |
32 |
#define EVIOCRMFF _IOW('E', 0x81, int) /* Erase a force effect */ |
32 |
#define EVIOCGEFFECTS _IOR('E', 0x84, int) /* Report number of effects playable at the same time */ |
33 |
#define EVIOCGEFFECTS _IOR('E', 0x84, int) /* Report number of effects playable at the same time */ |
33 |
|
34 |
|
Lines 35-38
Link Here
|
35 |
+#define EVIOCGRAB _IO('E', 0x90) /* Grab/Release device */ |
36 |
+#define EVIOCGRAB _IO('E', 0x90) /* Grab/Release device */ |
36 |
#define EVIOCREVOKE _IOW('E', 0x91, int) /* Revoke device access */ |
37 |
#define EVIOCREVOKE _IOW('E', 0x91, int) /* Revoke device access */ |
37 |
|
38 |
|
38 |
#define EVIOCSCLOCKID _IOW('E', 0xa0, int) /* Set clockid to be used for timestamps */ |
39 |
/** |