4 #define PSMOUSE_CMD_SETSCALE11 0x00e6
5 #define PSMOUSE_CMD_SETRES 0x10e8
6 #define PSMOUSE_CMD_GETINFO 0x03e9
7 #define PSMOUSE_CMD_SETSTREAM 0x00ea
8 #define PSMOUSE_CMD_POLL 0x03eb
9 #define PSMOUSE_CMD_GETID 0x02f2
10 #define PSMOUSE_CMD_SETRATE 0x10f3
11 #define PSMOUSE_CMD_ENABLE 0x00f4
12 #define PSMOUSE_CMD_RESET_DIS 0x00f6
13 #define PSMOUSE_CMD_RESET_BAT 0x02ff
15 #define PSMOUSE_RET_BAT 0xaa
16 #define PSMOUSE_RET_ID 0x00
17 #define PSMOUSE_RET_ACK 0xfa
18 #define PSMOUSE_RET_NAK 0xfe
21 #define PSMOUSE_CMD_MODE 0
22 #define PSMOUSE_ACTIVATED 1
23 #define PSMOUSE_IGNORE 2
27 struct psmouse_ptport {
30 void (*activate)(struct psmouse *parent);
31 void (*deactivate)(struct psmouse *parent);
38 struct psmouse_ptport *ptport;
41 unsigned char cmdbuf[8];
42 unsigned char packet[8];
55 int (*reconnect)(struct psmouse *psmouse);
56 void (*disconnect)(struct psmouse *psmouse);
60 #define PSMOUSE_PS2PP 2
61 #define PSMOUSE_PS2TPP 3
62 #define PSMOUSE_GENPS 4
63 #define PSMOUSE_IMPS 5
64 #define PSMOUSE_IMEX 6
65 #define PSMOUSE_SYNAPTICS 7
67 int psmouse_command(struct psmouse *psmouse, unsigned char *param, int command);
68 int psmouse_reset(struct psmouse *psmouse);
70 extern int psmouse_smartscroll;
71 extern unsigned int psmouse_rate;
72 extern unsigned int psmouse_resetafter;
74 #endif /* _PSMOUSE_H */