-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxspproto.h
204 lines (167 loc) · 3.53 KB
/
xspproto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#ifndef _XSPPROTO_H_
#define _XSPPROTO_H_
#define XSP_VERSION_MAJOR 1
#define XSP_VERSION_MINOR 2
#define XSP_NAME "XSP"
/******** Version 1 *********/
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD8 majorVersion;
CARD8 pad;
CARD16 minorVersion B16;
} xXSPQueryVersionReq;
#define sz_xXSPQueryVersionReq 8
typedef struct {
BYTE type;
CARD8 majorVersion;
CARD16 sequenceNumber B16;
CARD32 length B32;
CARD16 minorVersion B16;
CARD16 pad0 B16;
CARD32 pad1 B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
} xXSPQueryVersionReply;
#define sz_xXSPQueryVersionReply 32
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD32 calconst1 B32;
CARD32 calconst2 B32;
CARD32 calconst3 B32;
CARD32 calconst4 B32;
CARD32 calconst5 B32;
CARD32 calconst6 B32;
CARD32 calconst7 B32;
} xXSPSetTSCalibrationReq;
#define sz_xXSPSetTSCalibrationReq 32
typedef struct {
BYTE type;
BYTE pad0;
CARD16 sequenceNumber B16;
CARD32 status B32;
CARD32 pad1 B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
CARD32 pad6 B32;
} xXSPSetTSCalibrationReply;
#define sz_xXSPSetTSCalibrationReply 32
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD16 on B16;
CARD16 pad B16;
} xXSPSetTSRawModeReq;
#define sz_xXSPSetTSRawModeReq 8
typedef struct {
BYTE type; /* X_Reply */
BYTE pad1;
CARD16 sequenceNumber B16;
CARD32 status B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
CARD32 pad6 B32;
CARD32 pad7 B32;
} xXSPSetTSRawModeReply;
#define sz_xXSPSetTSRawModeReply 32
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD32 screen_num B32;
CARD16 x B16;
CARD16 y B16;
CARD16 width B16;
CARD16 height B16;
} xXSPRegisterDSPAreaReq;
#define sz_xXSPRegisterDSPAreaReq 16
typedef struct {
BYTE type; /* X_Reply */
BYTE pad1;
CARD16 sequenceNumber B16;
CARD32 status B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
CARD32 pad6 B32;
CARD32 pad7 B32;
} xXSPRegisterDSPAreaReply;
#define sz_xXSPRegisterDSPAreaReply 32
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD32 screen_num B32;
} xXSPCancelDSPAreaReq;
#define sz_xXSPCancelDSPAreaReq 8
typedef struct {
BYTE type;
BYTE pad1;
CARD16 sequenceNumber B16;
CARD32 status B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
CARD32 pad6 B32;
CARD32 pad7 B32;
} xXSPCancelDSPAreaReply;
#define sz_xXSPCancelDSPAreaReply 32
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD32 screen_num B32;
CARD32 state;
} xXSPSetPixelDoublingReq;
#define sz_xXSPSetPixelDoublingReq 12
typedef struct {
BYTE type;
BYTE pad1;
CARD16 sequenceNumber B16;
CARD32 status B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
CARD32 pad6 B32;
CARD32 pad7 B32;
} xXSPSetPixelDoublingReply;
#define sz_xXSPSetPixelDoublingReply 32
typedef struct {
CARD8 reqType;
CARD8 xspReqType;
CARD16 length B16;
CARD32 screen_num B32;
CARD32 pressure;
} xXSPSetThumbPressureReq;
#define sz_xXSPSetThumbPressureReq 12
/* Events */
typedef struct {
CARD8 type;
CARD8 pad1;
CARD16 sequenceNumber B16;
CARD16 x;
CARD16 y;
CARD16 pressure;
CARD16 pad2;
} xXSPRawTouchscreenEvent;
#define sz_xXSPRawTouchscreenEvent 12
typedef struct {
CARD8 type;
CARD8 pad1;
CARD16 sequenceNumber B16;
} xXSPDSPStoppedEvent;
#define sz_xXSPDSPStoppedEvent 4
#endif