1 /* $XFree86: xc/include/extensions/xf86dga1str.h,v 1.2 1999/05/03 12:15:37 dawes Exp $ */
4 Copyright (c) 1995 Jon Tombs
5 Copyright (c) 1995 XFree86 Inc.
9 #ifndef _XF86DGASTR1_H_
10 #define _XF86DGASTR1_H_
12 typedef struct _XF86DGAQueryVersion {
13 CARD8 reqType; /* always DGAReqCode */
14 CARD8 dgaReqType; /* always X_DGAQueryVersion */
16 } xXF86DGAQueryVersionReq;
17 #define sz_xXF86DGAQueryVersionReq 4
20 BYTE type; /* X_Reply */
22 CARD16 sequenceNumber B16;
24 CARD16 majorVersion B16; /* major version of DGA protocol */
25 CARD16 minorVersion B16; /* minor version of DGA protocol */
31 } xXF86DGAQueryVersionReply;
32 #define sz_xXF86DGAQueryVersionReply 32
34 typedef struct _XF86DGAGetVideoLL {
35 CARD8 reqType; /* always DGAReqCode */
36 CARD8 dgaReqType; /* always X_XF86DGAGetVideoLL */
40 } xXF86DGAGetVideoLLReq;
41 #define sz_xXF86DGAGetVideoLLReq 8
43 typedef struct _XF86DGAInstallColormap{
49 CARD32 id B32; /* colormap. */
50 } xXF86DGAInstallColormapReq;
51 #define sz_xXF86DGAInstallColormapReq 12
57 CARD16 sequenceNumber B16;
65 } xXF86DGAGetVideoLLReply;
66 #define sz_xXF86DGAGetVideoLLReply 32
68 typedef struct _XF86DGADirectVideo {
69 CARD8 reqType; /* always DGAReqCode */
70 CARD8 dgaReqType; /* always X_XF86DGADirectVideo */
74 } xXF86DGADirectVideoReq;
75 #define sz_xXF86DGADirectVideoReq 8
78 typedef struct _XF86DGAGetViewPortSize {
79 CARD8 reqType; /* always DGAReqCode */
80 CARD8 dgaReqType; /* always X_XF86DGAGetViewPort */
84 } xXF86DGAGetViewPortSizeReq;
85 #define sz_xXF86DGAGetViewPortSizeReq 8
90 CARD16 sequenceNumber B16;
98 } xXF86DGAGetViewPortSizeReply;
99 #define sz_xXF86DGAGetViewPortSizeReply 32
101 typedef struct _XF86DGASetViewPort {
102 CARD8 reqType; /* always DGAReqCode */
103 CARD8 dgaReqType; /* always X_XF86DGASetViewPort */
109 } xXF86DGASetViewPortReq;
110 #define sz_xXF86DGASetViewPortReq 16
112 typedef struct _XF86DGAGetVidPage {
113 CARD8 reqType; /* always DGAReqCode */
114 CARD8 dgaReqType; /* always X_XF86DGAGetVidPage */
118 } xXF86DGAGetVidPageReq;
119 #define sz_xXF86DGAGetVidPageReq 8
124 CARD16 sequenceNumber B16;
132 } xXF86DGAGetVidPageReply;
133 #define sz_xXF86DGAGetVidPageReply 32
136 typedef struct _XF86DGASetVidPage {
137 CARD8 reqType; /* always DGAReqCode */
138 CARD8 dgaReqType; /* always X_XF86DGASetVidPage */
142 } xXF86DGASetVidPageReq;
143 #define sz_xXF86DGASetVidPageReq 8
146 typedef struct _XF86DGAQueryDirectVideo {
147 CARD8 reqType; /* always DGAReqCode */
148 CARD8 dgaReqType; /* always X_DGAQueryVersion */
152 } xXF86DGAQueryDirectVideoReq;
153 #define sz_xXF86DGAQueryDirectVideoReq 8
158 CARD16 sequenceNumber B16;
166 } xXF86DGAQueryDirectVideoReply;
167 #define sz_xXF86DGAQueryDirectVideoReply 32
170 typedef struct _XF86DGAViewPortChanged {
171 CARD8 reqType; /* always DGAReqCode */
172 CARD8 dgaReqType; /* always X_DGAQueryVersion */
176 } xXF86DGAViewPortChangedReq;
177 #define sz_xXF86DGAViewPortChangedReq 8
182 CARD16 sequenceNumber B16;
190 } xXF86DGAViewPortChangedReply;
191 #define sz_xXF86DGAViewPortChangedReply 32
193 #endif /* _XF86DGASTR1_H_ */