~ubuntu-branches/ubuntu/breezy/xfree86-driver-synaptics/breezy

« back to all changes in this revision

Viewing changes to ps2comm.h

  • Committer: Bazaar Package Importer
  • Author(s): Mattia Dongili (ma.d.)
  • Date: 2004-12-18 20:07:15 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041218200715-p5y2c27b63vszun1
Tags: 0.13.6-2
* Install in /usr/X11R6/lib as all the xfree drivers on 64 bit archs.  (closes: #280658)
* Provided an alternative patch for debian-kernel users. (closes: #282359)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <sys/ioctl.h>
5
5
#include "xf86_OSproc.h"
6
6
 
 
7
/* acknowledge for commands and parameter */
 
8
#define PS2_ACK                         0xFA
 
9
#define PS2_ERROR                       0xFC
 
10
 
 
11
/* standard PS/2 commands */
 
12
#define PS2_CMD_RESET                   0xFF
 
13
#define PS2_CMD_RESEND                  0xFE
 
14
#define PS2_CMD_SET_DEFAULT             0xF6
 
15
#define PS2_CMD_DISABLE                 0xF5
 
16
#define PS2_CMD_ENABLE                  0xF4
 
17
#define PS2_CMD_SET_SAMPLE_RATE         0xF3
 
18
#define PS2_CMD_READ_DEVICE_TYPE        0xF2
 
19
#define PS2_CMD_SET_REMOTE_MODE         0xF0
 
20
#define PS2_CMD_SET_WRAP_MODE           0xEE
 
21
#define PS2_CMD_RESET_WRAP_MODE         0xEC
 
22
#define PS2_CMD_READ_DATA               0xEB
 
23
#define PS2_CMD_SET_STREAM_MODE         0xEA
 
24
#define PS2_CMD_STATUS_REQUEST          0xE9
 
25
#define PS2_CMD_SET_RESOLUTION          0xE8
 
26
#define PS2_CMD_SET_SCALING_2_1         0xE7
 
27
#define PS2_CMD_SET_SCALING_1_1         0xE6
 
28
 
7
29
/* synatics modes */
8
30
#define SYN_BIT_ABSOLUTE_MODE           (1 << 7)
9
31
#define SYN_BIT_HIGH_RATE               (1 << 6)
51
73
typedef unsigned char byte;
52
74
 
53
75
 
54
 
Bool ps2_synaptics_enable_device(int fd);
55
 
Bool ps2_synaptics_disable_device(int fd);
 
76
Bool ps2_putbyte(int fd, byte b);
56
77
 
57
78
struct SynapticsHwInfo;
58
79
void ps2_print_ident(const struct SynapticsHwInfo *synhw);