]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/xf86dga.h
afcf54421fe4bed34f84c44c81024f9eb90a23fe
[rdpsrv] / Xserver / include / extensions / xf86dga.h
1 /* $XFree86: xc/include/extensions/xf86dga.h,v 3.5 1996/10/18 14:57:24 dawes Exp $ */
2 /*
3
4 Copyright (c) 1995  Jon Tombs
5 Copyright (c) 1995  XFree86 Inc
6
7 */
8
9 #ifndef _XF86DGA_H_
10 #define _XF86DGA_H_
11
12 #include <X11/Xfuncproto.h>
13
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
24
25 #define XF86DGADirectPresent            0x0001
26 #define XF86DGADirectGraphics           0x0002
27 #define XF86DGADirectMouse              0x0004
28 #define XF86DGADirectKeyb               0x0008
29 #define XF86DGAHasColormap              0x0100
30 #define XF86DGADirectColormap           0x0200
31
32 #define XF86DGANumberEvents             0
33
34 #define XF86DGAClientNotLocal           0
35 #define XF86DGANoDirectVideoMode        1
36 #define XF86DGAScreenNotActive          2
37 #define XF86DGADirectNotActivated       3
38 #define XF86DGANumberErrors             (XF86DGADirectNotActivated + 1)
39
40 #ifndef _XF86DGA_SERVER_
41
42 _XFUNCPROTOBEGIN
43
44 Bool XF86DGAQueryVersion(
45 #if NeedFunctionPrototypes
46     Display*            /* dpy */,
47     int*                /* majorVersion */,
48     int*                /* minorVersion */
49 #endif
50 );
51
52 Bool XF86DGAQueryExtension(
53 #if NeedFunctionPrototypes
54     Display*            /* dpy */,
55     int*                /* event_base */,
56     int*                /* error_base */
57 #endif
58 );
59
60 Status XF86DGAGetVideoLL(
61 #if NeedFunctionPrototypes
62     Display*                    /* dpy */,
63     int                         /* screen */,
64     int *                       /* base addr */,
65     int *                       /* width */,
66     int *                       /* bank_size */,
67     int *                       /* ram_size */ 
68 #endif
69 );
70
71 Status XF86DGAGetVideo(
72 #if NeedFunctionPrototypes
73     Display*                    /* dpy */,
74     int                         /* screen */,
75     char **                     /* base addr */,
76     int *                       /* width */,
77     int *                       /* bank_size */,
78     int *                       /* ram_size */
79 #endif
80 );
81
82 Status XF86DGADirectVideo(
83 #if NeedFunctionPrototypes
84     Display*                    /* dpy */,
85     int                         /* screen */,
86     int                         /* enable */
87 #endif
88 );
89
90 Status XF86DGADirectVideoLL(
91 #if NeedFunctionPrototypes
92     Display*                    /* dpy */,
93     int                         /* screen */,
94     int                         /* enable */
95 #endif
96 );
97
98 Status XF86DGAGetViewPortSize(
99 #if NeedFunctionPrototypes
100     Display*                    /* dpy */,
101     int                         /* screen */,
102     int *                       /* width */,
103     int *                       /* height */
104 #endif
105 );
106
107 Status XF86DGASetViewPort(
108 #if NeedFunctionPrototypes
109     Display*                    /* dpy */,
110     int                         /* screen */,
111     int x                       /* X */,
112     int y                       /* Y */
113 #endif
114 );
115
116 Status XF86DGAGetVidPage(
117 #if NeedFunctionPrototypes
118     Display*                    /* dpy */,
119     int                         /* screen */,
120     int *                       /* vid page */
121 #endif
122 );
123
124 Status XF86DGASetVidPage(
125 #if NeedFunctionPrototypes
126     Display*                    /* dpy */,
127     int                         /* screen */,
128     int                         /* vid page */
129 #endif
130 );
131
132 Status XF86DGAInstallColormap(
133 #if NeedFunctionPrototypes
134     Display*                    /* dpy */,
135     int                         /* screen */,
136     Colormap                    /*Colormap */
137 #endif
138 );
139
140 int XF86DGAForkApp(
141 #if NeedFunctionPrototypes
142     int screen
143 #endif
144 );
145
146 Status XF86DGAQueryDirectVideo(
147 #if NeedFunctionPrototypes
148     Display *           /* dpy */,
149     int                 /* screen */,
150     int *               /* flags */
151 #endif
152 );
153
154 Bool XF86DGAViewPortChanged(
155 #if NeedFunctionPrototypes
156     Display *           /* dpy */,
157     int                 /* screen */,
158     int                 /* n */
159 #endif
160 );
161
162
163 _XFUNCPROTOEND
164
165 #endif /* _XF86DGA_SERVER_ */
166
167 #endif /* _XF86DGA_H_ */