~jderose/ubuntu/raring/xserver-xorg-input-synaptics/clickpad

« back to all changes in this revision

Viewing changes to src/ps2comm.h

  • Committer: Package Import Robot
  • Author(s): Cyril Brulebois, Julien Cristau, Cyril Brulebois
  • Date: 2012-05-20 16:50:18 UTC
  • mfrom: (0.4.9)
  • mto: (61.1.1 quantal)
  • mto: This revision was merged to the branch mainline in revision 60.
  • Revision ID: package-import@ubuntu.com-20120520165018-ap60y9jh84nv75vp
Tags: 1.6.1-1
[ Julien Cristau ]
* The mtdev build-dep is linux-only (closes: #672572).  Thanks, Pino
  Toscano!

[ Cyril Brulebois ]
* New upstream release, from the 1.6 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "xf86_OSproc.h"
28
28
 
29
29
/* acknowledge for commands and parameter */
30
 
#define PS2_ACK                         0xFA
 
30
#define PS2_ACK                         0xFA
31
31
#define PS2_ERROR                       0xFC
32
32
 
33
33
/* standard PS/2 commands */
56
56
#define SYN_BIT_W_MODE                  (1 << 0)
57
57
 
58
58
/* synaptics model ID bits */
59
 
#define SYN_MODEL_ROT180(synhw)         ((synhw)->model_id & (1 << 23))
 
59
#define SYN_MODEL_ROT180(synhw)         ((synhw)->model_id & (1 << 23))
60
60
#define SYN_MODEL_PORTRAIT(synhw)       ((synhw)->model_id & (1 << 22))
61
61
#define SYN_MODEL_SENSOR(synhw)         (((synhw)->model_id >> 16) & 0x3f)
62
62
#define SYN_MODEL_HARDWARE(synhw)       (((synhw)->model_id >> 9) & 0x7f)
95
95
typedef unsigned char byte;
96
96
 
97
97
struct PS2SynapticsHwInfo {
98
 
    unsigned int model_id;              /* Model-ID */
99
 
    unsigned int capabilities;          /* Capabilities */
100
 
    unsigned int ext_cap;               /* Extended Capabilities */
101
 
    unsigned int identity;              /* Identification */
 
98
    unsigned int model_id;      /* Model-ID */
 
99
    unsigned int capabilities;  /* Capabilities */
 
100
    unsigned int ext_cap;       /* Extended Capabilities */
 
101
    unsigned int identity;      /* Identification */
102
102
};
103
103
 
104
104
Bool ps2_putbyte(int fd, byte b);
105
 
void ps2_print_ident(InputInfoPtr pInfo, const struct PS2SynapticsHwInfo *synhw);
 
105
void ps2_print_ident(InputInfoPtr pInfo,
 
106
                     const struct PS2SynapticsHwInfo *synhw);
106
107
Bool PS2ReadHwStateProto(InputInfoPtr pInfo,
107
 
                        struct SynapticsProtocolOperations *proto_ops,
108
 
                        struct CommData *comm, struct SynapticsHwState *hwRet);
 
108
                         struct SynapticsProtocolOperations *proto_ops,
 
109
                         struct CommData *comm, struct SynapticsHwState *hwRet);
109
110
 
110
 
#endif /* _PS2COMM_H_ */
 
111
#endif                          /* _PS2COMM_H_ */