1 /* $XFree86: xc/include/extensions/xf86dga.h,v 3.5 1996/10/18 14:57:24 dawes Exp $ */
4 Copyright (c) 1995 Jon Tombs
5 Copyright (c) 1995 XFree86 Inc
12 #include <X11/Xfuncproto.h>
14 #define X_XF86DGAQueryVersion 0
15 #define X_XF86DGAGetVideoLL 1
16 #define X_XF86DGADirectVideo 2
17 #define X_XF86DGAGetViewPortSize 3
18 #define X_XF86DGASetViewPort 4
19 #define X_XF86DGAGetVidPage 5
20 #define X_XF86DGASetVidPage 6
21 #define X_XF86DGAInstallColormap 7
22 #define X_XF86DGAQueryDirectVideo 8
23 #define X_XF86DGAViewPortChanged 9
25 #define XF86DGADirectPresent 0x0001
26 #define XF86DGADirectGraphics 0x0002
27 #define XF86DGADirectMouse 0x0004
28 #define XF86DGADirectKeyb 0x0008
29 #define XF86DGAHasColormap 0x0100
30 #define XF86DGADirectColormap 0x0200
32 #define XF86DGANumberEvents 0
34 #define XF86DGAClientNotLocal 0
35 #define XF86DGANoDirectVideoMode 1
36 #define XF86DGAScreenNotActive 2
37 #define XF86DGADirectNotActivated 3
38 #define XF86DGANumberErrors (XF86DGADirectNotActivated + 1)
40 #ifndef _XF86DGA_SERVER_
44 Bool XF86DGAQueryVersion(
45 #if NeedFunctionPrototypes
47 int* /* majorVersion */,
48 int* /* minorVersion */
52 Bool XF86DGAQueryExtension(
53 #if NeedFunctionPrototypes
55 int* /* event_base */,
60 Status XF86DGAGetVideoLL(
61 #if NeedFunctionPrototypes
64 int * /* base addr */,
66 int * /* bank_size */,
71 Status XF86DGAGetVideo(
72 #if NeedFunctionPrototypes
75 char ** /* base addr */,
77 int * /* bank_size */,
82 Status XF86DGADirectVideo(
83 #if NeedFunctionPrototypes
90 Status XF86DGADirectVideoLL(
91 #if NeedFunctionPrototypes
98 Status XF86DGAGetViewPortSize(
99 #if NeedFunctionPrototypes
107 Status XF86DGASetViewPort(
108 #if NeedFunctionPrototypes
116 Status XF86DGAGetVidPage(
117 #if NeedFunctionPrototypes
124 Status XF86DGASetVidPage(
125 #if NeedFunctionPrototypes
132 Status XF86DGAInstallColormap(
133 #if NeedFunctionPrototypes
136 Colormap /*Colormap */
141 #if NeedFunctionPrototypes
146 Status XF86DGAQueryDirectVideo(
147 #if NeedFunctionPrototypes
154 Bool XF86DGAViewPortChanged(
155 #if NeedFunctionPrototypes
165 #endif /* _XF86DGA_SERVER_ */
167 #endif /* _XF86DGA_H_ */