1 /* $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $ */
4 Copyright (c) 1995 Jon Tombs
5 Copyright (c) 1995 XFree86 Inc
9 /************************************************************************
11 THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE
13 ************************************************************************/
18 #include <X11/Xfuncproto.h>
21 #define X_XF86DGAQueryVersion 0
22 #define X_XF86DGAGetVideoLL 1
23 #define X_XF86DGADirectVideo 2
24 #define X_XF86DGAGetViewPortSize 3
25 #define X_XF86DGASetViewPort 4
26 #define X_XF86DGAGetVidPage 5
27 #define X_XF86DGASetVidPage 6
28 #define X_XF86DGAInstallColormap 7
29 #define X_XF86DGAQueryDirectVideo 8
30 #define X_XF86DGAViewPortChanged 9
32 #define XF86DGADirectPresent 0x0001
33 #define XF86DGADirectGraphics 0x0002
34 #define XF86DGADirectMouse 0x0004
35 #define XF86DGADirectKeyb 0x0008
36 #define XF86DGAHasColormap 0x0100
37 #define XF86DGADirectColormap 0x0200
42 #ifndef _XF86DGA_SERVER_
46 Bool SDL_NAME(XF86DGAQueryVersion)(
47 #if NeedFunctionPrototypes
49 int* /* majorVersion */,
50 int* /* minorVersion */
54 Bool SDL_NAME(XF86DGAQueryExtension)(
55 #if NeedFunctionPrototypes
57 int* /* event_base */,
62 Status SDL_NAME(XF86DGAGetVideoLL)(
63 #if NeedFunctionPrototypes
66 int * /* base addr */,
68 int * /* bank_size */,
73 Status SDL_NAME(XF86DGAGetVideo)(
74 #if NeedFunctionPrototypes
77 char ** /* base addr */,
79 int * /* bank_size */,
84 Status SDL_NAME(XF86DGADirectVideo)(
85 #if NeedFunctionPrototypes
92 Status SDL_NAME(XF86DGADirectVideoLL)(
93 #if NeedFunctionPrototypes
100 Status SDL_NAME(XF86DGAGetViewPortSize)(
101 #if NeedFunctionPrototypes
109 Status SDL_NAME(XF86DGASetViewPort)(
110 #if NeedFunctionPrototypes
118 Status SDL_NAME(XF86DGAGetVidPage)(
119 #if NeedFunctionPrototypes
126 Status SDL_NAME(XF86DGASetVidPage)(
127 #if NeedFunctionPrototypes
134 Status SDL_NAME(XF86DGAInstallColormap)(
135 #if NeedFunctionPrototypes
138 Colormap /*Colormap */
142 int SDL_NAME(XF86DGAForkApp)(
143 #if NeedFunctionPrototypes
148 Status SDL_NAME(XF86DGAQueryDirectVideo)(
149 #if NeedFunctionPrototypes
156 Bool SDL_NAME(XF86DGAViewPortChanged)(
157 #if NeedFunctionPrototypes
167 #endif /* _XF86DGA_SERVER_ */
169 #endif /* _XF86DGA1_H_ */