1 | /* $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $ */
|
---|
2 | /*
|
---|
3 |
|
---|
4 | Copyright (c) 1995 Jon Tombs
|
---|
5 | Copyright (c) 1995 XFree86 Inc
|
---|
6 |
|
---|
7 | */
|
---|
8 |
|
---|
9 | /************************************************************************
|
---|
10 |
|
---|
11 | THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE
|
---|
12 |
|
---|
13 | ************************************************************************/
|
---|
14 |
|
---|
15 | #ifndef _XF86DGA1_H_
|
---|
16 | #define _XF86DGA1_H_
|
---|
17 |
|
---|
18 | #include <X11/Xfuncproto.h>
|
---|
19 |
|
---|
20 | #define X_XF86DGAQueryVersion 0
|
---|
21 | #define X_XF86DGAGetVideoLL 1
|
---|
22 | #define X_XF86DGADirectVideo 2
|
---|
23 | #define X_XF86DGAGetViewPortSize 3
|
---|
24 | #define X_XF86DGASetViewPort 4
|
---|
25 | #define X_XF86DGAGetVidPage 5
|
---|
26 | #define X_XF86DGASetVidPage 6
|
---|
27 | #define X_XF86DGAInstallColormap 7
|
---|
28 | #define X_XF86DGAQueryDirectVideo 8
|
---|
29 | #define X_XF86DGAViewPortChanged 9
|
---|
30 |
|
---|
31 | #define XF86DGADirectPresent 0x0001
|
---|
32 | #define XF86DGADirectGraphics 0x0002
|
---|
33 | #define XF86DGADirectMouse 0x0004
|
---|
34 | #define XF86DGADirectKeyb 0x0008
|
---|
35 | #define XF86DGAHasColormap 0x0100
|
---|
36 | #define XF86DGADirectColormap 0x0200
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
41 | #ifndef _XF86DGA_SERVER_
|
---|
42 |
|
---|
43 | _XFUNCPROTOBEGIN
|
---|
44 |
|
---|
45 | Bool XF86DGAQueryVersion(
|
---|
46 | Display* /* dpy */,
|
---|
47 | int* /* majorVersion */,
|
---|
48 | int* /* minorVersion */
|
---|
49 | );
|
---|
50 |
|
---|
51 | Bool XF86DGAQueryExtension(
|
---|
52 | Display* /* dpy */,
|
---|
53 | int* /* event_base */,
|
---|
54 | int* /* error_base */
|
---|
55 | );
|
---|
56 |
|
---|
57 | Status XF86DGAGetVideoLL(
|
---|
58 | Display* /* dpy */,
|
---|
59 | int /* screen */,
|
---|
60 | int * /* base addr */,
|
---|
61 | int * /* width */,
|
---|
62 | int * /* bank_size */,
|
---|
63 | int * /* ram_size */
|
---|
64 | );
|
---|
65 |
|
---|
66 | Status XF86DGAGetVideo(
|
---|
67 | Display* /* dpy */,
|
---|
68 | int /* screen */,
|
---|
69 | char ** /* base addr */,
|
---|
70 | int * /* width */,
|
---|
71 | int * /* bank_size */,
|
---|
72 | int * /* ram_size */
|
---|
73 | );
|
---|
74 |
|
---|
75 | Status XF86DGADirectVideo(
|
---|
76 | Display* /* dpy */,
|
---|
77 | int /* screen */,
|
---|
78 | int /* enable */
|
---|
79 | );
|
---|
80 |
|
---|
81 | Status XF86DGADirectVideoLL(
|
---|
82 | Display* /* dpy */,
|
---|
83 | int /* screen */,
|
---|
84 | int /* enable */
|
---|
85 | );
|
---|
86 |
|
---|
87 | Status XF86DGAGetViewPortSize(
|
---|
88 | Display* /* dpy */,
|
---|
89 | int /* screen */,
|
---|
90 | int * /* width */,
|
---|
91 | int * /* height */
|
---|
92 | );
|
---|
93 |
|
---|
94 | Status XF86DGASetViewPort(
|
---|
95 | Display* /* dpy */,
|
---|
96 | int /* screen */,
|
---|
97 | int x /* X */,
|
---|
98 | int y /* Y */
|
---|
99 | );
|
---|
100 |
|
---|
101 | Status XF86DGAGetVidPage(
|
---|
102 | Display* /* dpy */,
|
---|
103 | int /* screen */,
|
---|
104 | int * /* vid page */
|
---|
105 | );
|
---|
106 |
|
---|
107 | Status XF86DGASetVidPage(
|
---|
108 | Display* /* dpy */,
|
---|
109 | int /* screen */,
|
---|
110 | int /* vid page */
|
---|
111 | );
|
---|
112 |
|
---|
113 | Status XF86DGAInstallColormap(
|
---|
114 | Display* /* dpy */,
|
---|
115 | int /* screen */,
|
---|
116 | Colormap /*Colormap */
|
---|
117 | );
|
---|
118 |
|
---|
119 | int XF86DGAForkApp(
|
---|
120 | int screen
|
---|
121 | );
|
---|
122 |
|
---|
123 | Status XF86DGAQueryDirectVideo(
|
---|
124 | Display * /* dpy */,
|
---|
125 | int /* screen */,
|
---|
126 | int * /* flags */
|
---|
127 | );
|
---|
128 |
|
---|
129 | Bool XF86DGAViewPortChanged(
|
---|
130 | Display * /* dpy */,
|
---|
131 | int /* screen */,
|
---|
132 | int /* n */
|
---|
133 | );
|
---|
134 |
|
---|
135 |
|
---|
136 | _XFUNCPROTOEND
|
---|
137 |
|
---|
138 | #endif /* _XF86DGA_SERVER_ */
|
---|
139 |
|
---|
140 | #endif /* _XF86DGA1_H_ */
|
---|