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 | OBSOLETE_TOKEN = -5,
|
---|
74 | EOF_TOKEN = -4,
|
---|
75 | LOCK_TOKEN = -3,
|
---|
76 | ERROR_TOKEN = -2,
|
---|
77 |
|
---|
78 | /* value type tokens */
|
---|
79 | NUMBER = 1,
|
---|
80 | STRING,
|
---|
81 |
|
---|
82 | /* Tokens that can appear in many sections */
|
---|
83 | SECTION,
|
---|
84 | SUBSECTION,
|
---|
85 | ENDSECTION,
|
---|
86 | ENDSUBSECTION,
|
---|
87 | IDENTIFIER,
|
---|
88 | VENDOR,
|
---|
89 | DASH,
|
---|
90 | COMMA,
|
---|
91 | OPTION,
|
---|
92 | COMMENT,
|
---|
93 |
|
---|
94 | /* Frequency units */
|
---|
95 | HRZ,
|
---|
96 | KHZ,
|
---|
97 | MHZ,
|
---|
98 |
|
---|
99 | /* File tokens */
|
---|
100 | FONTPATH,
|
---|
101 | MODULEPATH,
|
---|
102 | LOGFILEPATH,
|
---|
103 | XKBDIR,
|
---|
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 |
|
---|
169 | /* Module tokens */
|
---|
170 | LOAD,
|
---|
171 | LOAD_DRIVER,
|
---|
172 | DISABLE,
|
---|
173 |
|
---|
174 | /* Device tokens */
|
---|
175 | DRIVER,
|
---|
176 | CHIPSET,
|
---|
177 | CLOCKS,
|
---|
178 | VIDEORAM,
|
---|
179 | BOARD,
|
---|
180 | IOBASE,
|
---|
181 | RAMDAC,
|
---|
182 | DACSPEED,
|
---|
183 | BIOSBASE,
|
---|
184 | MEMBASE,
|
---|
185 | CLOCKCHIP,
|
---|
186 | CHIPID,
|
---|
187 | CHIPREV,
|
---|
188 | CARD,
|
---|
189 | BUSID,
|
---|
190 | TEXTCLOCKFRQ,
|
---|
191 | IRQ,
|
---|
192 |
|
---|
193 | /* Keyboard tokens */
|
---|
194 | AUTOREPEAT,
|
---|
195 | XLEDS,
|
---|
196 | KPROTOCOL,
|
---|
197 | XKBKEYMAP,
|
---|
198 | XKBCOMPAT,
|
---|
199 | XKBTYPES,
|
---|
200 | XKBKEYCODES,
|
---|
201 | XKBGEOMETRY,
|
---|
202 | XKBSYMBOLS,
|
---|
203 | XKBDISABLE,
|
---|
204 | PANIX106,
|
---|
205 | XKBRULES,
|
---|
206 | XKBMODEL,
|
---|
207 | XKBLAYOUT,
|
---|
208 | XKBVARIANT,
|
---|
209 | XKBOPTIONS,
|
---|
210 | /* The next two have become ServerFlags options */
|
---|
211 | VTSYSREQ,
|
---|
212 | /* Obsolete keyboard tokens */
|
---|
213 | SERVERNUM,
|
---|
214 | LEFTALT,
|
---|
215 | RIGHTALT,
|
---|
216 | SCROLLLOCK_TOK,
|
---|
217 | RIGHTCTL,
|
---|
218 | /* arguments for the above obsolete tokens */
|
---|
219 | CONF_KM_META,
|
---|
220 | CONF_KM_COMPOSE,
|
---|
221 | CONF_KM_MODESHIFT,
|
---|
222 | CONF_KM_MODELOCK,
|
---|
223 | CONF_KM_SCROLLLOCK,
|
---|
224 | CONF_KM_CONTROL,
|
---|
225 |
|
---|
226 | /* Pointer tokens */
|
---|
227 | EMULATE3,
|
---|
228 | BAUDRATE,
|
---|
229 | SAMPLERATE,
|
---|
230 | PRESOLUTION,
|
---|
231 | CLEARDTR,
|
---|
232 | CLEARRTS,
|
---|
233 | CHORDMIDDLE,
|
---|
234 | PROTOCOL,
|
---|
235 | PDEVICE,
|
---|
236 | EM3TIMEOUT,
|
---|
237 | DEVICE_NAME,
|
---|
238 | ALWAYSCORE,
|
---|
239 | PBUTTONS,
|
---|
240 | ZAXISMAPPING,
|
---|
241 |
|
---|
242 | /* Pointer Z axis mapping tokens */
|
---|
243 | XAXIS,
|
---|
244 | YAXIS,
|
---|
245 |
|
---|
246 | /* Display tokens */
|
---|
247 | MODES,
|
---|
248 | VIEWPORT,
|
---|
249 | VIRTUAL,
|
---|
250 | VISUAL,
|
---|
251 | BLACK_TOK,
|
---|
252 | WHITE_TOK,
|
---|
253 | DEPTH,
|
---|
254 | BPP,
|
---|
255 | WEIGHT,
|
---|
256 |
|
---|
257 | /* Layout Tokens */
|
---|
258 | SCREEN,
|
---|
259 | INACTIVE,
|
---|
260 | INPUTDEVICE,
|
---|
261 |
|
---|
262 | /* Adjaceny Tokens */
|
---|
263 | RIGHTOF,
|
---|
264 | LEFTOF,
|
---|
265 | ABOVE,
|
---|
266 | BELOW,
|
---|
267 | RELATIVE,
|
---|
268 | ABSOLUTE,
|
---|
269 |
|
---|
270 | /* Vendor Tokens */
|
---|
271 | VENDORNAME,
|
---|
272 |
|
---|
273 | /* DRI Tokens */
|
---|
274 | GROUP,
|
---|
275 |
|
---|
276 | /* InputClass Tokens */
|
---|
277 | MATCH_PRODUCT,
|
---|
278 | MATCH_VENDOR,
|
---|
279 | MATCH_DEVICE_PATH,
|
---|
280 | MATCH_OS,
|
---|
281 | MATCH_PNPID,
|
---|
282 | MATCH_USBID,
|
---|
283 | MATCH_DRIVER,
|
---|
284 | MATCH_TAG,
|
---|
285 | MATCH_IS_KEYBOARD,
|
---|
286 | MATCH_IS_POINTER,
|
---|
287 | MATCH_IS_JOYSTICK,
|
---|
288 | MATCH_IS_TABLET,
|
---|
289 | MATCH_IS_TOUCHPAD,
|
---|
290 | MATCH_IS_TOUCHSCREEN
|
---|
291 | } ParserTokens;
|
---|
292 |
|
---|
293 | #endif /* _xf86_tokens_h */
|
---|