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 #ifdef HAVE_XORG_CONFIG_H 56 #include <xorg-config.h> 57 #endif 58 59 #ifndef _xf86_tokens_h 60 #define _xf86_tokens_h 61 62 /* Undefine symbols that some OSs might define */ 63 #undef IOBASE 64 65 /* 66 * Each token should have a unique value regardless of the section 67 * it is used in. 68 */ 69 70 typedef enum { 71 /* errno-style tokens */ 72 OBSOLETE_TOKEN = -5, 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 MATCHSEAT, 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 GDEVICE, 147 MONITOR, 148 SCREENNO, 149 DEFAULTDEPTH, 150 DEFAULTBPP, 151 DEFAULTFBBPP, 152 153 /* VideoAdaptor tokens */ 154 VIDEOADAPTOR, 155 156 /* Mode timing tokens */ 157 TT_INTERLACE, 158 TT_PHSYNC, 159 TT_NHSYNC, 160 TT_PVSYNC, 161 TT_NVSYNC, 162 TT_CSYNC, 163 TT_PCSYNC, 164 TT_NCSYNC, 165 TT_DBLSCAN, 166 TT_HSKEW, 167 TT_BCAST, 168 TT_VSCAN, 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 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 /* Obsolete keyboard tokens */ 211 SERVERNUM, 212 LEFTALT, 213 RIGHTALT, 214 SCROLLLOCK_TOK, 215 RIGHTCTL, 216 /* arguments for the above obsolete tokens */ 217 CONF_KM_META, 218 CONF_KM_COMPOSE, 219 CONF_KM_MODESHIFT, 220 CONF_KM_MODELOCK, 221 CONF_KM_SCROLLLOCK, 222 CONF_KM_CONTROL, 223 224 /* Pointer tokens */ 225 EMULATE3, 226 BAUDRATE, 227 SAMPLERATE, 228 PRESOLUTION, 229 CLEARDTR, 230 CLEARRTS, 231 CHORDMIDDLE, 232 PROTOCOL, 233 PDEVICE, 234 EM3TIMEOUT, 235 DEVICE_NAME, 236 ALWAYSCORE, 237 PBUTTONS, 238 ZAXISMAPPING, 239 240 /* Pointer Z axis mapping tokens */ 241 XAXIS, 242 YAXIS, 243 244 /* Display tokens */ 245 MODES, 246 VIEWPORT, 247 VIRTUAL, 248 VISUAL, 249 BLACK_TOK, 250 WHITE_TOK, 251 DEPTH, 252 BPP, 253 WEIGHT, 254 255 /* Layout Tokens */ 256 SCREEN, 257 INACTIVE, 258 INPUTDEVICE, 259 260 /* Adjaceny Tokens */ 261 RIGHTOF, 262 LEFTOF, 263 ABOVE, 264 BELOW, 265 RELATIVE, 266 ABSOLUTE, 267 268 /* Vendor Tokens */ 269 VENDORNAME, 270 271 /* DRI Tokens */ 272 GROUP, 273 274 /* InputClass Tokens */ 275 MATCH_PRODUCT, 276 MATCH_VENDOR, 277 MATCH_DEVICE_PATH, 278 MATCH_OS, 279 MATCH_PNPID, 280 MATCH_USBID, 281 MATCH_DRIVER, 282 MATCH_TAG, 283 MATCH_LAYOUT, 284 MATCH_IS_KEYBOARD, 285 MATCH_IS_POINTER, 286 MATCH_IS_JOYSTICK, 287 MATCH_IS_TABLET, 288 MATCH_IS_TABLET_PAD, 289 MATCH_IS_TOUCHPAD, 290 MATCH_IS_TOUCHSCREEN, 291 292 NOMATCH_PRODUCT, 293 NOMATCH_VENDOR, 294 NOMATCH_DEVICE_PATH, 295 NOMATCH_OS, 296 NOMATCH_PNPID, 297 NOMATCH_USBID, 298 NOMATCH_DRIVER, 299 NOMATCH_TAG, 300 NOMATCH_LAYOUT, 301 } ParserTokens; 302 303 #endif /* _xf86_tokens_h */ 304