2
Copyright (c) 1999 XFree86 Inc
4
/* $XFree86: xc/include/extensions/xf86dga.h,v 3.20 1999/10/13 04:20:48 dawes Exp $ */
9
#include <X11/Xfuncproto.h>
10
#include <X11/extensions/xf86dga1.h>
12
#define X_XDGAQueryVersion 0
14
/* 1 through 9 are in xf86dga1.h */
16
/* 10 and 11 are reserved to avoid conflicts with rogue DGA extensions */
18
#define X_XDGAQueryModes 12
19
#define X_XDGASetMode 13
20
#define X_XDGASetViewport 14
21
#define X_XDGAInstallColormap 15
22
#define X_XDGASelectInput 16
23
#define X_XDGAFillRectangle 17
24
#define X_XDGACopyArea 18
25
#define X_XDGACopyTransparentArea 19
26
#define X_XDGAGetViewportStatus 20
28
#define X_XDGAOpenFramebuffer 22
29
#define X_XDGACloseFramebuffer 23
30
#define X_XDGASetClientVersion 24
31
#define X_XDGAChangePixmapMode 25
32
#define X_XDGACreateColormap 26
35
#define XDGAConcurrentAccess 0x00000001
36
#define XDGASolidFillRect 0x00000002
37
#define XDGABlitRect 0x00000004
38
#define XDGABlitTransRect 0x00000008
39
#define XDGAPixmap 0x00000010
41
#define XDGAInterlaced 0x00010000
42
#define XDGADoublescan 0x00020000
44
#define XDGAFlipImmediate 0x00000001
45
#define XDGAFlipRetrace 0x00000002
47
#define XDGANeedRoot 0x00000001
49
#define XF86DGANumberEvents 7
51
#define XDGAPixmapModeLarge 0
52
#define XDGAPixmapModeSmall 1
54
#define XF86DGAClientNotLocal 0
55
#define XF86DGANoDirectVideoMode 1
56
#define XF86DGAScreenNotActive 2
57
#define XF86DGADirectNotActivated 3
58
#define XF86DGAOperationNotSupported 4
59
#define XF86DGANumberErrors (XF86DGAOperationNotSupported + 1)
63
int num; /* A unique identifier for the mode (num > 0) */
64
char *name; /* name of mode given in the XF86Config */
65
float verticalRefresh;
66
int flags; /* DGA_CONCURRENT_ACCESS, etc... */
67
int imageWidth; /* linear accessible portion (pixels) */
69
int pixmapWidth; /* Xlib accessible portion (pixels) */
70
int pixmapHeight; /* both fields ignored if no concurrent access */
72
int byteOrder; /* MSBFirst, LSBFirst */
75
unsigned long redMask;
76
unsigned long greenMask;
77
unsigned long blueMask;
81
int xViewportStep; /* viewport position granularity */
83
int maxViewportX; /* max viewport origin */
85
int viewportFlags; /* types of page flipping possible */
98
#ifndef _XF86DGA_SERVER_
103
unsigned long serial;
113
unsigned long serial;
118
unsigned int keycode;
123
unsigned long serial;
134
XDGAButtonEvent xbutton;
136
XDGAMotionEvent xmotion;
140
Bool XDGAQueryExtension(
146
Bool XDGAQueryVersion(
152
XDGAMode* XDGAQueryModes(
158
XDGADevice* XDGASetMode(
164
Bool XDGAOpenFramebuffer(
169
void XDGACloseFramebuffer(
174
void XDGASetViewport(
182
void XDGAInstallColormap(
188
Colormap XDGACreateColormap(
195
void XDGASelectInput(
201
void XDGAFillRectangle(
224
void XDGACopyTransparentArea(
236
int XDGAGetViewportStatus(
246
Bool XDGASetClientVersion(
250
void XDGAChangePixmapMode(
259
void XDGAKeyEventToXKeyEvent(XDGAKeyEvent* dk, XKeyEvent* xk);
263
#endif /* _XF86DGA_SERVER_ */
264
#endif /* _XF86DGA_H_ */