comparison src/video/Xext/extensions/xf86dga1str.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 eadc0746dfaf
children
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
7 */ 7 */
8 8
9 #ifndef _XF86DGASTR1_H_ 9 #ifndef _XF86DGASTR1_H_
10 #define _XF86DGASTR1_H_ 10 #define _XF86DGASTR1_H_
11 11
12 typedef struct _XF86DGAQueryVersion { 12 typedef struct _XF86DGAQueryVersion
13 CARD8 reqType; /* always DGAReqCode */ 13 {
14 CARD8 dgaReqType; /* always X_DGAQueryVersion */ 14 CARD8 reqType; /* always DGAReqCode */
15 CARD16 length B16; 15 CARD8 dgaReqType; /* always X_DGAQueryVersion */
16 CARD16 length B16;
16 } xXF86DGAQueryVersionReq; 17 } xXF86DGAQueryVersionReq;
17 #define sz_xXF86DGAQueryVersionReq 4 18 #define sz_xXF86DGAQueryVersionReq 4
18 19
19 typedef struct { 20 typedef struct
20 BYTE type; /* X_Reply */ 21 {
21 BOOL pad1; 22 BYTE type; /* X_Reply */
22 CARD16 sequenceNumber B16; 23 BOOL pad1;
23 CARD32 length B32; 24 CARD16 sequenceNumber B16;
24 CARD16 majorVersion B16; /* major version of DGA protocol */ 25 CARD32 length B32;
25 CARD16 minorVersion B16; /* minor version of DGA protocol */ 26 CARD16 majorVersion B16; /* major version of DGA protocol */
26 CARD32 pad2 B32; 27 CARD16 minorVersion B16; /* minor version of DGA protocol */
27 CARD32 pad3 B32; 28 CARD32 pad2 B32;
28 CARD32 pad4 B32; 29 CARD32 pad3 B32;
29 CARD32 pad5 B32; 30 CARD32 pad4 B32;
30 CARD32 pad6 B32; 31 CARD32 pad5 B32;
32 CARD32 pad6 B32;
31 } xXF86DGAQueryVersionReply; 33 } xXF86DGAQueryVersionReply;
32 #define sz_xXF86DGAQueryVersionReply 32 34 #define sz_xXF86DGAQueryVersionReply 32
33 35
34 typedef struct _XF86DGAGetVideoLL { 36 typedef struct _XF86DGAGetVideoLL
35 CARD8 reqType; /* always DGAReqCode */ 37 {
36 CARD8 dgaReqType; /* always X_XF86DGAGetVideoLL */ 38 CARD8 reqType; /* always DGAReqCode */
37 CARD16 length B16; 39 CARD8 dgaReqType; /* always X_XF86DGAGetVideoLL */
38 CARD16 screen B16; 40 CARD16 length B16;
39 CARD16 pad B16; 41 CARD16 screen B16;
42 CARD16 pad B16;
40 } xXF86DGAGetVideoLLReq; 43 } xXF86DGAGetVideoLLReq;
41 #define sz_xXF86DGAGetVideoLLReq 8 44 #define sz_xXF86DGAGetVideoLLReq 8
42 45
43 typedef struct _XF86DGAInstallColormap{ 46 typedef struct _XF86DGAInstallColormap
44 CARD8 reqType; 47 {
45 CARD8 dgaReqType; 48 CARD8 reqType;
46 CARD16 length B16; 49 CARD8 dgaReqType;
47 CARD16 screen B16; 50 CARD16 length B16;
48 CARD16 pad2; 51 CARD16 screen B16;
49 CARD32 id B32; /* colormap. */ 52 CARD16 pad2;
53 CARD32 id B32; /* colormap. */
50 } xXF86DGAInstallColormapReq; 54 } xXF86DGAInstallColormapReq;
51 #define sz_xXF86DGAInstallColormapReq 12 55 #define sz_xXF86DGAInstallColormapReq 12
52 56
53 57
54 typedef struct { 58 typedef struct
55 BYTE type; 59 {
56 BOOL pad1; 60 BYTE type;
57 CARD16 sequenceNumber B16; 61 BOOL pad1;
58 CARD32 length B32; 62 CARD16 sequenceNumber B16;
59 CARD32 offset B32; 63 CARD32 length B32;
60 CARD32 width B32; 64 CARD32 offset B32;
61 CARD32 bank_size B32; 65 CARD32 width B32;
62 CARD32 ram_size B32; 66 CARD32 bank_size B32;
63 CARD32 pad4 B32; 67 CARD32 ram_size B32;
64 CARD32 pad5 B32; 68 CARD32 pad4 B32;
69 CARD32 pad5 B32;
65 } xXF86DGAGetVideoLLReply; 70 } xXF86DGAGetVideoLLReply;
66 #define sz_xXF86DGAGetVideoLLReply 32 71 #define sz_xXF86DGAGetVideoLLReply 32
67 72
68 typedef struct _XF86DGADirectVideo { 73 typedef struct _XF86DGADirectVideo
69 CARD8 reqType; /* always DGAReqCode */ 74 {
70 CARD8 dgaReqType; /* always X_XF86DGADirectVideo */ 75 CARD8 reqType; /* always DGAReqCode */
71 CARD16 length B16; 76 CARD8 dgaReqType; /* always X_XF86DGADirectVideo */
72 CARD16 screen B16; 77 CARD16 length B16;
73 CARD16 enable B16; 78 CARD16 screen B16;
79 CARD16 enable B16;
74 } xXF86DGADirectVideoReq; 80 } xXF86DGADirectVideoReq;
75 #define sz_xXF86DGADirectVideoReq 8 81 #define sz_xXF86DGADirectVideoReq 8
76 82
77 83
78 typedef struct _XF86DGAGetViewPortSize { 84 typedef struct _XF86DGAGetViewPortSize
79 CARD8 reqType; /* always DGAReqCode */ 85 {
80 CARD8 dgaReqType; /* always X_XF86DGAGetViewPort */ 86 CARD8 reqType; /* always DGAReqCode */
81 CARD16 length B16; 87 CARD8 dgaReqType; /* always X_XF86DGAGetViewPort */
82 CARD16 screen B16; 88 CARD16 length B16;
83 CARD16 pad B16; 89 CARD16 screen B16;
90 CARD16 pad B16;
84 } xXF86DGAGetViewPortSizeReq; 91 } xXF86DGAGetViewPortSizeReq;
85 #define sz_xXF86DGAGetViewPortSizeReq 8 92 #define sz_xXF86DGAGetViewPortSizeReq 8
86 93
87 typedef struct { 94 typedef struct
88 BYTE type; 95 {
89 BOOL pad1; 96 BYTE type;
90 CARD16 sequenceNumber B16; 97 BOOL pad1;
91 CARD32 length B32; 98 CARD16 sequenceNumber B16;
92 CARD32 width B32; 99 CARD32 length B32;
93 CARD32 height B32; 100 CARD32 width B32;
94 CARD32 pad2 B32; 101 CARD32 height B32;
95 CARD32 pad3 B32; 102 CARD32 pad2 B32;
96 CARD32 pad4 B32; 103 CARD32 pad3 B32;
97 CARD32 pad5 B32; 104 CARD32 pad4 B32;
105 CARD32 pad5 B32;
98 } xXF86DGAGetViewPortSizeReply; 106 } xXF86DGAGetViewPortSizeReply;
99 #define sz_xXF86DGAGetViewPortSizeReply 32 107 #define sz_xXF86DGAGetViewPortSizeReply 32
100 108
101 typedef struct _XF86DGASetViewPort { 109 typedef struct _XF86DGASetViewPort
102 CARD8 reqType; /* always DGAReqCode */ 110 {
103 CARD8 dgaReqType; /* always X_XF86DGASetViewPort */ 111 CARD8 reqType; /* always DGAReqCode */
104 CARD16 length B16; 112 CARD8 dgaReqType; /* always X_XF86DGASetViewPort */
105 CARD16 screen B16; 113 CARD16 length B16;
106 CARD16 pad B16; 114 CARD16 screen B16;
107 CARD32 x B32; 115 CARD16 pad B16;
108 CARD32 y B32; 116 CARD32 x B32;
117 CARD32 y B32;
109 } xXF86DGASetViewPortReq; 118 } xXF86DGASetViewPortReq;
110 #define sz_xXF86DGASetViewPortReq 16 119 #define sz_xXF86DGASetViewPortReq 16
111 120
112 typedef struct _XF86DGAGetVidPage { 121 typedef struct _XF86DGAGetVidPage
113 CARD8 reqType; /* always DGAReqCode */ 122 {
114 CARD8 dgaReqType; /* always X_XF86DGAGetVidPage */ 123 CARD8 reqType; /* always DGAReqCode */
115 CARD16 length B16; 124 CARD8 dgaReqType; /* always X_XF86DGAGetVidPage */
116 CARD16 screen B16; 125 CARD16 length B16;
117 CARD16 pad B16; 126 CARD16 screen B16;
127 CARD16 pad B16;
118 } xXF86DGAGetVidPageReq; 128 } xXF86DGAGetVidPageReq;
119 #define sz_xXF86DGAGetVidPageReq 8 129 #define sz_xXF86DGAGetVidPageReq 8
120 130
121 typedef struct { 131 typedef struct
122 BYTE type; 132 {
123 BOOL pad1; 133 BYTE type;
124 CARD16 sequenceNumber B16; 134 BOOL pad1;
125 CARD32 length B32; 135 CARD16 sequenceNumber B16;
126 CARD32 vpage B32; 136 CARD32 length B32;
127 CARD32 pad B32; 137 CARD32 vpage B32;
128 CARD32 pad2 B32; 138 CARD32 pad B32;
129 CARD32 pad3 B32; 139 CARD32 pad2 B32;
130 CARD32 pad4 B32; 140 CARD32 pad3 B32;
131 CARD32 pad5 B32; 141 CARD32 pad4 B32;
142 CARD32 pad5 B32;
132 } xXF86DGAGetVidPageReply; 143 } xXF86DGAGetVidPageReply;
133 #define sz_xXF86DGAGetVidPageReply 32 144 #define sz_xXF86DGAGetVidPageReply 32
134 145
135 146
136 typedef struct _XF86DGASetVidPage { 147 typedef struct _XF86DGASetVidPage
137 CARD8 reqType; /* always DGAReqCode */ 148 {
138 CARD8 dgaReqType; /* always X_XF86DGASetVidPage */ 149 CARD8 reqType; /* always DGAReqCode */
139 CARD16 length B16; 150 CARD8 dgaReqType; /* always X_XF86DGASetVidPage */
140 CARD16 screen B16; 151 CARD16 length B16;
141 CARD16 vpage B16; 152 CARD16 screen B16;
153 CARD16 vpage B16;
142 } xXF86DGASetVidPageReq; 154 } xXF86DGASetVidPageReq;
143 #define sz_xXF86DGASetVidPageReq 8 155 #define sz_xXF86DGASetVidPageReq 8
144 156
145 157
146 typedef struct _XF86DGAQueryDirectVideo { 158 typedef struct _XF86DGAQueryDirectVideo
147 CARD8 reqType; /* always DGAReqCode */ 159 {
148 CARD8 dgaReqType; /* always X_DGAQueryVersion */ 160 CARD8 reqType; /* always DGAReqCode */
149 CARD16 length B16; 161 CARD8 dgaReqType; /* always X_DGAQueryVersion */
150 CARD16 screen B16; 162 CARD16 length B16;
151 CARD16 pad B16; 163 CARD16 screen B16;
164 CARD16 pad B16;
152 } xXF86DGAQueryDirectVideoReq; 165 } xXF86DGAQueryDirectVideoReq;
153 #define sz_xXF86DGAQueryDirectVideoReq 8 166 #define sz_xXF86DGAQueryDirectVideoReq 8
154 167
155 typedef struct { 168 typedef struct
156 BYTE type; 169 {
157 BOOL pad1; 170 BYTE type;
158 CARD16 sequenceNumber B16; 171 BOOL pad1;
159 CARD32 length B32; 172 CARD16 sequenceNumber B16;
160 CARD32 flags B32; 173 CARD32 length B32;
161 CARD32 pad B32; 174 CARD32 flags B32;
162 CARD32 pad2 B32; 175 CARD32 pad B32;
163 CARD32 pad3 B32; 176 CARD32 pad2 B32;
164 CARD32 pad4 B32; 177 CARD32 pad3 B32;
165 CARD32 pad5 B32; 178 CARD32 pad4 B32;
179 CARD32 pad5 B32;
166 } xXF86DGAQueryDirectVideoReply; 180 } xXF86DGAQueryDirectVideoReply;
167 #define sz_xXF86DGAQueryDirectVideoReply 32 181 #define sz_xXF86DGAQueryDirectVideoReply 32
168 182
169 183
170 typedef struct _XF86DGAViewPortChanged { 184 typedef struct _XF86DGAViewPortChanged
171 CARD8 reqType; /* always DGAReqCode */ 185 {
172 CARD8 dgaReqType; /* always X_DGAQueryVersion */ 186 CARD8 reqType; /* always DGAReqCode */
173 CARD16 length B16; 187 CARD8 dgaReqType; /* always X_DGAQueryVersion */
174 CARD16 screen B16; 188 CARD16 length B16;
175 CARD16 n B16; 189 CARD16 screen B16;
190 CARD16 n B16;
176 } xXF86DGAViewPortChangedReq; 191 } xXF86DGAViewPortChangedReq;
177 #define sz_xXF86DGAViewPortChangedReq 8 192 #define sz_xXF86DGAViewPortChangedReq 8
178 193
179 typedef struct { 194 typedef struct
180 BYTE type; 195 {
181 BOOL pad1; 196 BYTE type;
182 CARD16 sequenceNumber B16; 197 BOOL pad1;
183 CARD32 length B32; 198 CARD16 sequenceNumber B16;
184 CARD32 result B32; 199 CARD32 length B32;
185 CARD32 pad B32; 200 CARD32 result B32;
186 CARD32 pad2 B32; 201 CARD32 pad B32;
187 CARD32 pad3 B32; 202 CARD32 pad2 B32;
188 CARD32 pad4 B32; 203 CARD32 pad3 B32;
189 CARD32 pad5 B32; 204 CARD32 pad4 B32;
205 CARD32 pad5 B32;
190 } xXF86DGAViewPortChangedReply; 206 } xXF86DGAViewPortChangedReply;
191 #define sz_xXF86DGAViewPortChangedReply 32 207 #define sz_xXF86DGAViewPortChangedReply 32
192 208
193 #endif /* _XF86DGASTR1_H_ */ 209 #endif /* _XF86DGASTR1_H_ */
194 210 /* vi: set ts=4 sw=4 expandtab: */