VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/X11/extensions/xf86vmstr.h@ 99743

Last change on this file since 99743 was 69098, checked in by vboxsync, 7 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 15.9 KB
Line 
1/* $XFree86: xc/include/extensions/xf86vmstr.h,v 3.28 2002/12/22 00:46:50 dawes Exp $ */
2/*
3
4Copyright 1995 Kaleb S. KEITHLEY
5
6Permission is hereby granted, free of charge, to any person obtaining
7a copy of this software and associated documentation files (the
8"Software"), to deal in the Software without restriction, including
9without limitation the rights to use, copy, modify, merge, publish,
10distribute, sublicense, and/or sell copies of the Software, and to
11permit persons to whom the Software is furnished to do so, subject to
12the following conditions:
13
14The above copyright notice and this permission notice shall be
15included in all copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
21OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23OTHER DEALINGS IN THE SOFTWARE.
24
25Except as contained in this notice, the name of Kaleb S. KEITHLEY
26shall not be used in advertising or otherwise to promote the sale, use
27or other dealings in this Software without prior written authorization
28from Kaleb S. KEITHLEY
29
30*/
31/* $Xorg: xf86vmstr.h,v 1.3 2000/08/18 04:05:46 coskrey Exp $ */
32
33/* THIS IS NOT AN X CONSORTIUM STANDARD OR AN X PROJECT TEAM SPECIFICATION */
34
35#ifndef _XF86VIDMODESTR_H_
36#define _XF86VIDMODESTR_H_
37
38#include <X11/extensions/xf86vmode.h>
39
40#define XF86VIDMODENAME "XFree86-VidModeExtension"
41
42#define XF86VIDMODE_MAJOR_VERSION 2 /* current version numbers */
43#define XF86VIDMODE_MINOR_VERSION 2
44/*
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
47 * client.
48 * major version 2 == uses new protocol version in XFree86 4.0.
49 */
50
51typedef struct _XF86VidModeQueryVersion {
52 CARD8 reqType; /* always XF86VidModeReqCode */
53 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeQueryVersion */
54 CARD16 length B16;
55} xXF86VidModeQueryVersionReq;
56#define sz_xXF86VidModeQueryVersionReq 4
57
58typedef struct {
59 BYTE type; /* X_Reply */
60 BOOL pad1;
61 CARD16 sequenceNumber B16;
62 CARD32 length B32;
63 CARD16 majorVersion B16; /* major version of XF86VidMode */
64 CARD16 minorVersion B16; /* minor version of XF86VidMode */
65 CARD32 pad2 B32;
66 CARD32 pad3 B32;
67 CARD32 pad4 B32;
68 CARD32 pad5 B32;
69 CARD32 pad6 B32;
70} xXF86VidModeQueryVersionReply;
71#define sz_xXF86VidModeQueryVersionReply 32
72
73typedef struct _XF86VidModeGetModeLine {
74 CARD8 reqType; /* always XF86VidModeReqCode */
75 CARD8 xf86vidmodeReqType;
76 CARD16 length B16;
77 CARD16 screen B16;
78 CARD16 pad B16;
79} xXF86VidModeGetModeLineReq,
80 xXF86VidModeGetAllModeLinesReq,
81 xXF86VidModeGetMonitorReq,
82 xXF86VidModeGetViewPortReq,
83 xXF86VidModeGetDotClocksReq,
84 xXF86VidModeGetPermissionsReq;
85#define sz_xXF86VidModeGetModeLineReq 8
86#define sz_xXF86VidModeGetAllModeLinesReq 8
87#define sz_xXF86VidModeGetMonitorReq 8
88#define sz_xXF86VidModeGetViewPortReq 8
89#define sz_xXF86VidModeGetDotClocksReq 8
90#define sz_xXF86VidModeGetPermissionsReq 8
91
92typedef struct {
93 BYTE type; /* X_Reply */
94 BOOL pad1;
95 CARD16 sequenceNumber B16;
96 CARD32 length B32;
97 CARD32 dotclock B32;
98 CARD16 hdisplay B16;
99 CARD16 hsyncstart B16;
100 CARD16 hsyncend B16;
101 CARD16 htotal B16;
102 CARD16 hskew B16;
103 CARD16 vdisplay B16;
104 CARD16 vsyncstart B16;
105 CARD16 vsyncend B16;
106 CARD16 vtotal B16;
107 CARD16 pad2 B16;
108 CARD32 flags B32;
109 CARD32 reserved1 B32;
110 CARD32 reserved2 B32;
111 CARD32 reserved3 B32;
112 CARD32 privsize B32;
113} xXF86VidModeGetModeLineReply;
114#define sz_xXF86VidModeGetModeLineReply 52
115
116/* 0.x version */
117typedef struct {
118 BYTE type; /* X_Reply */
119 BOOL pad1;
120 CARD16 sequenceNumber B16;
121 CARD32 length B32;
122 CARD32 dotclock B32;
123 CARD16 hdisplay B16;
124 CARD16 hsyncstart B16;
125 CARD16 hsyncend B16;
126 CARD16 htotal B16;
127 CARD16 vdisplay B16;
128 CARD16 vsyncstart B16;
129 CARD16 vsyncend B16;
130 CARD16 vtotal B16;
131 CARD32 flags B32;
132 CARD32 privsize B32;
133} xXF86OldVidModeGetModeLineReply;
134#define sz_xXF86OldVidModeGetModeLineReply 36
135
136typedef struct {
137 CARD32 dotclock B32;
138 CARD16 hdisplay B16;
139 CARD16 hsyncstart B16;
140 CARD16 hsyncend B16;
141 CARD16 htotal B16;
142 CARD32 hskew B16;
143 CARD16 vdisplay B16;
144 CARD16 vsyncstart B16;
145 CARD16 vsyncend B16;
146 CARD16 vtotal B16;
147 CARD16 pad1 B16;
148 CARD32 flags B32;
149 CARD32 reserved1 B32;
150 CARD32 reserved2 B32;
151 CARD32 reserved3 B32;
152 CARD32 privsize B32;
153} xXF86VidModeModeInfo;
154
155/* 0.x version */
156typedef struct {
157 CARD32 dotclock B32;
158 CARD16 hdisplay B16;
159 CARD16 hsyncstart B16;
160 CARD16 hsyncend B16;
161 CARD16 htotal B16;
162 CARD16 vdisplay B16;
163 CARD16 vsyncstart B16;
164 CARD16 vsyncend B16;
165 CARD16 vtotal B16;
166 CARD32 flags B32;
167 CARD32 privsize B32;
168} xXF86OldVidModeModeInfo;
169
170typedef struct {
171 BYTE type; /* X_Reply */
172 BOOL pad1;
173 CARD16 sequenceNumber B16;
174 CARD32 length B32;
175 CARD32 modecount B32;
176 CARD32 pad2 B32;
177 CARD32 pad3 B32;
178 CARD32 pad4 B32;
179 CARD32 pad5 B32;
180 CARD32 pad6 B32;
181} xXF86VidModeGetAllModeLinesReply;
182#define sz_xXF86VidModeGetAllModeLinesReply 32
183
184typedef struct _XF86VidModeAddModeLine {
185 CARD8 reqType; /* always XF86VidModeReqCode */
186 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */
187 CARD16 length B16;
188 CARD32 screen B32; /* could be CARD16 but need the pad */
189 CARD32 dotclock B32;
190 CARD16 hdisplay B16;
191 CARD16 hsyncstart B16;
192 CARD16 hsyncend B16;
193 CARD16 htotal B16;
194 CARD16 hskew B16;
195 CARD16 vdisplay B16;
196 CARD16 vsyncstart B16;
197 CARD16 vsyncend B16;
198 CARD16 vtotal B16;
199 CARD16 pad1 B16;
200 CARD32 flags B32;
201 CARD32 reserved1 B32;
202 CARD32 reserved2 B32;
203 CARD32 reserved3 B32;
204 CARD32 privsize B32;
205 CARD32 after_dotclock B32;
206 CARD16 after_hdisplay B16;
207 CARD16 after_hsyncstart B16;
208 CARD16 after_hsyncend B16;
209 CARD16 after_htotal B16;
210 CARD16 after_hskew B16;
211 CARD16 after_vdisplay B16;
212 CARD16 after_vsyncstart B16;
213 CARD16 after_vsyncend B16;
214 CARD16 after_vtotal B16;
215 CARD16 pad2 B16;
216 CARD32 after_flags B32;
217 CARD32 reserved4 B32;
218 CARD32 reserved5 B32;
219 CARD32 reserved6 B32;
220} xXF86VidModeAddModeLineReq;
221#define sz_xXF86VidModeAddModeLineReq 92
222
223/* 0.x version */
224typedef struct _XF86OldVidModeAddModeLine {
225 CARD8 reqType; /* always XF86VidModeReqCode */
226 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */
227 CARD16 length B16;
228 CARD32 screen B32; /* could be CARD16 but need the pad */
229 CARD32 dotclock B32;
230 CARD16 hdisplay B16;
231 CARD16 hsyncstart B16;
232 CARD16 hsyncend B16;
233 CARD16 htotal B16;
234 CARD16 vdisplay B16;
235 CARD16 vsyncstart B16;
236 CARD16 vsyncend B16;
237 CARD16 vtotal B16;
238 CARD32 flags B32;
239 CARD32 privsize B32;
240 CARD32 after_dotclock B32;
241 CARD16 after_hdisplay B16;
242 CARD16 after_hsyncstart B16;
243 CARD16 after_hsyncend B16;
244 CARD16 after_htotal B16;
245 CARD16 after_vdisplay B16;
246 CARD16 after_vsyncstart B16;
247 CARD16 after_vsyncend B16;
248 CARD16 after_vtotal B16;
249 CARD32 after_flags B32;
250} xXF86OldVidModeAddModeLineReq;
251#define sz_xXF86OldVidModeAddModeLineReq 60
252
253typedef struct _XF86VidModeModModeLine {
254 CARD8 reqType; /* always XF86VidModeReqCode */
255 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeModModeLine */
256 CARD16 length B16;
257 CARD32 screen B32; /* could be CARD16 but need the pad */
258 CARD16 hdisplay B16;
259 CARD16 hsyncstart B16;
260 CARD16 hsyncend B16;
261 CARD16 htotal B16;
262 CARD16 hskew B16;
263 CARD16 vdisplay B16;
264 CARD16 vsyncstart B16;
265 CARD16 vsyncend B16;
266 CARD16 vtotal B16;
267 CARD16 pad1 B16;
268 CARD32 flags B32;
269 CARD32 reserved1 B32;
270 CARD32 reserved2 B32;
271 CARD32 reserved3 B32;
272 CARD32 privsize B32;
273} xXF86VidModeModModeLineReq;
274#define sz_xXF86VidModeModModeLineReq 48
275
276/* 0.x version */
277typedef struct _XF86OldVidModeModModeLine {
278 CARD8 reqType; /* always XF86OldVidModeReqCode */
279 CARD8 xf86vidmodeReqType; /* always X_XF86OldVidModeModModeLine */
280 CARD16 length B16;
281 CARD32 screen B32; /* could be CARD16 but need the pad */
282 CARD16 hdisplay B16;
283 CARD16 hsyncstart B16;
284 CARD16 hsyncend B16;
285 CARD16 htotal B16;
286 CARD16 vdisplay B16;
287 CARD16 vsyncstart B16;
288 CARD16 vsyncend B16;
289 CARD16 vtotal B16;
290 CARD32 flags B32;
291 CARD32 privsize B32;
292} xXF86OldVidModeModModeLineReq;
293#define sz_xXF86OldVidModeModModeLineReq 32
294
295typedef struct _XF86VidModeValidateModeLine {
296 CARD8 reqType; /* always XF86VidModeReqCode */
297 CARD8 xf86vidmodeReqType;
298 CARD16 length B16;
299 CARD32 screen B32; /* could be CARD16 but need the pad */
300 CARD32 dotclock B32;
301 CARD16 hdisplay B16;
302 CARD16 hsyncstart B16;
303 CARD16 hsyncend B16;
304 CARD16 htotal B16;
305 CARD16 hskew B16;
306 CARD16 vdisplay B16;
307 CARD16 vsyncstart B16;
308 CARD16 vsyncend B16;
309 CARD16 vtotal B16;
310 CARD16 pad1 B16;
311 CARD32 flags B32;
312 CARD32 reserved1 B32;
313 CARD32 reserved2 B32;
314 CARD32 reserved3 B32;
315 CARD32 privsize B32;
316} xXF86VidModeDeleteModeLineReq,
317 xXF86VidModeValidateModeLineReq,
318 xXF86VidModeSwitchToModeReq;
319#define sz_xXF86VidModeDeleteModeLineReq 52
320#define sz_xXF86VidModeValidateModeLineReq 52
321#define sz_xXF86VidModeSwitchToModeReq 52
322
323/* 0.x version */
324typedef struct _XF86OldVidModeValidateModeLine {
325 CARD8 reqType; /* always XF86OldVidModeReqCode */
326 CARD8 xf86vidmodeReqType;
327 CARD16 length B16;
328 CARD32 screen B32; /* could be CARD16 but need the pad */
329 CARD32 dotclock B32;
330 CARD16 hdisplay B16;
331 CARD16 hsyncstart B16;
332 CARD16 hsyncend B16;
333 CARD16 htotal B16;
334 CARD16 vdisplay B16;
335 CARD16 vsyncstart B16;
336 CARD16 vsyncend B16;
337 CARD16 vtotal B16;
338 CARD32 flags B32;
339 CARD32 privsize B32;
340} xXF86OldVidModeDeleteModeLineReq,
341 xXF86OldVidModeValidateModeLineReq,
342 xXF86OldVidModeSwitchToModeReq;
343#define sz_xXF86OldVidModeDeleteModeLineReq 36
344#define sz_xXF86OldVidModeValidateModeLineReq 36
345#define sz_xXF86OldVidModeSwitchToModeReq 36
346
347typedef struct _XF86VidModeSwitchMode {
348 CARD8 reqType; /* always XF86VidModeReqCode */
349 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSwitchMode */
350 CARD16 length B16;
351 CARD16 screen B16;
352 CARD16 zoom B16;
353} xXF86VidModeSwitchModeReq;
354#define sz_xXF86VidModeSwitchModeReq 8
355
356typedef struct _XF86VidModeLockModeSwitch {
357 CARD8 reqType; /* always XF86VidModeReqCode */
358 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeLockModeSwitch */
359 CARD16 length B16;
360 CARD16 screen B16;
361 CARD16 lock B16;
362} xXF86VidModeLockModeSwitchReq;
363#define sz_xXF86VidModeLockModeSwitchReq 8
364
365typedef struct {
366 BYTE type; /* X_Reply */
367 BOOL pad1;
368 CARD16 sequenceNumber B16;
369 CARD32 length B32;
370 CARD32 status B32;
371 CARD32 pad2 B32;
372 CARD32 pad3 B32;
373 CARD32 pad4 B32;
374 CARD32 pad5 B32;
375 CARD32 pad6 B32;
376} xXF86VidModeValidateModeLineReply;
377#define sz_xXF86VidModeValidateModeLineReply 32
378
379typedef struct {
380 BYTE type; /* X_Reply */
381 BOOL pad1;
382 CARD16 sequenceNumber B16;
383 CARD32 length B32;
384 CARD8 vendorLength;
385 CARD8 modelLength;
386 CARD8 nhsync;
387 CARD8 nvsync;
388 CARD32 pad2 B32;
389 CARD32 pad3 B32;
390 CARD32 pad4 B32;
391 CARD32 pad5 B32;
392 CARD32 pad6 B32;
393} xXF86VidModeGetMonitorReply;
394#define sz_xXF86VidModeGetMonitorReply 32
395
396typedef struct {
397 BYTE type;
398 BOOL pad1;
399 CARD16 sequenceNumber B16;
400 CARD32 length B32;
401 CARD32 x B32;
402 CARD32 y B32;
403 CARD32 pad2 B32;
404 CARD32 pad3 B32;
405 CARD32 pad4 B32;
406 CARD32 pad5 B32;
407} xXF86VidModeGetViewPortReply;
408#define sz_xXF86VidModeGetViewPortReply 32
409
410typedef struct _XF86VidModeSetViewPort {
411 CARD8 reqType; /* always VidModeReqCode */
412 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSetViewPort */
413 CARD16 length B16;
414 CARD16 screen B16;
415 CARD16 pad B16;
416 CARD32 x B32;
417 CARD32 y B32;
418} xXF86VidModeSetViewPortReq;
419#define sz_xXF86VidModeSetViewPortReq 16
420
421typedef struct {
422 BYTE type;
423 BOOL pad1;
424 CARD16 sequenceNumber B16;
425 CARD32 length B32;
426 CARD32 flags B32;
427 CARD32 clocks B32;
428 CARD32 maxclocks B32;
429 CARD32 pad2 B32;
430 CARD32 pad3 B32;
431 CARD32 pad4 B32;
432} xXF86VidModeGetDotClocksReply;
433#define sz_xXF86VidModeGetDotClocksReply 32
434
435typedef struct _XF86VidModeSetClientVersion {
436 CARD8 reqType; /* always XF86VidModeReqCode */
437 CARD8 xf86vidmodeReqType;
438 CARD16 length B16;
439 CARD16 major B16;
440 CARD16 minor B16;
441} xXF86VidModeSetClientVersionReq;
442#define sz_xXF86VidModeSetClientVersionReq 8
443
444typedef struct _XF86VidModeGetGamma {
445 CARD8 reqType; /* always XF86VidModeReqCode */
446 CARD8 xf86vidmodeReqType;
447 CARD16 length B16;
448 CARD16 screen B16;
449 CARD16 pad B16;
450 CARD32 pad1 B32;
451 CARD32 pad2 B32;
452 CARD32 pad3 B32;
453 CARD32 pad4 B32;
454 CARD32 pad5 B32;
455 CARD32 pad6 B32;
456} xXF86VidModeGetGammaReq;
457#define sz_xXF86VidModeGetGammaReq 32
458
459typedef struct {
460 BYTE type;
461 BOOL pad;
462 CARD16 sequenceNumber B16;
463 CARD32 length B32;
464 CARD32 red B32;
465 CARD32 green B32;
466 CARD32 blue B32;
467 CARD32 pad1 B32;
468 CARD32 pad2 B32;
469 CARD32 pad3 B32;
470} xXF86VidModeGetGammaReply;
471#define sz_xXF86VidModeGetGammaReply 32
472
473typedef struct _XF86VidModeSetGamma {
474 CARD8 reqType; /* always XF86VidModeReqCode */
475 CARD8 xf86vidmodeReqType;
476 CARD16 length B16;
477 CARD16 screen B16;
478 CARD16 pad B16;
479 CARD32 red B32;
480 CARD32 green B32;
481 CARD32 blue B32;
482 CARD32 pad1 B32;
483 CARD32 pad2 B32;
484 CARD32 pad3 B32;
485} xXF86VidModeSetGammaReq;
486#define sz_xXF86VidModeSetGammaReq 32
487
488
489typedef struct _XF86VidModeSetGammaRamp {
490 CARD8 reqType; /* always XF86VidModeReqCode */
491 CARD8 xf86vidmodeReqType;
492 CARD16 length B16;
493 CARD16 screen B16;
494 CARD16 size B16;
495} xXF86VidModeSetGammaRampReq;
496#define sz_xXF86VidModeSetGammaRampReq 8
497
498typedef struct _XF86VidModeGetGammaRamp {
499 CARD8 reqType; /* always XF86VidModeReqCode */
500 CARD8 xf86vidmodeReqType;
501 CARD16 length B16;
502 CARD16 screen B16;
503 CARD16 size B16;
504} xXF86VidModeGetGammaRampReq;
505#define sz_xXF86VidModeGetGammaRampReq 8
506
507typedef struct {
508 BYTE type;
509 BOOL pad;
510 CARD16 sequenceNumber B16;
511 CARD32 length B32;
512 CARD16 size B16;
513 CARD16 pad0 B16;
514 CARD32 pad1 B32;
515 CARD32 pad2 B32;
516 CARD32 pad3 B32;
517 CARD32 pad4 B32;
518 CARD32 pad5 B32;
519} xXF86VidModeGetGammaRampReply;
520#define sz_xXF86VidModeGetGammaRampReply 32
521
522typedef struct _XF86VidModeGetGammaRampSize {
523 CARD8 reqType; /* always XF86VidModeReqCode */
524 CARD8 xf86vidmodeReqType;
525 CARD16 length B16;
526 CARD16 screen B16;
527 CARD16 pad B16;
528} xXF86VidModeGetGammaRampSizeReq;
529#define sz_xXF86VidModeGetGammaRampSizeReq 8
530
531typedef struct {
532 BYTE type;
533 BOOL pad;
534 CARD16 sequenceNumber B16;
535 CARD32 length B32;
536 CARD16 size B16;
537 CARD16 pad0 B16;
538 CARD32 pad1 B32;
539 CARD32 pad2 B32;
540 CARD32 pad3 B32;
541 CARD32 pad4 B32;
542 CARD32 pad5 B32;
543} xXF86VidModeGetGammaRampSizeReply;
544#define sz_xXF86VidModeGetGammaRampSizeReply 32
545
546typedef struct {
547 BYTE type;
548 BOOL pad;
549 CARD16 sequenceNumber B16;
550 CARD32 length B32;
551 CARD32 permissions B32;
552 CARD32 pad1 B32;
553 CARD32 pad2 B32;
554 CARD32 pad3 B32;
555 CARD32 pad4 B32;
556 CARD32 pad5 B32;
557} xXF86VidModeGetPermissionsReply;
558#define sz_xXF86VidModeGetPermissionsReply 32
559
560
561#endif /* _XF86VIDMODESTR_H_ */
562
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette