]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/xf86dgastr.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / include / extensions / xf86dgastr.h
1 /* $XFree86: xc/include/extensions/xf86dgastr.h,v 3.3 1996/10/18 14:57:25 dawes Exp $ */
2 /*
3
4 Copyright (c) 1995  Jon Tombs
5 Copyright (c) 1995  XFree86 Inc.
6
7 */
8
9 #ifndef _XF86DGASTR_H_
10 #define _XF86DGASTR_H_
11
12 #include "xf86dga.h"
13
14 #define XF86DGANAME "XFree86-DGA"
15
16 #define XF86DGA_MAJOR_VERSION   1       /* current version numbers */
17 #define XF86DGA_MINOR_VERSION   0
18
19 typedef struct _XF86DGAQueryVersion {
20     CARD8       reqType;                /* always DGAReqCode */
21     CARD8       dgaReqType;             /* always X_DGAQueryVersion */
22     CARD16      length B16;
23 } xXF86DGAQueryVersionReq;
24 #define sz_xXF86DGAQueryVersionReq      4
25
26 typedef struct {
27     BYTE        type;                   /* X_Reply */
28     BOOL        pad1;
29     CARD16      sequenceNumber B16;
30     CARD32      length B32;
31     CARD16      majorVersion B16;       /* major version of DGA protocol */
32     CARD16      minorVersion B16;       /* minor version of DGA protocol */
33     CARD32      pad2 B32;
34     CARD32      pad3 B32;
35     CARD32      pad4 B32;
36     CARD32      pad5 B32;
37     CARD32      pad6 B32;
38 } xXF86DGAQueryVersionReply;
39 #define sz_xXF86DGAQueryVersionReply    32
40
41 typedef struct _XF86DGAGetVideoLL {
42     CARD8       reqType;                /* always DGAReqCode */
43     CARD8       dgaReqType;             /* always X_XF86DGAGetVideoLL */
44     CARD16      length B16;
45     CARD16      screen B16;
46     CARD16      pad B16;
47 } xXF86DGAGetVideoLLReq;
48 #define sz_xXF86DGAGetVideoLLReq        8
49
50 typedef struct _XF86DGAInstallColormap{
51     CARD8       reqType;
52     CARD8       dgaReqType;
53     CARD16      length B16;
54     CARD16      screen B16;
55     CARD16      pad2; 
56     CARD32      id B32;  /* colormap. */
57 } xXF86DGAInstallColormapReq;
58 #define sz_xXF86DGAInstallColormapReq        12
59
60
61 typedef struct {
62     BYTE        type;
63     BOOL        pad1;
64     CARD16      sequenceNumber B16;
65     CARD32      length B32;
66     CARD32      offset B32;
67     CARD32      width B32;
68     CARD32      bank_size B32;
69     CARD32      ram_size B32;
70     CARD32      pad4 B32;
71     CARD32      pad5 B32;
72 } xXF86DGAGetVideoLLReply;
73 #define sz_xXF86DGAGetVideoLLReply      32
74
75 typedef struct _XF86DGADirectVideo {
76     CARD8       reqType;                /* always DGAReqCode */
77     CARD8       dgaReqType;             /* always X_XF86DGADirectVideo */
78     CARD16      length B16;
79     CARD16      screen B16;
80     CARD16      enable B16;
81 } xXF86DGADirectVideoReq;
82 #define sz_xXF86DGADirectVideoReq       8
83
84
85 typedef struct _XF86DGAGetViewPortSize {
86     CARD8       reqType;                /* always DGAReqCode */
87     CARD8       dgaReqType;             /* always X_XF86DGAGetViewPort */
88     CARD16      length B16;
89     CARD16      screen B16;
90     CARD16      pad B16;
91 } xXF86DGAGetViewPortSizeReq;
92 #define sz_xXF86DGAGetViewPortSizeReq   8
93
94 typedef struct {
95     BYTE        type;
96     BOOL        pad1;
97     CARD16      sequenceNumber B16;
98     CARD32      length B32;
99     CARD32      width B32;
100     CARD32      height B32;
101     CARD32      pad2 B32;
102     CARD32      pad3 B32;
103     CARD32      pad4 B32;
104     CARD32      pad5 B32;
105 } xXF86DGAGetViewPortSizeReply;
106 #define sz_xXF86DGAGetViewPortSizeReply 32
107
108 typedef struct _XF86DGASetViewPort {
109     CARD8       reqType;                /* always DGAReqCode */
110     CARD8       dgaReqType;             /* always X_XF86DGASetViewPort */
111     CARD16      length B16;
112     CARD16      screen B16;
113     CARD16      pad B16;
114     CARD32      x B32;
115     CARD32      y B32;
116 } xXF86DGASetViewPortReq;
117 #define sz_xXF86DGASetViewPortReq       16
118
119 typedef struct _XF86DGAGetVidPage {
120     CARD8       reqType;                /* always DGAReqCode */
121     CARD8       dgaReqType;             /* always X_XF86DGAGetVidPage */
122     CARD16      length B16;
123     CARD16      screen B16;
124     CARD16      pad B16;
125 } xXF86DGAGetVidPageReq;
126 #define sz_xXF86DGAGetVidPageReq        8
127
128 typedef struct {
129     BYTE        type;
130     BOOL        pad1;
131     CARD16      sequenceNumber B16;
132     CARD32      length B32;
133     CARD32      vpage B32;
134     CARD32      pad B32;
135     CARD32      pad2 B32;
136     CARD32      pad3 B32;
137     CARD32      pad4 B32;
138     CARD32      pad5 B32;
139 } xXF86DGAGetVidPageReply;
140 #define sz_xXF86DGAGetVidPageReply      32
141
142
143 typedef struct _XF86DGASetVidPage {
144     CARD8       reqType;                /* always DGAReqCode */
145     CARD8       dgaReqType;             /* always X_XF86DGASetVidPage */
146     CARD16      length B16;
147     CARD16      screen B16;
148     CARD16      vpage B16;
149 } xXF86DGASetVidPageReq;
150 #define sz_xXF86DGASetVidPageReq        8
151
152
153 typedef struct _XF86DGAQueryDirectVideo {
154     CARD8       reqType;                /* always DGAReqCode */
155     CARD8       dgaReqType;             /* always X_DGAQueryVersion */
156     CARD16      length B16;
157     CARD16      screen B16;
158     CARD16      pad B16;
159 } xXF86DGAQueryDirectVideoReq;
160 #define sz_xXF86DGAQueryDirectVideoReq  8
161
162 typedef struct {
163     BYTE        type;
164     BOOL        pad1;
165     CARD16      sequenceNumber B16;
166     CARD32      length B32;
167     CARD32      flags B32;
168     CARD32      pad B32;
169     CARD32      pad2 B32;
170     CARD32      pad3 B32;
171     CARD32      pad4 B32;
172     CARD32      pad5 B32;
173 } xXF86DGAQueryDirectVideoReply;
174 #define sz_xXF86DGAQueryDirectVideoReply 32
175
176
177 typedef struct _XF86DGAViewPortChanged {
178     CARD8       reqType;                /* always DGAReqCode */
179     CARD8       dgaReqType;             /* always X_DGAQueryVersion */
180     CARD16      length B16;
181     CARD16      screen B16;
182     CARD16      n B16;
183 } xXF86DGAViewPortChangedReq;
184 #define sz_xXF86DGAViewPortChangedReq   8
185
186 typedef struct {
187     BYTE        type;
188     BOOL        pad1;
189     CARD16      sequenceNumber B16;
190     CARD32      length B32;
191     CARD32      result B32;
192     CARD32      pad B32;
193     CARD32      pad2 B32;
194     CARD32      pad3 B32;
195     CARD32      pad4 B32;
196     CARD32      pad5 B32;
197 } xXF86DGAViewPortChangedReply;
198 #define sz_xXF86DGAViewPortChangedReply 32
199
200 #endif /* _XF86DGASTR_H_ */
201