aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libps2.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2018-01-02 12:03:02 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-02-02 16:50:24 -0800
commit08be954b7a7de6742d3d47e4dc20e3b086410761 (patch)
tree78d495c68adc377fbaf5cdbc4b7e839de9cd052e /include/linux/libps2.h
parentInput: libps2 - use BIT() for bitmask constants (diff)
downloadlinux-dev-08be954b7a7de6742d3d47e4dc20e3b086410761.tar.xz
linux-dev-08be954b7a7de6742d3d47e4dc20e3b086410761.zip
Input: psmouse - move sliced command implementation to libps2
In preparation to adding some debugging statements to PS/2 control sequences let's move psmouse_sliced_command() into libps2 and rename it to ps2_sliced_command(). Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/libps2.h')
-rw-r--r--include/linux/libps2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/libps2.h b/include/linux/libps2.h
index 646b581fea56..3c69cd796f48 100644
--- a/include/linux/libps2.h
+++ b/include/linux/libps2.h
@@ -15,6 +15,8 @@
#include <linux/types.h>
#include <linux/wait.h>
+#define PS2_CMD_SETSCALE11 0x00e6
+#define PS2_CMD_SETRES 0x10e8
#define PS2_CMD_GETID 0x02f2
#define PS2_CMD_RESET_BAT 0x02ff
@@ -52,6 +54,7 @@ void ps2_begin_command(struct ps2dev *ps2dev);
void ps2_end_command(struct ps2dev *ps2dev);
int __ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command);
int ps2_command(struct ps2dev *ps2dev, u8 *param, unsigned int command);
+int ps2_sliced_command(struct ps2dev *ps2dev, u8 command);
bool ps2_handle_ack(struct ps2dev *ps2dev, u8 data);
bool ps2_handle_response(struct ps2dev *ps2dev, u8 data);
void ps2_cmd_aborted(struct ps2dev *ps2dev);