1 /* $XFree86: xc/include/extensions/xf86dgastr.h,v 3.14 2001/08/01 00:44:36 tsi Exp $ */
4 Copyright (c) 1995 Jon Tombs
5 Copyright (c) 1995 XFree86 Inc.
10 #define _XF86DGASTR_H_
12 #include "xf86dga1str.h"
14 #define XF86DGANAME "XFree86-DGA"
16 #define XDGA_MAJOR_VERSION 2 /* current version numbers */
17 #define XDGA_MINOR_VERSION 0
20 typedef struct _XDGAQueryVersion {
21 CARD8 reqType; /* always DGAReqCode */
22 CARD8 dgaReqType; /* always X_DGAQueryVersion */
24 } xXDGAQueryVersionReq;
25 #define sz_xXDGAQueryVersionReq 4
28 BYTE type; /* X_Reply */
30 CARD16 sequenceNumber B16;
32 CARD16 majorVersion B16; /* major version of DGA protocol */
33 CARD16 minorVersion B16; /* minor version of DGA protocol */
39 } xXDGAQueryVersionReply;
40 #define sz_xXDGAQueryVersionReply 32
42 typedef struct _XDGAQueryModes {
48 #define sz_xXDGAQueryModesReq 8
51 BYTE type; /* X_Reply */
53 CARD16 sequenceNumber B16;
55 CARD32 number B32; /* number of modes available */
61 } xXDGAQueryModesReply;
62 #define sz_xXDGAQueryModesReply 32
65 typedef struct _XDGASetMode {
70 CARD32 mode B32; /* mode number to init */
71 CARD32 pid B32; /* Pixmap descriptor */
73 #define sz_xXDGASetModeReq 16
76 BYTE type; /* X_Reply */
78 CARD16 sequenceNumber B16;
80 CARD32 offset B32; /* offset into framebuffer map */
87 #define sz_xXDGASetModeReply 32
98 CARD16 image_width B16;
99 CARD16 image_height B16;
100 CARD16 pixmap_width B16;
101 CARD16 pixmap_height B16;
102 CARD32 bytes_per_scanline B32;
104 CARD32 green_mask B32;
105 CARD32 blue_mask B32;
106 CARD16 visual_class B16;
108 CARD16 viewport_width B16;
109 CARD16 viewport_height B16;
110 CARD16 viewport_xstep B16;
111 CARD16 viewport_ystep B16;
112 CARD16 viewport_xmax B16;
113 CARD16 viewport_ymax B16;
114 CARD32 viewport_flags B32;
115 CARD32 reserved1 B32;
116 CARD32 reserved2 B32;
118 #define sz_xXDGAModeInfo 72
120 typedef struct _XDGAOpenFramebuffer {
125 } xXDGAOpenFramebufferReq;
126 #define sz_xXDGAOpenFramebufferReq 8
129 BYTE type; /* X_Reply */
131 CARD16 sequenceNumber B16;
132 CARD32 length B32; /* device name size if there is one */
133 CARD32 mem1 B32; /* physical memory */
134 CARD32 mem2 B32; /* spillover for _alpha_ */
135 CARD32 size B32; /* size of map in bytes */
136 CARD32 offset B32; /* optional offset into device */
137 CARD32 extra B32; /* extra info associated with the map */
139 } xXDGAOpenFramebufferReply;
140 #define sz_xXDGAOpenFramebufferReply 32
143 typedef struct _XDGACloseFramebuffer {
148 } xXDGACloseFramebufferReq;
149 #define sz_xXDGACloseFramebufferReq 8
152 typedef struct _XDGASetViewport {
160 } xXDGASetViewportReq;
161 #define sz_xXDGASetViewportReq 16
164 typedef struct _XDGAInstallColormap {
170 } xXDGAInstallColormapReq;
171 #define sz_xXDGAInstallColormapReq 12
173 typedef struct _XDGASelectInput {
179 } xXDGASelectInputReq;
180 #define sz_xXDGASelectInputReq 12
182 typedef struct _XDGAFillRectangle {
192 } xXDGAFillRectangleReq;
193 #define sz_xXDGAFillRectangleReq 20
196 typedef struct _XDGACopyArea {
208 #define sz_xXDGACopyAreaReq 20
210 typedef struct _XDGACopyTransparentArea {
222 } xXDGACopyTransparentAreaReq;
223 #define sz_xXDGACopyTransparentAreaReq 24
226 typedef struct _XDGAGetViewportStatus {
231 } xXDGAGetViewportStatusReq;
232 #define sz_xXDGAGetViewportStatusReq 8
237 CARD16 sequenceNumber B16;
245 } xXDGAGetViewportStatusReply;
246 #define sz_xXDGAGetViewportStatusReply 32
248 typedef struct _XDGASync {
254 #define sz_xXDGASyncReq 8
259 CARD16 sequenceNumber B16;
268 #define sz_xXDGASyncReply 32
270 typedef struct _XDGASetClientVersion {
276 } xXDGASetClientVersionReq;
277 #define sz_xXDGASetClientVersionReq 8
288 } xXDGAChangePixmapModeReq;
289 #define sz_xXDGAChangePixmapModeReq 16
294 CARD16 sequenceNumber B16;
303 } xXDGAChangePixmapModeReply;
304 #define sz_xXDGAChangePixmapModeReply 32
306 typedef struct _XDGACreateColormap {
316 } xXDGACreateColormapReq;
317 #define sz_xXDGACreateColormapReq 20
325 CARD16 sequenceNumber B16;
343 #endif /* _XF86DGASTR_H_ */