comparison src/video/Xext/extensions/xf86vmstr.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents 19418e4422cb
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
37 37
38 #include "xf86vmode.h" 38 #include "xf86vmode.h"
39 39
40 #define XF86VIDMODENAME "XFree86-VidModeExtension" 40 #define XF86VIDMODENAME "XFree86-VidModeExtension"
41 41
42 #define XF86VIDMODE_MAJOR_VERSION 2 /* current version numbers */ 42 #define XF86VIDMODE_MAJOR_VERSION 2 /* current version numbers */
43 #define XF86VIDMODE_MINOR_VERSION 1 43 #define XF86VIDMODE_MINOR_VERSION 1
44 /* 44 /*
45 * major version 0 == uses parameter-to-wire functions in XFree86 libXxf86vm. 45 * major version 0 == uses parameter-to-wire functions in XFree86 libXxf86vm.
46 * major version 1 == uses parameter-to-wire functions hard-coded in xvidtune 46 * major version 1 == uses parameter-to-wire functions hard-coded in xvidtune
47 * client. 47 * client.
48 * major version 2 == uses new protocol version in XFree86 4.0. 48 * major version 2 == uses new protocol version in XFree86 4.0.
49 */ 49 */
50 50
51 typedef struct _XF86VidModeQueryVersion { 51 typedef struct _XF86VidModeQueryVersion
52 CARD8 reqType; /* always XF86VidModeReqCode */ 52 {
53 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeQueryVersion */ 53 CARD8 reqType; /* always XF86VidModeReqCode */
54 CARD16 length B16; 54 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeQueryVersion */
55 CARD16 length B16;
55 } xXF86VidModeQueryVersionReq; 56 } xXF86VidModeQueryVersionReq;
56 #define sz_xXF86VidModeQueryVersionReq 4 57 #define sz_xXF86VidModeQueryVersionReq 4
57 58
58 typedef struct { 59 typedef struct
59 BYTE type; /* X_Reply */ 60 {
60 BOOL pad1; 61 BYTE type; /* X_Reply */
61 CARD16 sequenceNumber B16; 62 BOOL pad1;
62 CARD32 length B32; 63 CARD16 sequenceNumber B16;
63 CARD16 majorVersion B16; /* major version of XF86VidMode */ 64 CARD32 length B32;
64 CARD16 minorVersion B16; /* minor version of XF86VidMode */ 65 CARD16 majorVersion B16; /* major version of XF86VidMode */
65 CARD32 pad2 B32; 66 CARD16 minorVersion B16; /* minor version of XF86VidMode */
66 CARD32 pad3 B32; 67 CARD32 pad2 B32;
67 CARD32 pad4 B32; 68 CARD32 pad3 B32;
68 CARD32 pad5 B32; 69 CARD32 pad4 B32;
69 CARD32 pad6 B32; 70 CARD32 pad5 B32;
71 CARD32 pad6 B32;
70 } xXF86VidModeQueryVersionReply; 72 } xXF86VidModeQueryVersionReply;
71 #define sz_xXF86VidModeQueryVersionReply 32 73 #define sz_xXF86VidModeQueryVersionReply 32
72 74
73 typedef struct _XF86VidModeGetModeLine { 75 typedef struct _XF86VidModeGetModeLine
74 CARD8 reqType; /* always XF86VidModeReqCode */ 76 {
75 CARD8 xf86vidmodeReqType; 77 CARD8 reqType; /* always XF86VidModeReqCode */
76 CARD16 length B16; 78 CARD8 xf86vidmodeReqType;
77 CARD16 screen B16; 79 CARD16 length B16;
78 CARD16 pad B16; 80 CARD16 screen B16;
81 CARD16 pad B16;
79 } xXF86VidModeGetModeLineReq, 82 } xXF86VidModeGetModeLineReq,
80 xXF86VidModeGetAllModeLinesReq, 83 xXF86VidModeGetAllModeLinesReq,
81 xXF86VidModeGetMonitorReq, 84 xXF86VidModeGetMonitorReq,
82 xXF86VidModeGetViewPortReq, 85 xXF86VidModeGetViewPortReq, xXF86VidModeGetDotClocksReq;
83 xXF86VidModeGetDotClocksReq;
84 #define sz_xXF86VidModeGetModeLineReq 8 86 #define sz_xXF86VidModeGetModeLineReq 8
85 #define sz_xXF86VidModeGetAllModeLinesReq 8 87 #define sz_xXF86VidModeGetAllModeLinesReq 8
86 #define sz_xXF86VidModeGetMonitorReq 8 88 #define sz_xXF86VidModeGetMonitorReq 8
87 #define sz_xXF86VidModeGetViewPortReq 8 89 #define sz_xXF86VidModeGetViewPortReq 8
88 #define sz_xXF86VidModeGetDotClocksReq 8 90 #define sz_xXF86VidModeGetDotClocksReq 8
89 91
90 typedef struct { 92 typedef struct
91 BYTE type; /* X_Reply */ 93 {
92 BOOL pad1; 94 BYTE type; /* X_Reply */
93 CARD16 sequenceNumber B16; 95 BOOL pad1;
94 CARD32 length B32; 96 CARD16 sequenceNumber B16;
95 CARD32 dotclock B32; 97 CARD32 length B32;
96 CARD16 hdisplay B16; 98 CARD32 dotclock B32;
97 CARD16 hsyncstart B16; 99 CARD16 hdisplay B16;
98 CARD16 hsyncend B16; 100 CARD16 hsyncstart B16;
99 CARD16 htotal B16; 101 CARD16 hsyncend B16;
100 CARD16 hskew B16; 102 CARD16 htotal B16;
101 CARD16 vdisplay B16; 103 CARD16 hskew B16;
102 CARD16 vsyncstart B16; 104 CARD16 vdisplay B16;
103 CARD16 vsyncend B16; 105 CARD16 vsyncstart B16;
104 CARD16 vtotal B16; 106 CARD16 vsyncend B16;
105 CARD16 pad2 B16; 107 CARD16 vtotal B16;
106 CARD32 flags B32; 108 CARD16 pad2 B16;
107 CARD32 reserved1 B32; 109 CARD32 flags B32;
108 CARD32 reserved2 B32; 110 CARD32 reserved1 B32;
109 CARD32 reserved3 B32; 111 CARD32 reserved2 B32;
110 CARD32 privsize B32; 112 CARD32 reserved3 B32;
113 CARD32 privsize B32;
111 } xXF86VidModeGetModeLineReply; 114 } xXF86VidModeGetModeLineReply;
112 #define sz_xXF86VidModeGetModeLineReply 52 115 #define sz_xXF86VidModeGetModeLineReply 52
113 116
114 /* 0.x version */ 117 /* 0.x version */
115 typedef struct { 118 typedef struct
116 BYTE type; /* X_Reply */ 119 {
117 BOOL pad1; 120 BYTE type; /* X_Reply */
118 CARD16 sequenceNumber B16; 121 BOOL pad1;
119 CARD32 length B32; 122 CARD16 sequenceNumber B16;
120 CARD32 dotclock B32; 123 CARD32 length B32;
121 CARD16 hdisplay B16; 124 CARD32 dotclock B32;
122 CARD16 hsyncstart B16; 125 CARD16 hdisplay B16;
123 CARD16 hsyncend B16; 126 CARD16 hsyncstart B16;
124 CARD16 htotal B16; 127 CARD16 hsyncend B16;
125 CARD16 vdisplay B16; 128 CARD16 htotal B16;
126 CARD16 vsyncstart B16; 129 CARD16 vdisplay B16;
127 CARD16 vsyncend B16; 130 CARD16 vsyncstart B16;
128 CARD16 vtotal B16; 131 CARD16 vsyncend B16;
129 CARD32 flags B32; 132 CARD16 vtotal B16;
130 CARD32 privsize B32; 133 CARD32 flags B32;
134 CARD32 privsize B32;
131 } xXF86OldVidModeGetModeLineReply; 135 } xXF86OldVidModeGetModeLineReply;
132 #define sz_xXF86OldVidModeGetModeLineReply 36 136 #define sz_xXF86OldVidModeGetModeLineReply 36
133 137
134 typedef struct { 138 typedef struct
135 CARD32 dotclock B32; 139 {
136 CARD16 hdisplay B16; 140 CARD32 dotclock B32;
137 CARD16 hsyncstart B16; 141 CARD16 hdisplay B16;
138 CARD16 hsyncend B16; 142 CARD16 hsyncstart B16;
139 CARD16 htotal B16; 143 CARD16 hsyncend B16;
140 CARD32 hskew B16; 144 CARD16 htotal B16;
141 CARD16 vdisplay B16; 145 CARD32 hskew B16;
142 CARD16 vsyncstart B16; 146 CARD16 vdisplay B16;
143 CARD16 vsyncend B16; 147 CARD16 vsyncstart B16;
144 CARD16 vtotal B16; 148 CARD16 vsyncend B16;
145 CARD16 pad1 B16; 149 CARD16 vtotal B16;
146 CARD32 flags B32; 150 CARD16 pad1 B16;
147 CARD32 reserved1 B32; 151 CARD32 flags B32;
148 CARD32 reserved2 B32; 152 CARD32 reserved1 B32;
149 CARD32 reserved3 B32; 153 CARD32 reserved2 B32;
150 CARD32 privsize B32; 154 CARD32 reserved3 B32;
155 CARD32 privsize B32;
151 } xXF86VidModeModeInfo; 156 } xXF86VidModeModeInfo;
152 157
153 /* 0.x version */ 158 /* 0.x version */
154 typedef struct { 159 typedef struct
155 CARD32 dotclock B32; 160 {
156 CARD16 hdisplay B16; 161 CARD32 dotclock B32;
157 CARD16 hsyncstart B16; 162 CARD16 hdisplay B16;
158 CARD16 hsyncend B16; 163 CARD16 hsyncstart B16;
159 CARD16 htotal B16; 164 CARD16 hsyncend B16;
160 CARD16 vdisplay B16; 165 CARD16 htotal B16;
161 CARD16 vsyncstart B16; 166 CARD16 vdisplay B16;
162 CARD16 vsyncend B16; 167 CARD16 vsyncstart B16;
163 CARD16 vtotal B16; 168 CARD16 vsyncend B16;
164 CARD32 flags B32; 169 CARD16 vtotal B16;
165 CARD32 privsize B32; 170 CARD32 flags B32;
171 CARD32 privsize B32;
166 } xXF86OldVidModeModeInfo; 172 } xXF86OldVidModeModeInfo;
167 173
168 typedef struct { 174 typedef struct
169 BYTE type; /* X_Reply */ 175 {
170 BOOL pad1; 176 BYTE type; /* X_Reply */
171 CARD16 sequenceNumber B16; 177 BOOL pad1;
172 CARD32 length B32; 178 CARD16 sequenceNumber B16;
173 CARD32 modecount B32; 179 CARD32 length B32;
174 CARD32 pad2 B32; 180 CARD32 modecount B32;
175 CARD32 pad3 B32; 181 CARD32 pad2 B32;
176 CARD32 pad4 B32; 182 CARD32 pad3 B32;
177 CARD32 pad5 B32; 183 CARD32 pad4 B32;
178 CARD32 pad6 B32; 184 CARD32 pad5 B32;
185 CARD32 pad6 B32;
179 } xXF86VidModeGetAllModeLinesReply; 186 } xXF86VidModeGetAllModeLinesReply;
180 #define sz_xXF86VidModeGetAllModeLinesReply 32 187 #define sz_xXF86VidModeGetAllModeLinesReply 32
181 188
182 typedef struct _XF86VidModeAddModeLine { 189 typedef struct _XF86VidModeAddModeLine
183 CARD8 reqType; /* always XF86VidModeReqCode */ 190 {
184 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */ 191 CARD8 reqType; /* always XF86VidModeReqCode */
185 CARD16 length B16; 192 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */
186 CARD32 screen B32; /* could be CARD16 but need the pad */ 193 CARD16 length B16;
187 CARD32 dotclock B32; 194 CARD32 screen B32; /* could be CARD16 but need the pad */
188 CARD16 hdisplay B16; 195 CARD32 dotclock B32;
189 CARD16 hsyncstart B16; 196 CARD16 hdisplay B16;
190 CARD16 hsyncend B16; 197 CARD16 hsyncstart B16;
191 CARD16 htotal B16; 198 CARD16 hsyncend B16;
192 CARD16 hskew B16; 199 CARD16 htotal B16;
193 CARD16 vdisplay B16; 200 CARD16 hskew B16;
194 CARD16 vsyncstart B16; 201 CARD16 vdisplay B16;
195 CARD16 vsyncend B16; 202 CARD16 vsyncstart B16;
196 CARD16 vtotal B16; 203 CARD16 vsyncend B16;
197 CARD16 pad1 B16; 204 CARD16 vtotal B16;
198 CARD32 flags B32; 205 CARD16 pad1 B16;
199 CARD32 reserved1 B32; 206 CARD32 flags B32;
200 CARD32 reserved2 B32; 207 CARD32 reserved1 B32;
201 CARD32 reserved3 B32; 208 CARD32 reserved2 B32;
202 CARD32 privsize B32; 209 CARD32 reserved3 B32;
203 CARD32 after_dotclock B32; 210 CARD32 privsize B32;
204 CARD16 after_hdisplay B16; 211 CARD32 after_dotclock B32;
205 CARD16 after_hsyncstart B16; 212 CARD16 after_hdisplay B16;
206 CARD16 after_hsyncend B16; 213 CARD16 after_hsyncstart B16;
207 CARD16 after_htotal B16; 214 CARD16 after_hsyncend B16;
208 CARD16 after_hskew B16; 215 CARD16 after_htotal B16;
209 CARD16 after_vdisplay B16; 216 CARD16 after_hskew B16;
210 CARD16 after_vsyncstart B16; 217 CARD16 after_vdisplay B16;
211 CARD16 after_vsyncend B16; 218 CARD16 after_vsyncstart B16;
212 CARD16 after_vtotal B16; 219 CARD16 after_vsyncend B16;
213 CARD16 pad2 B16; 220 CARD16 after_vtotal B16;
214 CARD32 after_flags B32; 221 CARD16 pad2 B16;
215 CARD32 reserved4 B32; 222 CARD32 after_flags B32;
216 CARD32 reserved5 B32; 223 CARD32 reserved4 B32;
217 CARD32 reserved6 B32; 224 CARD32 reserved5 B32;
225 CARD32 reserved6 B32;
218 } xXF86VidModeAddModeLineReq; 226 } xXF86VidModeAddModeLineReq;
219 #define sz_xXF86VidModeAddModeLineReq 92 227 #define sz_xXF86VidModeAddModeLineReq 92
220 228
221 /* 0.x version */ 229 /* 0.x version */
222 typedef struct _XF86OldVidModeAddModeLine { 230 typedef struct _XF86OldVidModeAddModeLine
223 CARD8 reqType; /* always XF86VidModeReqCode */ 231 {
224 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */ 232 CARD8 reqType; /* always XF86VidModeReqCode */
225 CARD16 length B16; 233 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */
226 CARD32 screen B32; /* could be CARD16 but need the pad */ 234 CARD16 length B16;
227 CARD32 dotclock B32; 235 CARD32 screen B32; /* could be CARD16 but need the pad */
228 CARD16 hdisplay B16; 236 CARD32 dotclock B32;
229 CARD16 hsyncstart B16; 237 CARD16 hdisplay B16;
230 CARD16 hsyncend B16; 238 CARD16 hsyncstart B16;
231 CARD16 htotal B16; 239 CARD16 hsyncend B16;
232 CARD16 vdisplay B16; 240 CARD16 htotal B16;
233 CARD16 vsyncstart B16; 241 CARD16 vdisplay B16;
234 CARD16 vsyncend B16; 242 CARD16 vsyncstart B16;
235 CARD16 vtotal B16; 243 CARD16 vsyncend B16;
236 CARD32 flags B32; 244 CARD16 vtotal B16;
237 CARD32 privsize B32; 245 CARD32 flags B32;
238 CARD32 after_dotclock B32; 246 CARD32 privsize B32;
239 CARD16 after_hdisplay B16; 247 CARD32 after_dotclock B32;
240 CARD16 after_hsyncstart B16; 248 CARD16 after_hdisplay B16;
241 CARD16 after_hsyncend B16; 249 CARD16 after_hsyncstart B16;
242 CARD16 after_htotal B16; 250 CARD16 after_hsyncend B16;
243 CARD16 after_vdisplay B16; 251 CARD16 after_htotal B16;
244 CARD16 after_vsyncstart B16; 252 CARD16 after_vdisplay B16;
245 CARD16 after_vsyncend B16; 253 CARD16 after_vsyncstart B16;
246 CARD16 after_vtotal B16; 254 CARD16 after_vsyncend B16;
247 CARD32 after_flags B32; 255 CARD16 after_vtotal B16;
256 CARD32 after_flags B32;
248 } xXF86OldVidModeAddModeLineReq; 257 } xXF86OldVidModeAddModeLineReq;
249 #define sz_xXF86OldVidModeAddModeLineReq 60 258 #define sz_xXF86OldVidModeAddModeLineReq 60
250 259
251 typedef struct _XF86VidModeModModeLine { 260 typedef struct _XF86VidModeModModeLine
252 CARD8 reqType; /* always XF86VidModeReqCode */ 261 {
253 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeModModeLine */ 262 CARD8 reqType; /* always XF86VidModeReqCode */
254 CARD16 length B16; 263 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeModModeLine */
255 CARD32 screen B32; /* could be CARD16 but need the pad */ 264 CARD16 length B16;
256 CARD16 hdisplay B16; 265 CARD32 screen B32; /* could be CARD16 but need the pad */
257 CARD16 hsyncstart B16; 266 CARD16 hdisplay B16;
258 CARD16 hsyncend B16; 267 CARD16 hsyncstart B16;
259 CARD16 htotal B16; 268 CARD16 hsyncend B16;
260 CARD16 hskew B16; 269 CARD16 htotal B16;
261 CARD16 vdisplay B16; 270 CARD16 hskew B16;
262 CARD16 vsyncstart B16; 271 CARD16 vdisplay B16;
263 CARD16 vsyncend B16; 272 CARD16 vsyncstart B16;
264 CARD16 vtotal B16; 273 CARD16 vsyncend B16;
265 CARD16 pad1 B16; 274 CARD16 vtotal B16;
266 CARD32 flags B32; 275 CARD16 pad1 B16;
267 CARD32 reserved1 B32; 276 CARD32 flags B32;
268 CARD32 reserved2 B32; 277 CARD32 reserved1 B32;
269 CARD32 reserved3 B32; 278 CARD32 reserved2 B32;
270 CARD32 privsize B32; 279 CARD32 reserved3 B32;
280 CARD32 privsize B32;
271 } xXF86VidModeModModeLineReq; 281 } xXF86VidModeModModeLineReq;
272 #define sz_xXF86VidModeModModeLineReq 48 282 #define sz_xXF86VidModeModModeLineReq 48
273 283
274 /* 0.x version */ 284 /* 0.x version */
275 typedef struct _XF86OldVidModeModModeLine { 285 typedef struct _XF86OldVidModeModModeLine
276 CARD8 reqType; /* always XF86OldVidModeReqCode */ 286 {
277 CARD8 xf86vidmodeReqType; /* always X_XF86OldVidModeModModeLine */ 287 CARD8 reqType; /* always XF86OldVidModeReqCode */
278 CARD16 length B16; 288 CARD8 xf86vidmodeReqType; /* always X_XF86OldVidModeModModeLine */
279 CARD32 screen B32; /* could be CARD16 but need the pad */ 289 CARD16 length B16;
280 CARD16 hdisplay B16; 290 CARD32 screen B32; /* could be CARD16 but need the pad */
281 CARD16 hsyncstart B16; 291 CARD16 hdisplay B16;
282 CARD16 hsyncend B16; 292 CARD16 hsyncstart B16;
283 CARD16 htotal B16; 293 CARD16 hsyncend B16;
284 CARD16 vdisplay B16; 294 CARD16 htotal B16;
285 CARD16 vsyncstart B16; 295 CARD16 vdisplay B16;
286 CARD16 vsyncend B16; 296 CARD16 vsyncstart B16;
287 CARD16 vtotal B16; 297 CARD16 vsyncend B16;
288 CARD32 flags B32; 298 CARD16 vtotal B16;
289 CARD32 privsize B32; 299 CARD32 flags B32;
300 CARD32 privsize B32;
290 } xXF86OldVidModeModModeLineReq; 301 } xXF86OldVidModeModModeLineReq;
291 #define sz_xXF86OldVidModeModModeLineReq 32 302 #define sz_xXF86OldVidModeModModeLineReq 32
292 303
293 typedef struct _XF86VidModeValidateModeLine { 304 typedef struct _XF86VidModeValidateModeLine
294 CARD8 reqType; /* always XF86VidModeReqCode */ 305 {
295 CARD8 xf86vidmodeReqType; 306 CARD8 reqType; /* always XF86VidModeReqCode */
296 CARD16 length B16; 307 CARD8 xf86vidmodeReqType;
297 CARD32 screen B32; /* could be CARD16 but need the pad */ 308 CARD16 length B16;
298 CARD32 dotclock B32; 309 CARD32 screen B32; /* could be CARD16 but need the pad */
299 CARD16 hdisplay B16; 310 CARD32 dotclock B32;
300 CARD16 hsyncstart B16; 311 CARD16 hdisplay B16;
301 CARD16 hsyncend B16; 312 CARD16 hsyncstart B16;
302 CARD16 htotal B16; 313 CARD16 hsyncend B16;
303 CARD16 hskew B16; 314 CARD16 htotal B16;
304 CARD16 vdisplay B16; 315 CARD16 hskew B16;
305 CARD16 vsyncstart B16; 316 CARD16 vdisplay B16;
306 CARD16 vsyncend B16; 317 CARD16 vsyncstart B16;
307 CARD16 vtotal B16; 318 CARD16 vsyncend B16;
308 CARD16 pad1 B16; 319 CARD16 vtotal B16;
309 CARD32 flags B32; 320 CARD16 pad1 B16;
310 CARD32 reserved1 B32; 321 CARD32 flags B32;
311 CARD32 reserved2 B32; 322 CARD32 reserved1 B32;
312 CARD32 reserved3 B32; 323 CARD32 reserved2 B32;
313 CARD32 privsize B32; 324 CARD32 reserved3 B32;
325 CARD32 privsize B32;
314 } xXF86VidModeDeleteModeLineReq, 326 } xXF86VidModeDeleteModeLineReq,
315 xXF86VidModeValidateModeLineReq, 327 xXF86VidModeValidateModeLineReq, xXF86VidModeSwitchToModeReq;
316 xXF86VidModeSwitchToModeReq;
317 #define sz_xXF86VidModeDeleteModeLineReq 52 328 #define sz_xXF86VidModeDeleteModeLineReq 52
318 #define sz_xXF86VidModeValidateModeLineReq 52 329 #define sz_xXF86VidModeValidateModeLineReq 52
319 #define sz_xXF86VidModeSwitchToModeReq 52 330 #define sz_xXF86VidModeSwitchToModeReq 52
320 331
321 /* 0.x version */ 332 /* 0.x version */
322 typedef struct _XF86OldVidModeValidateModeLine { 333 typedef struct _XF86OldVidModeValidateModeLine
323 CARD8 reqType; /* always XF86OldVidModeReqCode */ 334 {
324 CARD8 xf86vidmodeReqType; 335 CARD8 reqType; /* always XF86OldVidModeReqCode */
325 CARD16 length B16; 336 CARD8 xf86vidmodeReqType;
326 CARD32 screen B32; /* could be CARD16 but need the pad */ 337 CARD16 length B16;
327 CARD32 dotclock B32; 338 CARD32 screen B32; /* could be CARD16 but need the pad */
328 CARD16 hdisplay B16; 339 CARD32 dotclock B32;
329 CARD16 hsyncstart B16; 340 CARD16 hdisplay B16;
330 CARD16 hsyncend B16; 341 CARD16 hsyncstart B16;
331 CARD16 htotal B16; 342 CARD16 hsyncend B16;
332 CARD16 vdisplay B16; 343 CARD16 htotal B16;
333 CARD16 vsyncstart B16; 344 CARD16 vdisplay B16;
334 CARD16 vsyncend B16; 345 CARD16 vsyncstart B16;
335 CARD16 vtotal B16; 346 CARD16 vsyncend B16;
336 CARD32 flags B32; 347 CARD16 vtotal B16;
337 CARD32 privsize B32; 348 CARD32 flags B32;
349 CARD32 privsize B32;
338 } xXF86OldVidModeDeleteModeLineReq, 350 } xXF86OldVidModeDeleteModeLineReq,
339 xXF86OldVidModeValidateModeLineReq, 351 xXF86OldVidModeValidateModeLineReq, xXF86OldVidModeSwitchToModeReq;
340 xXF86OldVidModeSwitchToModeReq;
341 #define sz_xXF86OldVidModeDeleteModeLineReq 36 352 #define sz_xXF86OldVidModeDeleteModeLineReq 36
342 #define sz_xXF86OldVidModeValidateModeLineReq 36 353 #define sz_xXF86OldVidModeValidateModeLineReq 36
343 #define sz_xXF86OldVidModeSwitchToModeReq 36 354 #define sz_xXF86OldVidModeSwitchToModeReq 36
344 355
345 typedef struct _XF86VidModeSwitchMode { 356 typedef struct _XF86VidModeSwitchMode
346 CARD8 reqType; /* always XF86VidModeReqCode */ 357 {
347 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSwitchMode */ 358 CARD8 reqType; /* always XF86VidModeReqCode */
348 CARD16 length B16; 359 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSwitchMode */
349 CARD16 screen B16; 360 CARD16 length B16;
350 CARD16 zoom B16; 361 CARD16 screen B16;
362 CARD16 zoom B16;
351 } xXF86VidModeSwitchModeReq; 363 } xXF86VidModeSwitchModeReq;
352 #define sz_xXF86VidModeSwitchModeReq 8 364 #define sz_xXF86VidModeSwitchModeReq 8
353 365
354 typedef struct _XF86VidModeLockModeSwitch { 366 typedef struct _XF86VidModeLockModeSwitch
355 CARD8 reqType; /* always XF86VidModeReqCode */ 367 {
356 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeLockModeSwitch */ 368 CARD8 reqType; /* always XF86VidModeReqCode */
357 CARD16 length B16; 369 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeLockModeSwitch */
358 CARD16 screen B16; 370 CARD16 length B16;
359 CARD16 lock B16; 371 CARD16 screen B16;
372 CARD16 lock B16;
360 } xXF86VidModeLockModeSwitchReq; 373 } xXF86VidModeLockModeSwitchReq;
361 #define sz_xXF86VidModeLockModeSwitchReq 8 374 #define sz_xXF86VidModeLockModeSwitchReq 8
362 375
363 typedef struct { 376 typedef struct
364 BYTE type; /* X_Reply */ 377 {
365 BOOL pad1; 378 BYTE type; /* X_Reply */
366 CARD16 sequenceNumber B16; 379 BOOL pad1;
367 CARD32 length B32; 380 CARD16 sequenceNumber B16;
368 CARD32 status B32; 381 CARD32 length B32;
369 CARD32 pad2 B32; 382 CARD32 status B32;
370 CARD32 pad3 B32; 383 CARD32 pad2 B32;
371 CARD32 pad4 B32; 384 CARD32 pad3 B32;
372 CARD32 pad5 B32; 385 CARD32 pad4 B32;
373 CARD32 pad6 B32; 386 CARD32 pad5 B32;
387 CARD32 pad6 B32;
374 } xXF86VidModeValidateModeLineReply; 388 } xXF86VidModeValidateModeLineReply;
375 #define sz_xXF86VidModeValidateModeLineReply 32 389 #define sz_xXF86VidModeValidateModeLineReply 32
376 390
377 typedef struct { 391 typedef struct
378 BYTE type; /* X_Reply */ 392 {
379 BOOL pad1; 393 BYTE type; /* X_Reply */
380 CARD16 sequenceNumber B16; 394 BOOL pad1;
381 CARD32 length B32; 395 CARD16 sequenceNumber B16;
382 CARD8 vendorLength; 396 CARD32 length B32;
383 CARD8 modelLength; 397 CARD8 vendorLength;
384 CARD8 nhsync; 398 CARD8 modelLength;
385 CARD8 nvsync; 399 CARD8 nhsync;
386 CARD32 pad2 B32; 400 CARD8 nvsync;
387 CARD32 pad3 B32; 401 CARD32 pad2 B32;
388 CARD32 pad4 B32; 402 CARD32 pad3 B32;
389 CARD32 pad5 B32; 403 CARD32 pad4 B32;
390 CARD32 pad6 B32; 404 CARD32 pad5 B32;
405 CARD32 pad6 B32;
391 } xXF86VidModeGetMonitorReply; 406 } xXF86VidModeGetMonitorReply;
392 #define sz_xXF86VidModeGetMonitorReply 32 407 #define sz_xXF86VidModeGetMonitorReply 32
393 408
394 typedef struct { 409 typedef struct
395 BYTE type; 410 {
396 BOOL pad1; 411 BYTE type;
397 CARD16 sequenceNumber B16; 412 BOOL pad1;
398 CARD32 length B32; 413 CARD16 sequenceNumber B16;
399 CARD32 x B32; 414 CARD32 length B32;
400 CARD32 y B32; 415 CARD32 x B32;
401 CARD32 pad2 B32; 416 CARD32 y B32;
402 CARD32 pad3 B32; 417 CARD32 pad2 B32;
403 CARD32 pad4 B32; 418 CARD32 pad3 B32;
404 CARD32 pad5 B32; 419 CARD32 pad4 B32;
420 CARD32 pad5 B32;
405 } xXF86VidModeGetViewPortReply; 421 } xXF86VidModeGetViewPortReply;
406 #define sz_xXF86VidModeGetViewPortReply 32 422 #define sz_xXF86VidModeGetViewPortReply 32
407 423
408 typedef struct _XF86VidModeSetViewPort { 424 typedef struct _XF86VidModeSetViewPort
409 CARD8 reqType; /* always VidModeReqCode */ 425 {
410 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSetViewPort */ 426 CARD8 reqType; /* always VidModeReqCode */
411 CARD16 length B16; 427 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSetViewPort */
412 CARD16 screen B16; 428 CARD16 length B16;
413 CARD16 pad B16; 429 CARD16 screen B16;
414 CARD32 x B32; 430 CARD16 pad B16;
415 CARD32 y B32; 431 CARD32 x B32;
432 CARD32 y B32;
416 } xXF86VidModeSetViewPortReq; 433 } xXF86VidModeSetViewPortReq;
417 #define sz_xXF86VidModeSetViewPortReq 16 434 #define sz_xXF86VidModeSetViewPortReq 16
418 435
419 typedef struct { 436 typedef struct
420 BYTE type; 437 {
421 BOOL pad1; 438 BYTE type;
422 CARD16 sequenceNumber B16; 439 BOOL pad1;
423 CARD32 length B32; 440 CARD16 sequenceNumber B16;
424 CARD32 flags B32; 441 CARD32 length B32;
425 CARD32 clocks B32; 442 CARD32 flags B32;
426 CARD32 maxclocks B32; 443 CARD32 clocks B32;
427 CARD32 pad2 B32; 444 CARD32 maxclocks B32;
428 CARD32 pad3 B32; 445 CARD32 pad2 B32;
429 CARD32 pad4 B32; 446 CARD32 pad3 B32;
447 CARD32 pad4 B32;
430 } xXF86VidModeGetDotClocksReply; 448 } xXF86VidModeGetDotClocksReply;
431 #define sz_xXF86VidModeGetDotClocksReply 32 449 #define sz_xXF86VidModeGetDotClocksReply 32
432 450
433 typedef struct _XF86VidModeSetClientVersion { 451 typedef struct _XF86VidModeSetClientVersion
434 CARD8 reqType; /* always XF86VidModeReqCode */ 452 {
435 CARD8 xf86vidmodeReqType; 453 CARD8 reqType; /* always XF86VidModeReqCode */
436 CARD16 length B16; 454 CARD8 xf86vidmodeReqType;
437 CARD16 major B16; 455 CARD16 length B16;
438 CARD16 minor B16; 456 CARD16 major B16;
457 CARD16 minor B16;
439 } xXF86VidModeSetClientVersionReq; 458 } xXF86VidModeSetClientVersionReq;
440 #define sz_xXF86VidModeSetClientVersionReq 8 459 #define sz_xXF86VidModeSetClientVersionReq 8
441 460
442 typedef struct _XF86VidModeGetGamma { 461 typedef struct _XF86VidModeGetGamma
443 CARD8 reqType; /* always XF86VidModeReqCode */ 462 {
444 CARD8 xf86vidmodeReqType; 463 CARD8 reqType; /* always XF86VidModeReqCode */
445 CARD16 length B16; 464 CARD8 xf86vidmodeReqType;
446 CARD16 screen B16; 465 CARD16 length B16;
447 CARD16 pad B16; 466 CARD16 screen B16;
448 CARD32 pad1 B32; 467 CARD16 pad B16;
449 CARD32 pad2 B32; 468 CARD32 pad1 B32;
450 CARD32 pad3 B32; 469 CARD32 pad2 B32;
451 CARD32 pad4 B32; 470 CARD32 pad3 B32;
452 CARD32 pad5 B32; 471 CARD32 pad4 B32;
453 CARD32 pad6 B32; 472 CARD32 pad5 B32;
473 CARD32 pad6 B32;
454 } xXF86VidModeGetGammaReq; 474 } xXF86VidModeGetGammaReq;
455 #define sz_xXF86VidModeGetGammaReq 32 475 #define sz_xXF86VidModeGetGammaReq 32
456 476
457 typedef struct { 477 typedef struct
458 BYTE type; 478 {
459 BOOL pad; 479 BYTE type;
460 CARD16 sequenceNumber B16; 480 BOOL pad;
461 CARD32 length B32; 481 CARD16 sequenceNumber B16;
462 CARD32 red B32; 482 CARD32 length B32;
463 CARD32 green B32; 483 CARD32 red B32;
464 CARD32 blue B32; 484 CARD32 green B32;
465 CARD32 pad1 B32; 485 CARD32 blue B32;
466 CARD32 pad2 B32; 486 CARD32 pad1 B32;
467 CARD32 pad3 B32; 487 CARD32 pad2 B32;
488 CARD32 pad3 B32;
468 } xXF86VidModeGetGammaReply; 489 } xXF86VidModeGetGammaReply;
469 #define sz_xXF86VidModeGetGammaReply 32 490 #define sz_xXF86VidModeGetGammaReply 32
470 491
471 typedef struct _XF86VidModeSetGamma { 492 typedef struct _XF86VidModeSetGamma
472 CARD8 reqType; /* always XF86VidModeReqCode */ 493 {
473 CARD8 xf86vidmodeReqType; 494 CARD8 reqType; /* always XF86VidModeReqCode */
474 CARD16 length B16; 495 CARD8 xf86vidmodeReqType;
475 CARD16 screen B16; 496 CARD16 length B16;
476 CARD16 pad B16; 497 CARD16 screen B16;
477 CARD32 red B32; 498 CARD16 pad B16;
478 CARD32 green B32; 499 CARD32 red B32;
479 CARD32 blue B32; 500 CARD32 green B32;
480 CARD32 pad1 B32; 501 CARD32 blue B32;
481 CARD32 pad2 B32; 502 CARD32 pad1 B32;
482 CARD32 pad3 B32; 503 CARD32 pad2 B32;
504 CARD32 pad3 B32;
483 } xXF86VidModeSetGammaReq; 505 } xXF86VidModeSetGammaReq;
484 #define sz_xXF86VidModeSetGammaReq 32 506 #define sz_xXF86VidModeSetGammaReq 32
485 507
486 508
487 typedef struct _XF86VidModeSetGammaRamp { 509 typedef struct _XF86VidModeSetGammaRamp
488 CARD8 reqType; /* always XF86VidModeReqCode */ 510 {
489 CARD8 xf86vidmodeReqType; 511 CARD8 reqType; /* always XF86VidModeReqCode */
490 CARD16 length B16; 512 CARD8 xf86vidmodeReqType;
491 CARD16 screen B16; 513 CARD16 length B16;
492 CARD16 size B16; 514 CARD16 screen B16;
515 CARD16 size B16;
493 } xXF86VidModeSetGammaRampReq; 516 } xXF86VidModeSetGammaRampReq;
494 #define sz_xXF86VidModeSetGammaRampReq 8 517 #define sz_xXF86VidModeSetGammaRampReq 8
495 518
496 typedef struct _XF86VidModeGetGammaRamp { 519 typedef struct _XF86VidModeGetGammaRamp
497 CARD8 reqType; /* always XF86VidModeReqCode */ 520 {
498 CARD8 xf86vidmodeReqType; 521 CARD8 reqType; /* always XF86VidModeReqCode */
499 CARD16 length B16; 522 CARD8 xf86vidmodeReqType;
500 CARD16 screen B16; 523 CARD16 length B16;
501 CARD16 size B16; 524 CARD16 screen B16;
525 CARD16 size B16;
502 } xXF86VidModeGetGammaRampReq; 526 } xXF86VidModeGetGammaRampReq;
503 #define sz_xXF86VidModeGetGammaRampReq 8 527 #define sz_xXF86VidModeGetGammaRampReq 8
504 528
505 typedef struct { 529 typedef struct
506 BYTE type; 530 {
507 BOOL pad; 531 BYTE type;
508 CARD16 sequenceNumber B16; 532 BOOL pad;
509 CARD32 length B32; 533 CARD16 sequenceNumber B16;
510 CARD16 size B16; 534 CARD32 length B32;
511 CARD16 pad0 B16; 535 CARD16 size B16;
512 CARD32 pad1 B32; 536 CARD16 pad0 B16;
513 CARD32 pad2 B32; 537 CARD32 pad1 B32;
514 CARD32 pad3 B32; 538 CARD32 pad2 B32;
515 CARD32 pad4 B32; 539 CARD32 pad3 B32;
516 CARD32 pad5 B32; 540 CARD32 pad4 B32;
541 CARD32 pad5 B32;
517 } xXF86VidModeGetGammaRampReply; 542 } xXF86VidModeGetGammaRampReply;
518 #define sz_xXF86VidModeGetGammaRampReply 32 543 #define sz_xXF86VidModeGetGammaRampReply 32
519 544
520 typedef struct _XF86VidModeGetGammaRampSize { 545 typedef struct _XF86VidModeGetGammaRampSize
521 CARD8 reqType; /* always XF86VidModeReqCode */ 546 {
522 CARD8 xf86vidmodeReqType; 547 CARD8 reqType; /* always XF86VidModeReqCode */
523 CARD16 length B16; 548 CARD8 xf86vidmodeReqType;
524 CARD16 screen B16; 549 CARD16 length B16;
525 CARD16 pad B16; 550 CARD16 screen B16;
551 CARD16 pad B16;
526 } xXF86VidModeGetGammaRampSizeReq; 552 } xXF86VidModeGetGammaRampSizeReq;
527 #define sz_xXF86VidModeGetGammaRampSizeReq 8 553 #define sz_xXF86VidModeGetGammaRampSizeReq 8
528 554
529 typedef struct { 555 typedef struct
530 BYTE type; 556 {
531 BOOL pad; 557 BYTE type;
532 CARD16 sequenceNumber B16; 558 BOOL pad;
533 CARD32 length B32; 559 CARD16 sequenceNumber B16;
534 CARD16 size B16; 560 CARD32 length B32;
535 CARD16 pad0 B16; 561 CARD16 size B16;
536 CARD32 pad1 B32; 562 CARD16 pad0 B16;
537 CARD32 pad2 B32; 563 CARD32 pad1 B32;
538 CARD32 pad3 B32; 564 CARD32 pad2 B32;
539 CARD32 pad4 B32; 565 CARD32 pad3 B32;
540 CARD32 pad5 B32; 566 CARD32 pad4 B32;
567 CARD32 pad5 B32;
541 } xXF86VidModeGetGammaRampSizeReply; 568 } xXF86VidModeGetGammaRampSizeReply;
542 #define sz_xXF86VidModeGetGammaRampSizeReply 32 569 #define sz_xXF86VidModeGetGammaRampSizeReply 32
543 570
544 571
545 #endif /* _XF86VIDMODESTR_H_ */ 572 #endif /* _XF86VIDMODESTR_H_ */
546 573 /* vi: set ts=4 sw=4 expandtab: */