1 /* $XFree86: xc/include/extensions/xf86vmstr.h,v 3.18.2.1 1997/05/25 14:13:37 dawes Exp $ */
4 Copyright (c) 1995 Kaleb S. KEITHLEY
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files (the
8 "Software"), to deal in the Software without restriction, including
9 without limitation the rights to use, copy, modify, merge, publish,
10 distribute, sublicense, and/or sell copies of the Software, and to
11 permit persons to whom the Software is furnished to do so, subject to
12 the following conditions:
14 The above copyright notice and this permission notice shall be
15 included in all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 IN NO EVENT SHALL Kaleb S. KEITHLEY BE LIABLE FOR ANY CLAIM, DAMAGES
21 OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
22 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23 OTHER DEALINGS IN THE SOFTWARE.
25 Except as contained in this notice, the name of Kaleb S. KEITHLEY
26 shall not be used in advertising or otherwise to promote the sale, use
27 or other dealings in this Software without prior written authorization
28 from Kaleb S. KEITHLEY
31 /* $XConsortium: xf86vmstr.h /main/10 1996/10/26 21:38:17 kaleb $ */
33 /* THIS IS NOT AN X CONSORTIUM STANDARD */
35 #ifndef _XF86VIDMODESTR_H_
36 #define _XF86VIDMODESTR_H_
38 #include "xf86vmode.h"
40 #define XF86VIDMODENAME "XFree86-VidModeExtension"
42 #define XF86VIDMODE_MAJOR_VERSION 0 /* current version numbers */
43 #define XF86VIDMODE_MINOR_VERSION 8
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
50 typedef struct _XF86VidModeQueryVersion {
51 CARD8 reqType; /* always XF86VidModeReqCode */
52 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeQueryVersion */
54 } xXF86VidModeQueryVersionReq;
55 #define sz_xXF86VidModeQueryVersionReq 4
58 BYTE type; /* X_Reply */
60 CARD16 sequenceNumber B16;
62 CARD16 majorVersion B16; /* major version of XF86VidMode */
63 CARD16 minorVersion B16; /* minor version of XF86VidMode */
69 } xXF86VidModeQueryVersionReply;
70 #define sz_xXF86VidModeQueryVersionReply 32
72 typedef struct _XF86VidModeGetModeLine {
73 CARD8 reqType; /* always XF86VidModeReqCode */
74 CARD8 xf86vidmodeReqType;
78 } xXF86VidModeGetModeLineReq,
79 xXF86VidModeGetAllModeLinesReq,
80 xXF86VidModeGetMonitorReq,
81 xXF86VidModeGetViewPortReq;
82 #define sz_xXF86VidModeGetModeLineReq 8
83 #define sz_xXF86VidModeGetAllModeLinesReq 8
84 #define sz_xXF86VidModeGetMonitorReq 8
85 #define sz_xXF86VidModeGetViewPortReq 8
88 BYTE type; /* X_Reply */
90 CARD16 sequenceNumber B16;
94 CARD16 hsyncstart B16;
98 CARD16 vsyncstart B16;
103 } xXF86VidModeGetModeLineReply;
104 #define sz_xXF86VidModeGetModeLineReply 36
109 CARD16 hsyncstart B16;
113 CARD16 vsyncstart B16;
118 } xXF86VidModeModeInfo;
121 BYTE type; /* X_Reply */
123 CARD16 sequenceNumber B16;
125 CARD32 modecount B32;
131 } xXF86VidModeGetAllModeLinesReply;
132 #define sz_xXF86VidModeGetAllModeLinesReply 32
134 typedef struct _XF86VidModeAddModeLine {
135 CARD8 reqType; /* always XF86VidModeReqCode */
136 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeAddMode */
138 CARD32 screen B32; /* could be CARD16 but need the pad */
141 CARD16 hsyncstart B16;
145 CARD16 vsyncstart B16;
150 CARD32 after_dotclock B32;
151 CARD16 after_hdisplay B16;
152 CARD16 after_hsyncstart B16;
153 CARD16 after_hsyncend B16;
154 CARD16 after_htotal B16;
155 CARD16 after_vdisplay B16;
156 CARD16 after_vsyncstart B16;
157 CARD16 after_vsyncend B16;
158 CARD16 after_vtotal B16;
159 CARD32 after_flags B32;
160 } xXF86VidModeAddModeLineReq;
161 #define sz_xXF86VidModeAddModeLineReq 60
163 typedef struct _XF86VidModeModModeLine {
164 CARD8 reqType; /* always XF86VidModeReqCode */
165 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeModModeLine */
167 CARD32 screen B32; /* could be CARD16 but need the pad */
169 CARD16 hsyncstart B16;
173 CARD16 vsyncstart B16;
178 } xXF86VidModeModModeLineReq;
179 #define sz_xXF86VidModeModModeLineReq 32
181 typedef struct _XF86VidModeValidateModeLine {
182 CARD8 reqType; /* always XF86VidModeReqCode */
183 CARD8 xf86vidmodeReqType;
185 CARD32 screen B32; /* could be CARD16 but need the pad */
188 CARD16 hsyncstart B16;
192 CARD16 vsyncstart B16;
197 } xXF86VidModeDeleteModeLineReq,
198 xXF86VidModeValidateModeLineReq,
199 xXF86VidModeSwitchToModeReq;
200 #define sz_xXF86VidModeDeleteModeLineReq 36
201 #define sz_xXF86VidModeValidateModeLineReq 36
202 #define sz_xXF86VidModeSwitchToModeReq 36
204 typedef struct _XF86VidModeSwitchMode {
205 CARD8 reqType; /* always XF86VidModeReqCode */
206 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSwitchMode */
210 } xXF86VidModeSwitchModeReq;
211 #define sz_xXF86VidModeSwitchModeReq 8
213 typedef struct _XF86VidModeLockModeSwitch {
214 CARD8 reqType; /* always XF86VidModeReqCode */
215 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeLockModeSwitch */
219 } xXF86VidModeLockModeSwitchReq;
220 #define sz_xXF86VidModeLockModeSwitchReq 8
223 BYTE type; /* X_Reply */
225 CARD16 sequenceNumber B16;
233 } xXF86VidModeValidateModeLineReply;
234 #define sz_xXF86VidModeValidateModeLineReply 32
237 BYTE type; /* X_Reply */
239 CARD16 sequenceNumber B16;
250 } xXF86VidModeGetMonitorReply;
251 #define sz_xXF86VidModeGetMonitorReply 32
256 CARD16 sequenceNumber B16;
264 } xXF86VidModeGetViewPortReply;
265 #define sz_xXF86VidModeGetViewPortReply 32
267 typedef struct _XF86VidModeSetViewPort {
268 CARD8 reqType; /* always VidModeReqCode */
269 CARD8 xf86vidmodeReqType; /* always X_XF86VidModeSetViewPort */
275 } xXF86VidModeSetViewPortReq;
276 #define sz_xXF86VidModeSetViewPortReq 16
278 #endif /* _XF86VIDMODESTR_H_ */