summaryrefslogtreecommitdiff
path: root/ps2comm.h
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-07-30 03:16:59 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:41 +0200
commit90377b8c1b279cc5cc023a27cc2670bf911b76d7 (patch)
treeed75d5ca7f9e5a387cb82cfa57f123963571a855 /ps2comm.h
parentf40f3d451ef883f53a43d9714c13e578598d9cee (diff)
Use generic ps2 functions in alpscomm.c instead of synaptics
specific functions.
Diffstat (limited to 'ps2comm.h')
-rw-r--r--ps2comm.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/ps2comm.h b/ps2comm.h
index f926662..db3e54d 100644
--- a/ps2comm.h
+++ b/ps2comm.h
@@ -4,6 +4,28 @@
#include <sys/ioctl.h>
#include "xf86_OSproc.h"
+/* acknowledge for commands and parameter */
+#define PS2_ACK 0xFA
+#define PS2_ERROR 0xFC
+
+/* standard PS/2 commands */
+#define PS2_CMD_RESET 0xFF
+#define PS2_CMD_RESEND 0xFE
+#define PS2_CMD_SET_DEFAULT 0xF6
+#define PS2_CMD_DISABLE 0xF5
+#define PS2_CMD_ENABLE 0xF4
+#define PS2_CMD_SET_SAMPLE_RATE 0xF3
+#define PS2_CMD_READ_DEVICE_TYPE 0xF2
+#define PS2_CMD_SET_REMOTE_MODE 0xF0
+#define PS2_CMD_SET_WRAP_MODE 0xEE
+#define PS2_CMD_RESET_WRAP_MODE 0xEC
+#define PS2_CMD_READ_DATA 0xEB
+#define PS2_CMD_SET_STREAM_MODE 0xEA
+#define PS2_CMD_STATUS_REQUEST 0xE9
+#define PS2_CMD_SET_RESOLUTION 0xE8
+#define PS2_CMD_SET_SCALING_2_1 0xE7
+#define PS2_CMD_SET_SCALING_1_1 0xE6
+
/* synatics modes */
#define SYN_BIT_ABSOLUTE_MODE (1 << 7)
#define SYN_BIT_HIGH_RATE (1 << 6)
@@ -51,8 +73,7 @@
typedef unsigned char byte;
-Bool ps2_synaptics_enable_device(int fd);
-Bool ps2_synaptics_disable_device(int fd);
+Bool ps2_putbyte(int fd, byte b);
struct SynapticsHwInfo;
void ps2_print_ident(const struct SynapticsHwInfo *synhw);