summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/serio.h
diff options
context:
space:
mode:
authorBenjamin Tissoires2017-02-08 08:58:02 +0100
committerDmitry Torokhov2017-02-09 20:43:15 +0100
commit19ba1eb15a2a9b7298d1d984043025ab9496fbfb (patch)
treed3d5142e3082c7e2844cea7205938a78b9994b2b /include/uapi/linux/serio.h
parentInput: synaptics-rmi4 - fix error return code in rmi_probe_interrupts() (diff)
downloadkernel-qcow2-linux-19ba1eb15a2a9b7298d1d984043025ab9496fbfb.tar.gz
kernel-qcow2-linux-19ba1eb15a2a9b7298d1d984043025ab9496fbfb.tar.xz
kernel-qcow2-linux-19ba1eb15a2a9b7298d1d984043025ab9496fbfb.zip
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.h7
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