diff options
| author | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:50:21 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2012-04-13 03:50:21 -0400 |
| commit | 659c36fcda403013a01b85da07cf2d9711e6d6c7 (patch) | |
| tree | ece2e7d0e2c19ea5a3d0ec172ad0b81a8a19021d /include/linux/input.h | |
| parent | 9521d830b6341d1887dcfc2aebde23fbfa5f1473 (diff) | |
| parent | 5a7ed29c7572d00a75e8c4529e30c5ac2ef82271 (diff) | |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Fixes and improvements for perf/core:
. Overhaul the tools/ makefiles, gluing them to the top level Makefile, from
Borislav Petkov.
. Move the UI files from tools/perf/util/ui/ to tools/perf/ui/. Also move
the GTK+ browser to tools/perf/ui/gtk/, from Namhyung Kim.
. Only fallback to sw cycles counter on ENOENT for the hw cycles, from
Robert Richter
. Trivial fixes from Robert Richter
. Handle the autogenerated bison/flex files better, from Namhyung and Jiri Olsa.
. Navigate jump instructions in the annotate browser, just press enter or ->,
still needs support for a jump navigation history, i.e. to go back.
. Search string in the annotate browser: same keys as vim:
/ forward
n next backward/forward
? backward
. Clarify number of events/samples in the report header, from Ashay Rane
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/input.h')
| -rw-r--r-- | include/linux/input.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index 3862e32c4eeb..a81671453575 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
| @@ -114,6 +114,31 @@ struct input_keymap_entry { | |||
| 114 | #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ | 114 | #define EVIOCGUNIQ(len) _IOC(_IOC_READ, 'E', 0x08, len) /* get unique identifier */ |
| 115 | #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) /* get device properties */ | 115 | #define EVIOCGPROP(len) _IOC(_IOC_READ, 'E', 0x09, len) /* get device properties */ |
| 116 | 116 | ||
| 117 | /** | ||
| 118 | * EVIOCGMTSLOTS(len) - get MT slot values | ||
| 119 | * | ||
| 120 | * The ioctl buffer argument should be binary equivalent to | ||
| 121 | * | ||
| 122 | * struct input_mt_request_layout { | ||
| 123 | * __u32 code; | ||
| 124 | * __s32 values[num_slots]; | ||
| 125 | * }; | ||
| 126 | * | ||
| 127 | * where num_slots is the (arbitrary) number of MT slots to extract. | ||
| 128 | * | ||
| 129 | * The ioctl size argument (len) is the size of the buffer, which | ||
| 130 | * should satisfy len = (num_slots + 1) * sizeof(__s32). If len is | ||
| 131 | * too small to fit all available slots, the first num_slots are | ||
| 132 | * returned. | ||
| 133 | * | ||
| 134 | * Before the call, code is set to the wanted ABS_MT event type. On | ||
| 135 | * return, values[] is filled with the slot values for the specified | ||
| 136 | * ABS_MT code. | ||
| 137 | * | ||
| 138 | * If the request code is not an ABS_MT value, -EINVAL is returned. | ||
| 139 | */ | ||
| 140 | #define EVIOCGMTSLOTS(len) _IOC(_IOC_READ, 'E', 0x0a, len) | ||
| 141 | |||
| 117 | #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ | 142 | #define EVIOCGKEY(len) _IOC(_IOC_READ, 'E', 0x18, len) /* get global key state */ |
| 118 | #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ | 143 | #define EVIOCGLED(len) _IOC(_IOC_READ, 'E', 0x19, len) /* get all LEDs */ |
| 119 | #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */ | 144 | #define EVIOCGSND(len) _IOC(_IOC_READ, 'E', 0x1a, len) /* get all sounds status */ |
| @@ -129,6 +154,8 @@ struct input_keymap_entry { | |||
| 129 | 154 | ||
| 130 | #define EVIOCGRAB _IOW('E', 0x90, int) /* Grab/Release device */ | 155 | #define EVIOCGRAB _IOW('E', 0x90, int) /* Grab/Release device */ |
| 131 | 156 | ||
| 157 | #define EVIOCSCLOCKID _IOW('E', 0xa0, int) /* Set clockid to be used for timestamps */ | ||
| 158 | |||
| 132 | /* | 159 | /* |
| 133 | * Device properties and quirks | 160 | * Device properties and quirks |
| 134 | */ | 161 | */ |
