1 | /*
|
---|
2 | *
|
---|
3 | * Copyright (c) 1997 Metro Link Incorporated
|
---|
4 | *
|
---|
5 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
6 | * copy of this software and associated documentation files (the "Software"),
|
---|
7 | * to deal in the Software without restriction, including without limitation
|
---|
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
9 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
10 | * Software is furnished to do so, subject to the following conditions:
|
---|
11 | *
|
---|
12 | * The above copyright notice and this permission notice shall be included in
|
---|
13 | * all copies or substantial portions of the Software.
|
---|
14 | *
|
---|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
18 | * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
19 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
---|
20 | * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
---|
21 | * SOFTWARE.
|
---|
22 | *
|
---|
23 | * Except as contained in this notice, the name of the Metro Link shall not be
|
---|
24 | * used in advertising or otherwise to promote the sale, use or other dealings
|
---|
25 | * in this Software without prior written authorization from Metro Link.
|
---|
26 | *
|
---|
27 | */
|
---|
28 | /*
|
---|
29 | * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
|
---|
30 | *
|
---|
31 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
32 | * copy of this software and associated documentation files (the "Software"),
|
---|
33 | * to deal in the Software without restriction, including without limitation
|
---|
34 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
35 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
36 | * Software is furnished to do so, subject to the following conditions:
|
---|
37 | *
|
---|
38 | * The above copyright notice and this permission notice shall be included in
|
---|
39 | * all copies or substantial portions of the Software.
|
---|
40 | *
|
---|
41 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
42 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
43 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
44 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
---|
45 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
---|
46 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
47 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
48 | *
|
---|
49 | * Except as contained in this notice, the name of the copyright holder(s)
|
---|
50 | * and author(s) shall not be used in advertising or otherwise to promote
|
---|
51 | * the sale, use or other dealings in this Software without prior written
|
---|
52 | * authorization from the copyright holder(s) and author(s).
|
---|
53 | */
|
---|
54 |
|
---|
55 |
|
---|
56 | #ifdef HAVE_XORG_CONFIG_H
|
---|
57 | #include <xorg-config.h>
|
---|
58 | #endif
|
---|
59 |
|
---|
60 | #ifndef _xf86_tokens_h
|
---|
61 | #define _xf86_tokens_h
|
---|
62 |
|
---|
63 | /* Undefine symbols that some OSs might define */
|
---|
64 | #undef IOBASE
|
---|
65 |
|
---|
66 | /*
|
---|
67 | * Each token should have a unique value regardless of the section
|
---|
68 | * it is used in.
|
---|
69 | */
|
---|
70 |
|
---|
71 | typedef enum {
|
---|
72 | /* errno-style tokens */
|
---|
73 | EOF_TOKEN = -4,
|
---|
74 | LOCK_TOKEN = -3,
|
---|
75 | ERROR_TOKEN = -2,
|
---|
76 |
|
---|
77 | /* value type tokens */
|
---|
78 | NUMBER = 1,
|
---|
79 | STRING,
|
---|
80 |
|
---|
81 | /* Tokens that can appear in many sections */
|
---|
82 | SECTION,
|
---|
83 | SUBSECTION,
|
---|
84 | ENDSECTION,
|
---|
85 | ENDSUBSECTION,
|
---|
86 | IDENTIFIER,
|
---|
87 | VENDOR,
|
---|
88 | DASH,
|
---|
89 | COMMA,
|
---|
90 | OPTION,
|
---|
91 | COMMENT,
|
---|
92 |
|
---|
93 | /* Frequency units */
|
---|
94 | HRZ,
|
---|
95 | KHZ,
|
---|
96 | MHZ,
|
---|
97 |
|
---|
98 | /* File tokens */
|
---|
99 | FONTPATH,
|
---|
100 | RGBPATH,
|
---|
101 | MODULEPATH,
|
---|
102 | INPUTDEVICES,
|
---|
103 | LOGFILEPATH,
|
---|
104 |
|
---|
105 | /* Server Flag tokens. These are deprecated in favour of generic Options */
|
---|
106 | NOTRAPSIGNALS,
|
---|
107 | DONTZAP,
|
---|
108 | DONTZOOM,
|
---|
109 | DISABLEVIDMODE,
|
---|
110 | ALLOWNONLOCAL,
|
---|
111 | DISABLEMODINDEV,
|
---|
112 | MODINDEVALLOWNONLOCAL,
|
---|
113 | ALLOWMOUSEOPENFAIL,
|
---|
114 | BLANKTIME,
|
---|
115 | STANDBYTIME,
|
---|
116 | SUSPENDTIME,
|
---|
117 | OFFTIME,
|
---|
118 | DEFAULTLAYOUT,
|
---|
119 |
|
---|
120 | /* Monitor tokens */
|
---|
121 | MODEL,
|
---|
122 | MODELINE,
|
---|
123 | DISPLAYSIZE,
|
---|
124 | HORIZSYNC,
|
---|
125 | VERTREFRESH,
|
---|
126 | MODE,
|
---|
127 | GAMMA,
|
---|
128 | USEMODES,
|
---|
129 |
|
---|
130 | /* Modes tokens */
|
---|
131 | /* no new ones */
|
---|
132 |
|
---|
133 | /* Mode tokens */
|
---|
134 | DOTCLOCK,
|
---|
135 | HTIMINGS,
|
---|
136 | VTIMINGS,
|
---|
137 | FLAGS,
|
---|
138 | HSKEW,
|
---|
139 | BCAST,
|
---|
140 | VSCAN,
|
---|
141 | ENDMODE,
|
---|
142 |
|
---|
143 | /* Screen tokens */
|
---|
144 | OBSDRIVER,
|
---|
145 | MDEVICE,
|
---|
146 | MONITOR,
|
---|
147 | SCREENNO,
|
---|
148 | DEFAULTDEPTH,
|
---|
149 | DEFAULTBPP,
|
---|
150 | DEFAULTFBBPP,
|
---|
151 |
|
---|
152 | /* VideoAdaptor tokens */
|
---|
153 | VIDEOADAPTOR,
|
---|
154 |
|
---|
155 | /* Mode timing tokens */
|
---|
156 | TT_INTERLACE,
|
---|
157 | TT_PHSYNC,
|
---|
158 | TT_NHSYNC,
|
---|
159 | TT_PVSYNC,
|
---|
160 | TT_NVSYNC,
|
---|
161 | TT_CSYNC,
|
---|
162 | TT_PCSYNC,
|
---|
163 | TT_NCSYNC,
|
---|
164 | TT_DBLSCAN,
|
---|
165 | TT_HSKEW,
|
---|
166 | TT_BCAST,
|
---|
167 | TT_VSCAN,
|
---|
168 | TT_CUSTOM,
|
---|
169 |
|
---|
170 | /* Module tokens */
|
---|
171 | LOAD,
|
---|
172 | LOAD_DRIVER,
|
---|
173 | DISABLE,
|
---|
174 |
|
---|
175 | /* Device tokens */
|
---|
176 | DRIVER,
|
---|
177 | CHIPSET,
|
---|
178 | CLOCKS,
|
---|
179 | VIDEORAM,
|
---|
180 | BOARD,
|
---|
181 | IOBASE,
|
---|
182 | RAMDAC,
|
---|
183 | DACSPEED,
|
---|
184 | BIOSBASE,
|
---|
185 | MEMBASE,
|
---|
186 | CLOCKCHIP,
|
---|
187 | CHIPID,
|
---|
188 | CHIPREV,
|
---|
189 | CARD,
|
---|
190 | BUSID,
|
---|
191 | TEXTCLOCKFRQ,
|
---|
192 | IRQ,
|
---|
193 |
|
---|
194 | /* Keyboard tokens */
|
---|
195 | AUTOREPEAT,
|
---|
196 | XLEDS,
|
---|
197 | KPROTOCOL,
|
---|
198 | XKBKEYMAP,
|
---|
199 | XKBCOMPAT,
|
---|
200 | XKBTYPES,
|
---|
201 | XKBKEYCODES,
|
---|
202 | XKBGEOMETRY,
|
---|
203 | XKBSYMBOLS,
|
---|
204 | XKBDISABLE,
|
---|
205 | PANIX106,
|
---|
206 | XKBRULES,
|
---|
207 | XKBMODEL,
|
---|
208 | XKBLAYOUT,
|
---|
209 | XKBVARIANT,
|
---|
210 | XKBOPTIONS,
|
---|
211 | /* The next two have become ServerFlags options */
|
---|
212 | VTINIT,
|
---|
213 | VTSYSREQ,
|
---|
214 | /* Obsolete keyboard tokens */
|
---|
215 | SERVERNUM,
|
---|
216 | LEFTALT,
|
---|
217 | RIGHTALT,
|
---|
218 | SCROLLLOCK_TOK,
|
---|
219 | RIGHTCTL,
|
---|
220 | /* arguments for the above obsolete tokens */
|
---|
221 | CONF_KM_META,
|
---|
222 | CONF_KM_COMPOSE,
|
---|
223 | CONF_KM_MODESHIFT,
|
---|
224 | CONF_KM_MODELOCK,
|
---|
225 | CONF_KM_SCROLLLOCK,
|
---|
226 | CONF_KM_CONTROL,
|
---|
227 |
|
---|
228 | /* Pointer tokens */
|
---|
229 | EMULATE3,
|
---|
230 | BAUDRATE,
|
---|
231 | SAMPLERATE,
|
---|
232 | PRESOLUTION,
|
---|
233 | CLEARDTR,
|
---|
234 | CLEARRTS,
|
---|
235 | CHORDMIDDLE,
|
---|
236 | PROTOCOL,
|
---|
237 | PDEVICE,
|
---|
238 | EM3TIMEOUT,
|
---|
239 | DEVICE_NAME,
|
---|
240 | ALWAYSCORE,
|
---|
241 | PBUTTONS,
|
---|
242 | ZAXISMAPPING,
|
---|
243 |
|
---|
244 | /* Pointer Z axis mapping tokens */
|
---|
245 | XAXIS,
|
---|
246 | YAXIS,
|
---|
247 |
|
---|
248 | /* Display tokens */
|
---|
249 | MODES,
|
---|
250 | VIEWPORT,
|
---|
251 | VIRTUAL,
|
---|
252 | VISUAL,
|
---|
253 | BLACK_TOK,
|
---|
254 | WHITE_TOK,
|
---|
255 | DEPTH,
|
---|
256 | BPP,
|
---|
257 | WEIGHT,
|
---|
258 |
|
---|
259 | /* Layout Tokens */
|
---|
260 | SCREEN,
|
---|
261 | INACTIVE,
|
---|
262 | INPUTDEVICE,
|
---|
263 |
|
---|
264 | /* Adjaceny Tokens */
|
---|
265 | RIGHTOF,
|
---|
266 | LEFTOF,
|
---|
267 | ABOVE,
|
---|
268 | BELOW,
|
---|
269 | RELATIVE,
|
---|
270 | ABSOLUTE,
|
---|
271 |
|
---|
272 | /* Vendor Tokens */
|
---|
273 | VENDORNAME,
|
---|
274 |
|
---|
275 | /* DRI Tokens */
|
---|
276 | GROUP,
|
---|
277 | BUFFERS
|
---|
278 | } ParserTokens;
|
---|
279 |
|
---|
280 | #endif /* _xf86_tokens_h */
|
---|