summaryrefslogtreecommitdiffstats
path: root/include/linux/libps2.h
diff options
context:
space:
mode:
authorDmitry Torokhov2008-11-19 23:02:24 +0100
committerDmitry Torokhov2008-11-24 17:43:21 +0100
commita2d781fc8d9b16113dd9440107d73c0f21d7cbef (patch)
treea786cce33763680ae05bfbe310f845b127293157 /include/linux/libps2.h
parentInput: add support for Wacom W8001 penabled serial touchscreen (diff)
downloadkernel-qcow2-linux-a2d781fc8d9b16113dd9440107d73c0f21d7cbef.tar.gz
kernel-qcow2-linux-a2d781fc8d9b16113dd9440107d73c0f21d7cbef.tar.xz
kernel-qcow2-linux-a2d781fc8d9b16113dd9440107d73c0f21d7cbef.zip
Input: libps2 - handle 0xfc responses from devices
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/libps2.h')
-rw-r--r--include/linux/libps2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libps2.h b/include/linux/libps2.h
index afc413369101..b94534b7e266 100644
--- a/include/linux/libps2.h
+++ b/include/linux/libps2.h
@@ -18,11 +18,13 @@
#define PS2_RET_ID 0x00
#define PS2_RET_ACK 0xfa
#define PS2_RET_NAK 0xfe
+#define PS2_RET_ERR 0xfc
#define PS2_FLAG_ACK 1 /* Waiting for ACK/NAK */
#define PS2_FLAG_CMD 2 /* Waiting for command to finish */
#define PS2_FLAG_CMD1 4 /* Waiting for the first byte of command response */
#define PS2_FLAG_WAITID 8 /* Command execiting is GET ID */
+#define PS2_FLAG_NAK 16 /* Last transmission was NAKed */
struct ps2dev {
struct serio *serio;