135c4bbdfSmrg/*
235c4bbdfSmrg *
305b261ecSmrg * Copyright (c) 1997  Metro Link Incorporated
435c4bbdfSmrg *
505b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a
635c4bbdfSmrg * copy of this software and associated documentation files (the "Software"),
705b261ecSmrg * to deal in the Software without restriction, including without limitation
805b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
905b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the
1005b261ecSmrg * Software is furnished to do so, subject to the following conditions:
1135c4bbdfSmrg *
1205b261ecSmrg * The above copyright notice and this permission notice shall be included in
1305b261ecSmrg * all copies or substantial portions of the Software.
1435c4bbdfSmrg *
1505b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1605b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1705b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1805b261ecSmrg * THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1905b261ecSmrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
2005b261ecSmrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2105b261ecSmrg * SOFTWARE.
2235c4bbdfSmrg *
2305b261ecSmrg * Except as contained in this notice, the name of the Metro Link shall not be
2405b261ecSmrg * used in advertising or otherwise to promote the sale, use or other dealings
2505b261ecSmrg * in this Software without prior written authorization from Metro Link.
2635c4bbdfSmrg *
2705b261ecSmrg */
2805b261ecSmrg/*
2905b261ecSmrg * Copyright (c) 1997-2003 by The XFree86 Project, Inc.
3005b261ecSmrg *
3105b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a
3205b261ecSmrg * copy of this software and associated documentation files (the "Software"),
3305b261ecSmrg * to deal in the Software without restriction, including without limitation
3405b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
3505b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the
3605b261ecSmrg * Software is furnished to do so, subject to the following conditions:
3705b261ecSmrg *
3805b261ecSmrg * The above copyright notice and this permission notice shall be included in
3905b261ecSmrg * all copies or substantial portions of the Software.
4005b261ecSmrg *
4105b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4205b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4305b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
4405b261ecSmrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
4505b261ecSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
4605b261ecSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
4705b261ecSmrg * OTHER DEALINGS IN THE SOFTWARE.
4805b261ecSmrg *
4905b261ecSmrg * Except as contained in this notice, the name of the copyright holder(s)
5005b261ecSmrg * and author(s) shall not be used in advertising or otherwise to promote
5105b261ecSmrg * the sale, use or other dealings in this Software without prior written
5205b261ecSmrg * authorization from the copyright holder(s) and author(s).
5305b261ecSmrg */
5405b261ecSmrg
5505b261ecSmrg#ifdef HAVE_XORG_CONFIG_H
5605b261ecSmrg#include <xorg-config.h>
5705b261ecSmrg#endif
5805b261ecSmrg
5905b261ecSmrg#ifndef _xf86_tokens_h
6005b261ecSmrg#define _xf86_tokens_h
6105b261ecSmrg
6205b261ecSmrg/* Undefine symbols that some OSs might define */
6305b261ecSmrg#undef IOBASE
6405b261ecSmrg
6535c4bbdfSmrg/*
6605b261ecSmrg * Each token should have a unique value regardless of the section
6705b261ecSmrg * it is used in.
6805b261ecSmrg */
6905b261ecSmrg
7005b261ecSmrgtypedef enum {
7105b261ecSmrg    /* errno-style tokens */
7235c4bbdfSmrg    OBSOLETE_TOKEN = -5,
7335c4bbdfSmrg    EOF_TOKEN = -4,
7435c4bbdfSmrg    LOCK_TOKEN = -3,
7535c4bbdfSmrg    ERROR_TOKEN = -2,
7605b261ecSmrg
7705b261ecSmrg    /* value type tokens */
7835c4bbdfSmrg    NUMBER = 1,
7905b261ecSmrg    STRING,
8005b261ecSmrg
8105b261ecSmrg    /* Tokens that can appear in many sections */
8205b261ecSmrg    SECTION,
8305b261ecSmrg    SUBSECTION,
8405b261ecSmrg    ENDSECTION,
8505b261ecSmrg    ENDSUBSECTION,
8605b261ecSmrg    IDENTIFIER,
8705b261ecSmrg    VENDOR,
8805b261ecSmrg    DASH,
8905b261ecSmrg    COMMA,
9035c4bbdfSmrg    MATCHSEAT,
9105b261ecSmrg    OPTION,
9205b261ecSmrg    COMMENT,
9305b261ecSmrg
9405b261ecSmrg    /* Frequency units */
9505b261ecSmrg    HRZ,
9605b261ecSmrg    KHZ,
9705b261ecSmrg    MHZ,
9805b261ecSmrg
9905b261ecSmrg    /* File tokens */
10005b261ecSmrg    FONTPATH,
10105b261ecSmrg    MODULEPATH,
10205b261ecSmrg    LOGFILEPATH,
1034642e01fSmrg    XKBDIR,
10405b261ecSmrg
10505b261ecSmrg    /* Server Flag tokens.  These are deprecated in favour of generic Options */
10605b261ecSmrg    DONTZAP,
10705b261ecSmrg    DONTZOOM,
10805b261ecSmrg    DISABLEVIDMODE,
10905b261ecSmrg    ALLOWNONLOCAL,
11005b261ecSmrg    DISABLEMODINDEV,
11105b261ecSmrg    MODINDEVALLOWNONLOCAL,
11205b261ecSmrg    ALLOWMOUSEOPENFAIL,
11305b261ecSmrg    BLANKTIME,
11405b261ecSmrg    STANDBYTIME,
11505b261ecSmrg    SUSPENDTIME,
11605b261ecSmrg    OFFTIME,
11705b261ecSmrg    DEFAULTLAYOUT,
11805b261ecSmrg
11905b261ecSmrg    /* Monitor tokens */
12005b261ecSmrg    MODEL,
12105b261ecSmrg    MODELINE,
12205b261ecSmrg    DISPLAYSIZE,
12305b261ecSmrg    HORIZSYNC,
12405b261ecSmrg    VERTREFRESH,
12505b261ecSmrg    MODE,
12605b261ecSmrg    GAMMA,
12705b261ecSmrg    USEMODES,
12805b261ecSmrg
12905b261ecSmrg    /* Modes tokens */
13005b261ecSmrg    /* no new ones */
13105b261ecSmrg
13205b261ecSmrg    /* Mode tokens */
13305b261ecSmrg    DOTCLOCK,
13405b261ecSmrg    HTIMINGS,
13505b261ecSmrg    VTIMINGS,
13605b261ecSmrg    FLAGS,
13705b261ecSmrg    HSKEW,
13805b261ecSmrg    BCAST,
13905b261ecSmrg    VSCAN,
14005b261ecSmrg    ENDMODE,
14105b261ecSmrg
14205b261ecSmrg    /* Screen tokens */
14305b261ecSmrg    OBSDRIVER,
14405b261ecSmrg    MDEVICE,
14535c4bbdfSmrg    GDEVICE,
14605b261ecSmrg    MONITOR,
14705b261ecSmrg    SCREENNO,
14805b261ecSmrg    DEFAULTDEPTH,
14905b261ecSmrg    DEFAULTBPP,
15005b261ecSmrg    DEFAULTFBBPP,
15135c4bbdfSmrg
15205b261ecSmrg    /* VideoAdaptor tokens */
15305b261ecSmrg    VIDEOADAPTOR,
15405b261ecSmrg
15505b261ecSmrg    /* Mode timing tokens */
15605b261ecSmrg    TT_INTERLACE,
15705b261ecSmrg    TT_PHSYNC,
15805b261ecSmrg    TT_NHSYNC,
15905b261ecSmrg    TT_PVSYNC,
16005b261ecSmrg    TT_NVSYNC,
16105b261ecSmrg    TT_CSYNC,
16205b261ecSmrg    TT_PCSYNC,
16305b261ecSmrg    TT_NCSYNC,
16405b261ecSmrg    TT_DBLSCAN,
16505b261ecSmrg    TT_HSKEW,
16605b261ecSmrg    TT_BCAST,
16705b261ecSmrg    TT_VSCAN,
16805b261ecSmrg
16905b261ecSmrg    /* Module tokens */
17005b261ecSmrg    LOAD,
17105b261ecSmrg    LOAD_DRIVER,
17205b261ecSmrg    DISABLE,
17335c4bbdfSmrg
17405b261ecSmrg    /* Device tokens */
17505b261ecSmrg    DRIVER,
17605b261ecSmrg    CHIPSET,
17705b261ecSmrg    CLOCKS,
17805b261ecSmrg    VIDEORAM,
17905b261ecSmrg    BOARD,
18005b261ecSmrg    IOBASE,
18105b261ecSmrg    RAMDAC,
18205b261ecSmrg    DACSPEED,
18305b261ecSmrg    BIOSBASE,
18405b261ecSmrg    MEMBASE,
18505b261ecSmrg    CLOCKCHIP,
18605b261ecSmrg    CHIPID,
18705b261ecSmrg    CHIPREV,
18805b261ecSmrg    CARD,
18905b261ecSmrg    BUSID,
19005b261ecSmrg    IRQ,
19105b261ecSmrg
19205b261ecSmrg    /* Keyboard tokens */
19305b261ecSmrg    AUTOREPEAT,
19405b261ecSmrg    XLEDS,
19505b261ecSmrg    KPROTOCOL,
19605b261ecSmrg    XKBKEYMAP,
19705b261ecSmrg    XKBCOMPAT,
19805b261ecSmrg    XKBTYPES,
19905b261ecSmrg    XKBKEYCODES,
20005b261ecSmrg    XKBGEOMETRY,
20105b261ecSmrg    XKBSYMBOLS,
20205b261ecSmrg    XKBDISABLE,
20305b261ecSmrg    PANIX106,
20405b261ecSmrg    XKBRULES,
20505b261ecSmrg    XKBMODEL,
20605b261ecSmrg    XKBLAYOUT,
20705b261ecSmrg    XKBVARIANT,
20805b261ecSmrg    XKBOPTIONS,
20905b261ecSmrg    /* Obsolete keyboard tokens */
21005b261ecSmrg    SERVERNUM,
21105b261ecSmrg    LEFTALT,
21205b261ecSmrg    RIGHTALT,
21305b261ecSmrg    SCROLLLOCK_TOK,
21405b261ecSmrg    RIGHTCTL,
21505b261ecSmrg    /* arguments for the above obsolete tokens */
21605b261ecSmrg    CONF_KM_META,
21705b261ecSmrg    CONF_KM_COMPOSE,
21805b261ecSmrg    CONF_KM_MODESHIFT,
21905b261ecSmrg    CONF_KM_MODELOCK,
22005b261ecSmrg    CONF_KM_SCROLLLOCK,
22105b261ecSmrg    CONF_KM_CONTROL,
22205b261ecSmrg
22305b261ecSmrg    /* Pointer tokens */
22405b261ecSmrg    EMULATE3,
22505b261ecSmrg    BAUDRATE,
22605b261ecSmrg    SAMPLERATE,
22705b261ecSmrg    PRESOLUTION,
22805b261ecSmrg    CLEARDTR,
22905b261ecSmrg    CLEARRTS,
23005b261ecSmrg    CHORDMIDDLE,
23105b261ecSmrg    PROTOCOL,
23205b261ecSmrg    PDEVICE,
23305b261ecSmrg    EM3TIMEOUT,
23405b261ecSmrg    DEVICE_NAME,
23505b261ecSmrg    ALWAYSCORE,
23605b261ecSmrg    PBUTTONS,
23705b261ecSmrg    ZAXISMAPPING,
23805b261ecSmrg
23905b261ecSmrg    /* Pointer Z axis mapping tokens */
24005b261ecSmrg    XAXIS,
24105b261ecSmrg    YAXIS,
24205b261ecSmrg
24305b261ecSmrg    /* Display tokens */
24405b261ecSmrg    MODES,
24505b261ecSmrg    VIEWPORT,
24605b261ecSmrg    VIRTUAL,
24705b261ecSmrg    VISUAL,
24805b261ecSmrg    BLACK_TOK,
24905b261ecSmrg    WHITE_TOK,
25005b261ecSmrg    DEPTH,
25105b261ecSmrg    BPP,
25205b261ecSmrg    WEIGHT,
25335c4bbdfSmrg
25405b261ecSmrg    /* Layout Tokens */
25505b261ecSmrg    SCREEN,
25605b261ecSmrg    INACTIVE,
25705b261ecSmrg    INPUTDEVICE,
25805b261ecSmrg
25905b261ecSmrg    /* Adjaceny Tokens */
26005b261ecSmrg    RIGHTOF,
26105b261ecSmrg    LEFTOF,
26205b261ecSmrg    ABOVE,
26305b261ecSmrg    BELOW,
26405b261ecSmrg    RELATIVE,
26505b261ecSmrg    ABSOLUTE,
26605b261ecSmrg
26705b261ecSmrg    /* Vendor Tokens */
26805b261ecSmrg    VENDORNAME,
26905b261ecSmrg
27005b261ecSmrg    /* DRI Tokens */
27105b261ecSmrg    GROUP,
2726747b715Smrg
2736747b715Smrg    /* InputClass Tokens */
2746747b715Smrg    MATCH_PRODUCT,
2756747b715Smrg    MATCH_VENDOR,
2766747b715Smrg    MATCH_DEVICE_PATH,
2776747b715Smrg    MATCH_OS,
2786747b715Smrg    MATCH_PNPID,
2796747b715Smrg    MATCH_USBID,
2806747b715Smrg    MATCH_DRIVER,
2816747b715Smrg    MATCH_TAG,
28235c4bbdfSmrg    MATCH_LAYOUT,
2836747b715Smrg    MATCH_IS_KEYBOARD,
2846747b715Smrg    MATCH_IS_POINTER,
2856747b715Smrg    MATCH_IS_JOYSTICK,
2866747b715Smrg    MATCH_IS_TABLET,
2871b5d61b8Smrg    MATCH_IS_TABLET_PAD,
2886747b715Smrg    MATCH_IS_TOUCHPAD,
2891b5d61b8Smrg    MATCH_IS_TOUCHSCREEN,
2901b5d61b8Smrg
2911b5d61b8Smrg    NOMATCH_PRODUCT,
2921b5d61b8Smrg    NOMATCH_VENDOR,
2931b5d61b8Smrg    NOMATCH_DEVICE_PATH,
2941b5d61b8Smrg    NOMATCH_OS,
2951b5d61b8Smrg    NOMATCH_PNPID,
2961b5d61b8Smrg    NOMATCH_USBID,
2971b5d61b8Smrg    NOMATCH_DRIVER,
2981b5d61b8Smrg    NOMATCH_TAG,
2991b5d61b8Smrg    NOMATCH_LAYOUT,
30005b261ecSmrg} ParserTokens;
30105b261ecSmrg
30235c4bbdfSmrg#endif                          /* _xf86_tokens_h */
303