diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2017-02-08 10:58:02 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-09 22:43:15 +0300 |
commit | 19ba1eb15a2a9b7298d1d984043025ab9496fbfb (patch) | |
tree | d3d5142e3082c7e2844cea7205938a78b9994b2b /include/uapi/linux/serio.h | |
parent | e78395334ba6034b53e21e09ce8a50c303d130a9 (diff) | |
download | linux-19ba1eb15a2a9b7298d1d984043025ab9496fbfb.tar.xz |
Input: psmouse - add a custom serio protocol to send extra information
The tracksticks on the Lenovo thinkpads have their buttons connected
through the touchpad device. We already fixed that in synaptics.c, but
when we switch the device into RMI4 mode to have proper support, the
pass-through functionality can't deal with them easily.
We add a new PS/2 flag and protocol designed for psmouse. The RMI4 F03
pass-through can then emit a special set of commands to notify psmouse the
state of the buttons.
This patch implements the protocol in psmouse, while an other will
do the same for rmi4-f03.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi/linux/serio.h')
-rw-r--r-- | include/uapi/linux/serio.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/uapi/linux/serio.h b/include/uapi/linux/serio.h index f2447a83ac8d..ccd0ccd00f47 100644 --- a/include/uapi/linux/serio.h +++ b/include/uapi/linux/serio.h @@ -17,9 +17,10 @@ /* * bit masks for use in "interrupt" flags (3rd argument) */ -#define SERIO_TIMEOUT 1 -#define SERIO_PARITY 2 -#define SERIO_FRAME 4 +#define SERIO_TIMEOUT BIT(0) +#define SERIO_PARITY BIT(1) +#define SERIO_FRAME BIT(2) +#define SERIO_OOB_DATA BIT(3) /* * Serio types |