28 #include <linux/kernel.h>
30 #include <linux/input.h>
31 #include <linux/serio.h>
37 #define TOUCHKIT_MAX_XC 0x07ff
38 #define TOUCHKIT_MAX_YC 0x07ff
40 #define TOUCHKIT_CMD 0x0a
41 #define TOUCHKIT_CMD_LENGTH 1
43 #define TOUCHKIT_CMD_ACTIVE 'A'
44 #define TOUCHKIT_CMD_FIRMWARE_VERSION 'D'
45 #define TOUCHKIT_CMD_CONTROLLER_TYPE 'E'
47 #define TOUCHKIT_SEND_PARMS(s, r, c) ((s) << 12 | (r) << 8 | (c))
49 #define TOUCHKIT_GET_TOUCHED(packet) (((packet)[0]) & 0x01)
50 #define TOUCHKIT_GET_X(packet) (((packet)[1] << 7) | (packet)[2])
51 #define TOUCHKIT_GET_Y(packet) (((packet)[3] << 7) | (packet)[4])
56 struct input_dev *
dev = psmouse->
dev;
71 struct input_dev *
dev = psmouse->
dev;
72 unsigned char param[3];
93 psmouse->
vendor =
"eGalax";
94 psmouse->
name =
"Touchscreen";