1
/* $XFree86: xc/programs/Xserver/Xext/dgaproc.h,v 1.21 2000/06/30 19:06:54 keithp Exp $ */
9
#define DGA_CONCURRENT_ACCESS 0x00000001
10
#define DGA_FILL_RECT 0x00000002
11
#define DGA_BLIT_RECT 0x00000004
12
#define DGA_BLIT_RECT_TRANS 0x00000008
13
#define DGA_PIXMAP_AVAILABLE 0x00000010
15
#define DGA_INTERLACED 0x00010000
16
#define DGA_DOUBLESCAN 0x00020000
18
#define DGA_FLIP_IMMEDIATE 0x00000001
19
#define DGA_FLIP_RETRACE 0x00000002
21
#define DGA_COMPLETED 0x00000000
22
#define DGA_PENDING 0x00000001
24
#define DGA_NEED_ROOT 0x00000001
27
int num; /* A unique identifier for the mode (num > 0) */
28
char *name; /* name of mode given in the XF86Config */
31
int flags; /* DGA_CONCURRENT_ACCESS, etc... */
32
int imageWidth; /* linear accessible portion (pixels) */
34
int pixmapWidth; /* Xlib accessible portion (pixels) */
35
int pixmapHeight; /* both fields ignored if no concurrent access */
37
int byteOrder; /* MSBFirst, LSBFirst */
40
unsigned long red_mask;
41
unsigned long green_mask;
42
unsigned long blue_mask;
46
int xViewportStep; /* viewport position granularity */
48
int maxViewportX; /* max viewport origin */
50
int viewportFlags; /* types of page flipping possible */
54
} XDGAModeRec, *XDGAModePtr;
57
void XFree86DGAExtensionInit(void);
83
Bool DGAAvailable(int Index);
84
Bool DGAActive(int Index);
85
void DGAShutdown(void);
86
void DGAInstallCmap(ColormapPtr cmap);
87
int DGAGetViewportStatus(int Index);
88
int DGASync(int Index);
93
int x, int y, int w, int h,
121
int DGAGetModes(int Index);
122
int DGAGetOldDGAMode(int Index);
124
int DGAGetModeInfo(int Index, XDGAModePtr mode, int num);
126
Bool DGAVTSwitch(void);
127
Bool DGAStealMouseEvent(int Index, xEvent *e, int dx, int dy);
128
Bool DGAStealKeyEvent(int Index, xEvent *e);
129
Bool DGAIsDgaEvent (xEvent *e);
131
Bool DGADeliverEvent (ScreenPtr pScreen, xEvent *e);
133
Bool DGAOpenFramebuffer(int Index, char **name, unsigned char **mem,
134
int *size, int *offset, int *flags);
135
void DGACloseFramebuffer(int Index);
136
Bool DGAChangePixmapMode(int Index, int *x, int *y, int mode);
137
int DGACreateColormap(int Index, ClientPtr client, int id, int mode,
140
extern unsigned char DGAReqCode;
141
extern int DGAErrorBase;
142
extern int DGAEventBase;
143
extern int *XDGAEventBase;
147
#endif /* __DGAPROC_H */