Home | History | Annotate | Line # | Download | only in compiler
      1   1.1    jruoho %{
      2   1.1    jruoho /******************************************************************************
      3   1.1    jruoho  *
      4   1.2  christos  * Module Name: aslcompiler.l - Flex/lex input file
      5   1.1    jruoho  *
      6   1.1    jruoho  *****************************************************************************/
      7   1.1    jruoho 
      8  1.23  christos /******************************************************************************
      9  1.23  christos  *
     10  1.23  christos  * 1. Copyright Notice
     11  1.23  christos  *
     12  1.24  christos  * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
     13   1.1    jruoho  * All rights reserved.
     14   1.1    jruoho  *
     15  1.23  christos  * 2. License
     16  1.23  christos  *
     17  1.23  christos  * 2.1. This is your license from Intel Corp. under its intellectual property
     18  1.23  christos  * rights. You may have additional license terms from the party that provided
     19  1.23  christos  * you this software, covering your right to use that party's intellectual
     20  1.23  christos  * property rights.
     21  1.23  christos  *
     22  1.23  christos  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
     23  1.23  christos  * copy of the source code appearing in this file ("Covered Code") an
     24  1.23  christos  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
     25  1.23  christos  * base code distributed originally by Intel ("Original Intel Code") to copy,
     26  1.23  christos  * make derivatives, distribute, use and display any portion of the Covered
     27  1.23  christos  * Code in any form, with the right to sublicense such rights; and
     28  1.23  christos  *
     29  1.23  christos  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
     30  1.23  christos  * license (with the right to sublicense), under only those claims of Intel
     31  1.23  christos  * patents that are infringed by the Original Intel Code, to make, use, sell,
     32  1.23  christos  * offer to sell, and import the Covered Code and derivative works thereof
     33  1.23  christos  * solely to the minimum extent necessary to exercise the above copyright
     34  1.23  christos  * license, and in no event shall the patent license extend to any additions
     35  1.23  christos  * to or modifications of the Original Intel Code. No other license or right
     36  1.23  christos  * is granted directly or by implication, estoppel or otherwise;
     37  1.23  christos  *
     38  1.23  christos  * The above copyright and patent license is granted only if the following
     39  1.23  christos  * conditions are met:
     40  1.23  christos  *
     41  1.23  christos  * 3. Conditions
     42  1.23  christos  *
     43  1.23  christos  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
     44  1.23  christos  * Redistribution of source code of any substantial portion of the Covered
     45  1.23  christos  * Code or modification with rights to further distribute source must include
     46  1.23  christos  * the above Copyright Notice, the above License, this list of Conditions,
     47  1.23  christos  * and the following Disclaimer and Export Compliance provision. In addition,
     48  1.23  christos  * Licensee must cause all Covered Code to which Licensee contributes to
     49  1.23  christos  * contain a file documenting the changes Licensee made to create that Covered
     50  1.23  christos  * Code and the date of any change. Licensee must include in that file the
     51  1.23  christos  * documentation of any changes made by any predecessor Licensee. Licensee
     52  1.23  christos  * must include a prominent statement that the modification is derived,
     53  1.23  christos  * directly or indirectly, from Original Intel Code.
     54  1.23  christos  *
     55  1.23  christos  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
     56  1.23  christos  * Redistribution of source code of any substantial portion of the Covered
     57  1.23  christos  * Code or modification without rights to further distribute source must
     58  1.23  christos  * include the following Disclaimer and Export Compliance provision in the
     59  1.23  christos  * documentation and/or other materials provided with distribution. In
     60  1.23  christos  * addition, Licensee may not authorize further sublicense of source of any
     61  1.23  christos  * portion of the Covered Code, and must include terms to the effect that the
     62  1.23  christos  * license from Licensee to its licensee is limited to the intellectual
     63  1.23  christos  * property embodied in the software Licensee provides to its licensee, and
     64  1.23  christos  * not to intellectual property embodied in modifications its licensee may
     65  1.23  christos  * make.
     66  1.23  christos  *
     67  1.23  christos  * 3.3. Redistribution of Executable. Redistribution in executable form of any
     68  1.23  christos  * substantial portion of the Covered Code or modification must reproduce the
     69  1.23  christos  * above Copyright Notice, and the following Disclaimer and Export Compliance
     70  1.23  christos  * provision in the documentation and/or other materials provided with the
     71  1.23  christos  * distribution.
     72  1.23  christos  *
     73  1.23  christos  * 3.4. Intel retains all right, title, and interest in and to the Original
     74  1.23  christos  * Intel Code.
     75  1.23  christos  *
     76  1.23  christos  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
     77  1.23  christos  * Intel shall be used in advertising or otherwise to promote the sale, use or
     78  1.23  christos  * other dealings in products derived from or relating to the Covered Code
     79  1.23  christos  * without prior written authorization from Intel.
     80  1.23  christos  *
     81  1.23  christos  * 4. Disclaimer and Export Compliance
     82  1.23  christos  *
     83  1.23  christos  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
     84  1.23  christos  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
     85  1.23  christos  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
     86  1.23  christos  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
     87  1.23  christos  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
     88  1.23  christos  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
     89  1.23  christos  * PARTICULAR PURPOSE.
     90  1.23  christos  *
     91  1.23  christos  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
     92  1.23  christos  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
     93  1.23  christos  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
     94  1.23  christos  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
     95  1.23  christos  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
     96  1.23  christos  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
     97  1.23  christos  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
     98  1.23  christos  * LIMITED REMEDY.
     99  1.23  christos  *
    100  1.23  christos  * 4.3. Licensee shall not export, either directly or indirectly, any of this
    101  1.23  christos  * software or system incorporating such software without first obtaining any
    102  1.23  christos  * required license or other approval from the U. S. Department of Commerce or
    103  1.23  christos  * any other agency or department of the United States Government. In the
    104  1.23  christos  * event Licensee exports any such software from the United States or
    105  1.23  christos  * re-exports any such software from a foreign destination, Licensee shall
    106  1.23  christos  * ensure that the distribution and export/re-export of the software is in
    107  1.23  christos  * compliance with all laws, regulations, orders, or other restrictions of the
    108  1.23  christos  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
    109  1.23  christos  * any of its subsidiaries will export/re-export any technical data, process,
    110  1.23  christos  * software, or service, directly or indirectly, to any country for which the
    111  1.23  christos  * United States government or any agency thereof requires an export license,
    112  1.23  christos  * other governmental approval, or letter of assurance, without first obtaining
    113  1.23  christos  * such license, approval or letter.
    114  1.23  christos  *
    115  1.23  christos  *****************************************************************************
    116  1.23  christos  *
    117  1.23  christos  * Alternatively, you may choose to be licensed under the terms of the
    118  1.23  christos  * following license:
    119  1.23  christos  *
    120   1.2  christos  * Redistribution and use in source and binary forms, with or without
    121   1.2  christos  * modification, are permitted provided that the following conditions
    122   1.2  christos  * are met:
    123   1.2  christos  * 1. Redistributions of source code must retain the above copyright
    124   1.2  christos  *    notice, this list of conditions, and the following disclaimer,
    125   1.2  christos  *    without modification.
    126   1.2  christos  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
    127   1.2  christos  *    substantially similar to the "NO WARRANTY" disclaimer below
    128   1.2  christos  *    ("Disclaimer") and any redistribution must be conditioned upon
    129   1.2  christos  *    including a substantially similar Disclaimer requirement for further
    130   1.2  christos  *    binary redistribution.
    131   1.2  christos  * 3. Neither the names of the above-listed copyright holders nor the names
    132   1.2  christos  *    of any contributors may be used to endorse or promote products derived
    133   1.2  christos  *    from this software without specific prior written permission.
    134   1.2  christos  *
    135   1.2  christos  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    136   1.2  christos  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    137  1.19  christos  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    138   1.2  christos  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    139  1.23  christos  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    140  1.23  christos  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    141  1.23  christos  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    142  1.23  christos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    143  1.23  christos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    144  1.23  christos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    145  1.23  christos  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    146  1.23  christos  *
    147  1.23  christos  * Alternatively, you may choose to be licensed under the terms of the
    148  1.23  christos  * GNU General Public License ("GPL") version 2 as published by the Free
    149  1.23  christos  * Software Foundation.
    150  1.23  christos  *
    151  1.23  christos  *****************************************************************************/
    152   1.1    jruoho 
    153   1.2  christos #include "aslcompiler.h"
    154   1.2  christos #include "aslcompiler.y.h"
    155   1.9  christos #include "acconvert.h"
    156   1.1    jruoho 
    157   1.1    jruoho #include <stdlib.h>
    158   1.1    jruoho #include <string.h>
    159   1.1    jruoho 
    160   1.1    jruoho /*
    161   1.1    jruoho  * Generation:  Use the following command line:
    162   1.1    jruoho  *
    163   1.1    jruoho  * flex.exe -PAslCompiler -i -o$(InputPath).c $(InputPath)
    164   1.1    jruoho  *
    165   1.1    jruoho  * -i: Scanner must be case-insensitive
    166   1.1    jruoho  */
    167   1.1    jruoho 
    168   1.1    jruoho #define _COMPONENT          ACPI_COMPILER
    169   1.2  christos         ACPI_MODULE_NAME    ("aslscanner")
    170   1.2  christos 
    171   1.2  christos 
    172   1.2  christos /* Local prototypes */
    173   1.2  christos 
    174   1.2  christos static void
    175   1.2  christos AslDoLineDirective (void);
    176   1.2  christos 
    177   1.9  christos static BOOLEAN
    178   1.2  christos AslDoComment (void);
    179   1.2  christos 
    180   1.9  christos static BOOLEAN
    181   1.2  christos AslDoCommentType2 (void);
    182   1.2  christos 
    183   1.2  christos static char
    184   1.2  christos AslDoStringLiteral (void);
    185   1.2  christos 
    186   1.2  christos static void
    187   1.1    jruoho count (int type);
    188   1.2  christos 
    189   1.1    jruoho 
    190   1.1    jruoho /*! [Begin] no source code translation */
    191   1.1    jruoho 
    192   1.1    jruoho %}
    193   1.2  christos     /* Definitions */
    194   1.1    jruoho 
    195   1.1    jruoho LeadNameChar                [A-Za-z_]
    196   1.1    jruoho DigitChar                   [0-9]
    197  1.15  christos ErrorCode                   [(][ ]*[1-9][0-9][0-9][0-9][ ]*[)]
    198  1.10  christos OctalChar                   [0-7]
    199   1.1    jruoho HexDigitChar                [A-Fa-f0-9]
    200   1.1    jruoho RootChar                    [\\]
    201   1.1    jruoho Nothing                     []
    202   1.1    jruoho 
    203   1.1    jruoho NameChar                    [A-Za-z_0-9]
    204   1.1    jruoho NameSeg1                    {LeadNameChar}{NameChar}
    205   1.1    jruoho NameSeg2                    {LeadNameChar}{NameChar}{NameChar}
    206   1.1    jruoho NameSeg3                    {LeadNameChar}{NameChar}{NameChar}{NameChar}
    207   1.1    jruoho NameSeg                     {LeadNameChar}|{NameSeg1}|{NameSeg2}|{NameSeg3}
    208   1.1    jruoho 
    209   1.1    jruoho NameString                  {RootChar}|{RootChar}{NamePath}|[\^]+{NamePath}|{NonEmptyNamePath}
    210   1.1    jruoho NamePath                    {NonEmptyNamePath}?
    211   1.1    jruoho NonEmptyNamePath            {NameSeg}{NamePathTail}*
    212   1.1    jruoho NamePathTail                [.]{NameSeg}
    213   1.1    jruoho 
    214   1.1    jruoho %%
    215   1.2  christos     /* Rules */
    216   1.1    jruoho 
    217   1.1    jruoho [ ]                         { count (0); }
    218   1.1    jruoho [\n]                        { count (0); } /* Handle files with both LF and CR/LF */
    219   1.1    jruoho [\r]                        { count (0); } /* termination on both Unix and Windows */
    220   1.1    jruoho [ \t]                       { count (0); }
    221   1.1    jruoho 
    222   1.1    jruoho 
    223   1.3  christos "/*"                        { if (!AslDoComment ()) {yyterminate ();} }
    224   1.3  christos "//"                        { if (!AslDoCommentType2 ()) {yyterminate ();} }
    225   1.1    jruoho 
    226   1.3  christos "\""                        { if (AslDoStringLiteral ()) {return (PARSEOP_STRING_LITERAL);}
    227   1.3  christos                               else {yyterminate ();} }
    228   1.2  christos ";"                         { count (0); return(';'); }
    229   1.1    jruoho 
    230   1.4  christos     /* ASL Extension: Standard C operators */
    231   1.1    jruoho 
    232   1.4  christos "~"                         { count (3); return (PARSEOP_EXP_NOT); }
    233   1.4  christos "!"                         { count (3); return (PARSEOP_EXP_LOGICAL_NOT); }
    234   1.4  christos "*"                         { count (3); return (PARSEOP_EXP_MULTIPLY); }
    235   1.4  christos "/"                         { count (3); return (PARSEOP_EXP_DIVIDE); }
    236   1.4  christos "%"                         { count (3); return (PARSEOP_EXP_MODULO); }
    237   1.4  christos "+"                         { count (3); return (PARSEOP_EXP_ADD); }
    238   1.4  christos "-"                         { count (3); return (PARSEOP_EXP_SUBTRACT); }
    239   1.4  christos ">>"                        { count (3); return (PARSEOP_EXP_SHIFT_RIGHT); }
    240   1.4  christos "<<"                        { count (3); return (PARSEOP_EXP_SHIFT_LEFT); }
    241   1.4  christos "<"                         { count (3); return (PARSEOP_EXP_LESS); }
    242   1.4  christos ">"                         { count (3); return (PARSEOP_EXP_GREATER); }
    243   1.4  christos "&"                         { count (3); return (PARSEOP_EXP_AND); }
    244   1.4  christos "<="                        { count (3); return (PARSEOP_EXP_LESS_EQUAL); }
    245   1.4  christos ">="                        { count (3); return (PARSEOP_EXP_GREATER_EQUAL); }
    246   1.4  christos "=="                        { count (3); return (PARSEOP_EXP_EQUAL); }
    247   1.4  christos "!="                        { count (3); return (PARSEOP_EXP_NOT_EQUAL); }
    248   1.4  christos "|"                         { count (3); return (PARSEOP_EXP_OR); }
    249   1.4  christos "&&"                        { count (3); return (PARSEOP_EXP_LOGICAL_AND); }
    250   1.4  christos "||"                        { count (3); return (PARSEOP_EXP_LOGICAL_OR); }
    251   1.4  christos "++"                        { count (3); return (PARSEOP_EXP_INCREMENT); }
    252   1.4  christos "--"                        { count (3); return (PARSEOP_EXP_DECREMENT); }
    253   1.4  christos "^ "                        { count (3); return (PARSEOP_EXP_XOR); }
    254   1.4  christos 
    255   1.4  christos     /* ASL Extension: Standard C assignment operators */
    256   1.4  christos 
    257   1.4  christos "="                         { count (3); return (PARSEOP_EXP_EQUALS); }
    258   1.4  christos "+="                        { count (3); return (PARSEOP_EXP_ADD_EQ); }
    259   1.4  christos "-="                        { count (3); return (PARSEOP_EXP_SUB_EQ); }
    260   1.4  christos "*="                        { count (3); return (PARSEOP_EXP_MUL_EQ); }
    261   1.4  christos "/="                        { count (3); return (PARSEOP_EXP_DIV_EQ); }
    262   1.4  christos "%="                        { count (3); return (PARSEOP_EXP_MOD_EQ); }
    263   1.4  christos "<<="                       { count (3); return (PARSEOP_EXP_SHL_EQ); }
    264   1.4  christos ">>="                       { count (3); return (PARSEOP_EXP_SHR_EQ); }
    265   1.4  christos "&="                        { count (3); return (PARSEOP_EXP_AND_EQ); }
    266   1.4  christos "^="                        { count (3); return (PARSEOP_EXP_XOR_EQ); }
    267   1.4  christos "|="                        { count (3); return (PARSEOP_EXP_OR_EQ); }
    268   1.4  christos 
    269   1.8  christos "["                         { count (3); return (PARSEOP_EXP_INDEX_LEFT); }
    270   1.8  christos "]"                         { count (0); return (PARSEOP_EXP_INDEX_RIGHT); }
    271   1.8  christos "("                         { count (0); return (PARSEOP_OPEN_PAREN); }
    272   1.8  christos ")"                         { count (0); return (PARSEOP_CLOSE_PAREN); }
    273   1.8  christos 
    274   1.8  christos "{"                         { count (0); return ('{'); }
    275   1.8  christos "}"                         { count (0); return ('}'); }
    276   1.8  christos ","                         { count (0); return (','); }
    277   1.6  christos 
    278   1.4  christos 
    279   1.4  christos     /*
    280   1.4  christos      * Begin standard ASL grammar
    281   1.4  christos      */
    282  1.18  christos [0-9][a-zA-Z0-9]*            { count (1); AslCompilerlval.i = UtDoConstant ((char *) AslCompilertext);
    283  1.18  christos                                  return (PARSEOP_INTEGER); }
    284   1.1    jruoho 
    285   1.1    jruoho "Include"                   { count (1); return (PARSEOP_INCLUDE); }
    286   1.1    jruoho "External"                  { count (1); return (PARSEOP_EXTERNAL); }
    287   1.1    jruoho 
    288   1.2  christos  /*
    289   1.2  christos   * The #line directive is emitted by the preprocessor and handled
    290   1.2  christos   * here in the main iASL lexer - simply set the line number and
    291   1.2  christos   * optionally the current filename.
    292   1.2  christos   */
    293   1.2  christos "#line"                     { AslDoLineDirective ();}
    294   1.1    jruoho 
    295   1.1    jruoho 
    296   1.2  christos  /****************************************************************************
    297   1.2  christos   *
    298   1.2  christos   * Main ASL operators
    299   1.2  christos   *
    300   1.2  christos   ****************************************************************************/
    301   1.2  christos 
    302   1.1    jruoho "AccessAs"                  { count (1); return (PARSEOP_ACCESSAS); }
    303   1.2  christos "Acquire"                   { count (3); return (PARSEOP_ACQUIRE); }
    304   1.2  christos "Add"                       { count (3); return (PARSEOP_ADD); }
    305   1.2  christos "Alias"                     { count (2); return (PARSEOP_ALIAS); }
    306   1.2  christos "And"                       { count (3); return (PARSEOP_AND); }
    307   1.1    jruoho "BankField"                 { count (2); return (PARSEOP_BANKFIELD); }
    308   1.2  christos "Break"                     { count (3); return (PARSEOP_BREAK); }
    309   1.2  christos "BreakPoint"                { count (3); return (PARSEOP_BREAKPOINT); }
    310   1.2  christos "Buffer"                    { count (1); return (PARSEOP_BUFFER); }
    311   1.2  christos "Case"                      { count (3); return (PARSEOP_CASE); }
    312   1.2  christos "Concatenate"               { count (3); return (PARSEOP_CONCATENATE); }
    313   1.2  christos "ConcatenateResTemplate"    { count (3); return (PARSEOP_CONCATENATERESTEMPLATE); }
    314   1.2  christos "CondRefOf"                 { count (3); return (PARSEOP_CONDREFOF); }
    315   1.2  christos "Connection"                { count (2); return (PARSEOP_CONNECTION); }
    316   1.2  christos "Continue"                  { count (3); return (PARSEOP_CONTINUE); }
    317   1.2  christos "CopyObject"                { count (3); return (PARSEOP_COPYOBJECT); }
    318   1.1    jruoho "CreateBitField"            { count (2); return (PARSEOP_CREATEBITFIELD); }
    319   1.1    jruoho "CreateByteField"           { count (2); return (PARSEOP_CREATEBYTEFIELD); }
    320   1.1    jruoho "CreateDWordField"          { count (2); return (PARSEOP_CREATEDWORDFIELD); }
    321   1.1    jruoho "CreateField"               { count (2); return (PARSEOP_CREATEFIELD); }
    322   1.1    jruoho "CreateQWordField"          { count (2); return (PARSEOP_CREATEQWORDFIELD); }
    323   1.1    jruoho "CreateWordField"           { count (2); return (PARSEOP_CREATEWORDFIELD); }
    324   1.1    jruoho "DataTableRegion"           { count (2); return (PARSEOP_DATATABLEREGION); }
    325   1.2  christos "Debug"                     { count (1); return (PARSEOP_DEBUG); }
    326   1.2  christos "Decrement"                 { count (3); return (PARSEOP_DECREMENT); }
    327   1.2  christos "Default"                   { count (3); return (PARSEOP_DEFAULT); }
    328   1.6  christos "DefinitionBlock"           { count (1); return (PARSEOP_DEFINITION_BLOCK); }
    329   1.2  christos "DeRefOf"                   { count (3); return (PARSEOP_DEREFOF); }
    330   1.1    jruoho "Device"                    { count (2); return (PARSEOP_DEVICE); }
    331   1.2  christos "Divide"                    { count (3); return (PARSEOP_DIVIDE); }
    332   1.2  christos "Eisaid"                    { count (1); return (PARSEOP_EISAID); }
    333   1.2  christos "Else"                      { count (3); return (PARSEOP_ELSE); }
    334   1.2  christos "ElseIf"                    { count (3); return (PARSEOP_ELSEIF); }
    335   1.1    jruoho "Event"                     { count (2); return (PARSEOP_EVENT); }
    336   1.2  christos "Fatal"                     { count (3); return (PARSEOP_FATAL); }
    337   1.1    jruoho "Field"                     { count (2); return (PARSEOP_FIELD); }
    338   1.2  christos "FindSetLeftBit"            { count (3); return (PARSEOP_FINDSETLEFTBIT); }
    339   1.2  christos "FindSetRightBit"           { count (3); return (PARSEOP_FINDSETRIGHTBIT); }
    340   1.2  christos "FromBcd"                   { count (3); return (PARSEOP_FROMBCD); }
    341   1.1    jruoho "Function"                  { count (2); return (PARSEOP_FUNCTION); }
    342   1.1    jruoho "If"                        { count (3); return (PARSEOP_IF); }
    343   1.1    jruoho "Increment"                 { count (3); return (PARSEOP_INCREMENT); }
    344   1.1    jruoho "Index"                     { count (3); return (PARSEOP_INDEX); }
    345   1.2  christos "IndexField"                { count (2); return (PARSEOP_INDEXFIELD); }
    346   1.1    jruoho "LAnd"                      { count (3); return (PARSEOP_LAND); }
    347   1.1    jruoho "LEqual"                    { count (3); return (PARSEOP_LEQUAL); }
    348   1.1    jruoho "LGreater"                  { count (3); return (PARSEOP_LGREATER); }
    349   1.1    jruoho "LGreaterEqual"             { count (3); return (PARSEOP_LGREATEREQUAL); }
    350   1.1    jruoho "LLess"                     { count (3); return (PARSEOP_LLESS); }
    351   1.1    jruoho "LLessEqual"                { count (3); return (PARSEOP_LLESSEQUAL); }
    352   1.1    jruoho "LNot"                      { count (3); return (PARSEOP_LNOT); }
    353   1.1    jruoho "LNotEqual"                 { count (3); return (PARSEOP_LNOTEQUAL); }
    354   1.2  christos "Load"                      { count (3); return (PARSEOP_LOAD); }
    355   1.1    jruoho "LoadTable"                 { count (3); return (PARSEOP_LOADTABLE); }
    356   1.1    jruoho "LOr"                       { count (3); return (PARSEOP_LOR); }
    357   1.1    jruoho "Match"                     { count (3); return (PARSEOP_MATCH); }
    358   1.2  christos "Method"                    { count (2); return (PARSEOP_METHOD); }
    359   1.1    jruoho "Mid"                       { count (3); return (PARSEOP_MID); }
    360   1.1    jruoho "Mod"                       { count (3); return (PARSEOP_MOD); }
    361   1.1    jruoho "Multiply"                  { count (3); return (PARSEOP_MULTIPLY); }
    362   1.2  christos "Mutex"                     { count (2); return (PARSEOP_MUTEX); }
    363   1.2  christos "Name"                      { count (2); return (PARSEOP_NAME); }
    364   1.1    jruoho "NAnd"                      { count (3); return (PARSEOP_NAND); }
    365   1.2  christos "Noop"                      { if (!AcpiGbl_IgnoreNoopOperator) {count (3); return (PARSEOP_NOOP);} }
    366   1.1    jruoho "NOr"                       { count (3); return (PARSEOP_NOR); }
    367   1.1    jruoho "Not"                       { count (3); return (PARSEOP_NOT); }
    368   1.2  christos "Notify"                    { count (3); return (PARSEOP_NOTIFY); }
    369   1.1    jruoho "ObjectType"                { count (3); return (PARSEOP_OBJECTTYPE); }
    370   1.2  christos "Offset"                    { count (1); return (PARSEOP_OFFSET); }
    371   1.2  christos "One"                       { count (1); return (PARSEOP_ONE); }
    372   1.2  christos "Ones"                      { count (1); return (PARSEOP_ONES); }
    373   1.2  christos "OperationRegion"           { count (2); return (PARSEOP_OPERATIONREGION); }
    374   1.1    jruoho "Or"                        { count (3); return (PARSEOP_OR); }
    375   1.2  christos "Package"                   { count (1); return (PARSEOP_PACKAGE); }
    376   1.2  christos "PowerResource"             { count (2); return (PARSEOP_POWERRESOURCE); }
    377   1.2  christos "Processor"                 { count (2); return (PARSEOP_PROCESSOR); }
    378   1.1    jruoho "RefOf"                     { count (3); return (PARSEOP_REFOF); }
    379   1.2  christos "Release"                   { count (3); return (PARSEOP_RELEASE); }
    380   1.2  christos "Reset"                     { count (3); return (PARSEOP_RESET); }
    381   1.2  christos "Return"                    { count (3); return (PARSEOP_RETURN); }
    382   1.2  christos "Revision"                  { count (1); return (PARSEOP_REVISION); }
    383   1.2  christos "Scope"                     { count (2); return (PARSEOP_SCOPE); }
    384   1.1    jruoho "ShiftLeft"                 { count (3); return (PARSEOP_SHIFTLEFT); }
    385   1.1    jruoho "ShiftRight"                { count (3); return (PARSEOP_SHIFTRIGHT); }
    386   1.2  christos "Signal"                    { count (3); return (PARSEOP_SIGNAL); }
    387   1.1    jruoho "SizeOf"                    { count (3); return (PARSEOP_SIZEOF); }
    388   1.2  christos "Sleep"                     { count (3); return (PARSEOP_SLEEP); }
    389   1.2  christos "Stall"                     { count (3); return (PARSEOP_STALL); }
    390   1.1    jruoho "Store"                     { count (3); return (PARSEOP_STORE); }
    391   1.1    jruoho "Subtract"                  { count (3); return (PARSEOP_SUBTRACT); }
    392   1.2  christos "Switch"                    { count (3); return (PARSEOP_SWITCH); }
    393   1.2  christos "ThermalZone"               { count (2); return (PARSEOP_THERMALZONE); }
    394   1.1    jruoho "Timer"                     { count (3); return (PARSEOP_TIMER); }
    395   1.2  christos "ToBcd"                     { count (3); return (PARSEOP_TOBCD); }
    396   1.1    jruoho "ToBuffer"                  { count (3); return (PARSEOP_TOBUFFER); }
    397   1.1    jruoho "ToDecimalString"           { count (3); return (PARSEOP_TODECIMALSTRING); }
    398   1.1    jruoho "ToHexString"               { count (3); return (PARSEOP_TOHEXSTRING); }
    399   1.1    jruoho "ToInteger"                 { count (3); return (PARSEOP_TOINTEGER); }
    400   1.1    jruoho "ToString"                  { count (3); return (PARSEOP_TOSTRING); }
    401   1.2  christos "ToUuid"                    { count (1); return (PARSEOP_TOUUID); }
    402   1.2  christos "Unicode"                   { count (1); return (PARSEOP_UNICODE); }
    403   1.2  christos "Unload"                    { count (3); return (PARSEOP_UNLOAD); }
    404   1.1    jruoho "Wait"                      { count (3); return (PARSEOP_WAIT); }
    405   1.2  christos "While"                     { count (3); return (PARSEOP_WHILE); }
    406   1.1    jruoho "XOr"                       { count (3); return (PARSEOP_XOR); }
    407   1.2  christos "Zero"                      { count (1); return (PARSEOP_ZERO); }
    408   1.2  christos 
    409   1.2  christos     /* Control method arguments and locals */
    410   1.1    jruoho 
    411   1.1    jruoho "Arg0"                      { count (1); return (PARSEOP_ARG0); }
    412   1.1    jruoho "Arg1"                      { count (1); return (PARSEOP_ARG1); }
    413   1.1    jruoho "Arg2"                      { count (1); return (PARSEOP_ARG2); }
    414   1.1    jruoho "Arg3"                      { count (1); return (PARSEOP_ARG3); }
    415   1.1    jruoho "Arg4"                      { count (1); return (PARSEOP_ARG4); }
    416   1.1    jruoho "Arg5"                      { count (1); return (PARSEOP_ARG5); }
    417   1.1    jruoho "Arg6"                      { count (1); return (PARSEOP_ARG6); }
    418   1.1    jruoho "Local0"                    { count (1); return (PARSEOP_LOCAL0); }
    419   1.1    jruoho "Local1"                    { count (1); return (PARSEOP_LOCAL1); }
    420   1.1    jruoho "Local2"                    { count (1); return (PARSEOP_LOCAL2); }
    421   1.1    jruoho "Local3"                    { count (1); return (PARSEOP_LOCAL3); }
    422   1.1    jruoho "Local4"                    { count (1); return (PARSEOP_LOCAL4); }
    423   1.1    jruoho "Local5"                    { count (1); return (PARSEOP_LOCAL5); }
    424   1.1    jruoho "Local6"                    { count (1); return (PARSEOP_LOCAL6); }
    425   1.1    jruoho "Local7"                    { count (1); return (PARSEOP_LOCAL7); }
    426   1.1    jruoho 
    427   1.1    jruoho 
    428   1.2  christos  /****************************************************************************
    429   1.2  christos   *
    430   1.2  christos   * Resource Descriptor macros
    431   1.2  christos   *
    432   1.2  christos   ****************************************************************************/
    433   1.1    jruoho 
    434   1.1    jruoho "ResourceTemplate"          { count (1); return (PARSEOP_RESOURCETEMPLATE); }
    435   1.2  christos "RawDataBuffer"             { count (1); return (PARSEOP_DATABUFFER); }
    436   1.2  christos 
    437  1.19  christos "Csi2Bus"                   { count (1); return (PARSEOP_CSI2_SERIALBUS); }
    438   1.1    jruoho "DMA"                       { count (1); return (PARSEOP_DMA); }
    439   1.1    jruoho "DWordIO"                   { count (1); return (PARSEOP_DWORDIO); }
    440   1.1    jruoho "DWordMemory"               { count (1); return (PARSEOP_DWORDMEMORY); }
    441  1.22  christos "DWordPcc"                  { count (1); return (PARSEOP_DWORDPCC); }
    442   1.1    jruoho "DWordSpace"                { count (1); return (PARSEOP_DWORDSPACE); }
    443   1.1    jruoho "EndDependentFn"            { count (1); return (PARSEOP_ENDDEPENDENTFN); }
    444   1.1    jruoho "ExtendedIO"                { count (1); return (PARSEOP_EXTENDEDIO); }
    445   1.1    jruoho "ExtendedMemory"            { count (1); return (PARSEOP_EXTENDEDMEMORY); }
    446   1.1    jruoho "ExtendedSpace"             { count (1); return (PARSEOP_EXTENDEDSPACE); }
    447   1.2  christos "FixedDma"                  { count (1); return (PARSEOP_FIXEDDMA); }
    448   1.1    jruoho "FixedIO"                   { count (1); return (PARSEOP_FIXEDIO); }
    449   1.2  christos "GpioInt"                   { count (1); return (PARSEOP_GPIO_INT); }
    450   1.2  christos "GpioIo"                    { count (1); return (PARSEOP_GPIO_IO); }
    451   1.2  christos "I2cSerialBus"              { count (1); return (PARSEOP_I2C_SERIALBUS); }
    452   1.7  christos "I2cSerialBusV2"            { count (1); return (PARSEOP_I2C_SERIALBUS_V2); }
    453   1.1    jruoho "Interrupt"                 { count (1); return (PARSEOP_INTERRUPT); }
    454   1.1    jruoho "IO"                        { count (1); return (PARSEOP_IO); }
    455   1.2  christos "IRQ"                       { count (1); return (PARSEOP_IRQ); }
    456   1.1    jruoho "IRQNoFlags"                { count (1); return (PARSEOP_IRQNOFLAGS); }
    457   1.1    jruoho "Memory24"                  { count (1); return (PARSEOP_MEMORY24); }
    458   1.2  christos "Memory32"                  { count (1); return (PARSEOP_MEMORY32); }
    459   1.1    jruoho "Memory32Fixed"             { count (1); return (PARSEOP_MEMORY32FIXED); }
    460  1.10  christos "PinConfig"                 { count (1); return (PARSEOP_PINCONFIG); }
    461  1.10  christos "PinFunction"               { count (1); return (PARSEOP_PINFUNCTION); }
    462  1.10  christos "PinGroup"                  { count (1); return (PARSEOP_PINGROUP); }
    463  1.10  christos "PinGroupConfig"            { count (1); return (PARSEOP_PINGROUPCONFIG); }
    464  1.10  christos "PinGroupFunction"          { count (1); return (PARSEOP_PINGROUPFUNCTION); }
    465  1.21  christos "ClockInput"                { count (1); return (PARSEOP_CLOCKINPUT); }
    466   1.1    jruoho "QWordIO"                   { count (1); return (PARSEOP_QWORDIO); }
    467   1.1    jruoho "QWordMemory"               { count (1); return (PARSEOP_QWORDMEMORY); }
    468  1.22  christos "QWordPcc"                  { count (1); return (PARSEOP_DWORDPCC); }
    469   1.1    jruoho "QWordSpace"                { count (1); return (PARSEOP_QWORDSPACE); }
    470   1.1    jruoho "Register"                  { count (1); return (PARSEOP_REGISTER); }
    471   1.2  christos "SpiSerialBus"              { count (1); return (PARSEOP_SPI_SERIALBUS); }
    472   1.7  christos "SpiSerialBusV2"            { count (1); return (PARSEOP_SPI_SERIALBUS_V2); }
    473   1.1    jruoho "StartDependentFn"          { count (1); return (PARSEOP_STARTDEPENDENTFN); }
    474   1.1    jruoho "StartDependentFnNoPri"     { count (1); return (PARSEOP_STARTDEPENDENTFN_NOPRI); }
    475   1.2  christos "UartSerialBus"             { count (1); return (PARSEOP_UART_SERIALBUS); }
    476   1.7  christos "UartSerialBusV2"           { count (1); return (PARSEOP_UART_SERIALBUS_V2); }
    477   1.1    jruoho "VendorLong"                { count (1); return (PARSEOP_VENDORLONG); }
    478   1.1    jruoho "VendorShort"               { count (1); return (PARSEOP_VENDORSHORT); }
    479   1.1    jruoho "WordBusNumber"             { count (1); return (PARSEOP_WORDBUSNUMBER); }
    480   1.1    jruoho "WordIO"                    { count (1); return (PARSEOP_WORDIO); }
    481  1.22  christos "WordPcc"                   { count (1); return (PARSEOP_DWORDPCC); }
    482   1.1    jruoho "WordSpace"                 { count (1); return (PARSEOP_WORDSPACE); }
    483   1.1    jruoho 
    484   1.1    jruoho 
    485   1.2  christos  /****************************************************************************
    486   1.2  christos   *
    487   1.2  christos   * Keywords used as arguments to ASL operators and macros
    488   1.2  christos   *
    489   1.2  christos   ****************************************************************************/
    490   1.2  christos 
    491   1.2  christos     /*  AccessAttribKeyword: Serial Bus Attributes (ACPI 5.0) */
    492   1.2  christos 
    493   1.2  christos "AttribQuick"               { count (0); return (PARSEOP_ACCESSATTRIB_QUICK); }
    494   1.2  christos "AttribSendReceive"         { count (0); return (PARSEOP_ACCESSATTRIB_SND_RCV); }
    495   1.2  christos "AttribByte"                { count (0); return (PARSEOP_ACCESSATTRIB_BYTE); }
    496   1.2  christos "AttribWord"                { count (0); return (PARSEOP_ACCESSATTRIB_WORD); }
    497   1.2  christos "AttribBlock"               { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK); }
    498   1.2  christos "AttribProcessCall"         { count (0); return (PARSEOP_ACCESSATTRIB_WORD_CALL); }
    499   1.2  christos "AttribBlockProcessCall"    { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK_CALL); }
    500   1.1    jruoho 
    501   1.2  christos     /* AccessAttribKeyword: Legacy synonyms for above (pre-ACPI 5.0) */
    502   1.1    jruoho 
    503   1.1    jruoho "SMBQuick"                  { count (0); return (PARSEOP_ACCESSATTRIB_QUICK); }
    504   1.1    jruoho "SMBSendReceive"            { count (0); return (PARSEOP_ACCESSATTRIB_SND_RCV); }
    505   1.1    jruoho "SMBByte"                   { count (0); return (PARSEOP_ACCESSATTRIB_BYTE); }
    506   1.1    jruoho "SMBWord"                   { count (0); return (PARSEOP_ACCESSATTRIB_WORD); }
    507   1.1    jruoho "SMBBlock"                  { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK); }
    508   1.1    jruoho "SMBProcessCall"            { count (0); return (PARSEOP_ACCESSATTRIB_WORD_CALL); }
    509   1.1    jruoho "SMBBlockProcessCall"       { count (0); return (PARSEOP_ACCESSATTRIB_BLOCK_CALL); }
    510   1.1    jruoho 
    511   1.2  christos     /* AccessTypeKeyword: Field Access Types */
    512   1.1    jruoho 
    513   1.2  christos "AnyAcc"                    { count (0); return (PARSEOP_ACCESSTYPE_ANY); }
    514   1.2  christos "ByteAcc"                   { count (0); return (PARSEOP_ACCESSTYPE_BYTE); }
    515   1.2  christos "WordAcc"                   { count (0); return (PARSEOP_ACCESSTYPE_WORD); }
    516   1.2  christos "DWordAcc"                  { count (0); return (PARSEOP_ACCESSTYPE_DWORD); }
    517   1.2  christos "QWordAcc"                  { count (0); return (PARSEOP_ACCESSTYPE_QWORD); }
    518   1.2  christos "BufferAcc"                 { count (0); return (PARSEOP_ACCESSTYPE_BUF); }
    519   1.1    jruoho 
    520   1.2  christos     /* AddressingModeKeyword: Mode - Resource Descriptors (ACPI 5.0) */
    521   1.1    jruoho 
    522   1.2  christos "AddressingMode7Bit"        { count (0); return (PARSEOP_ADDRESSINGMODE_7BIT); }
    523   1.2  christos "AddressingMode10Bit"       { count (0); return (PARSEOP_ADDRESSINGMODE_10BIT); }
    524   1.1    jruoho 
    525   1.2  christos     /* AddressKeyword: ACPI memory range types */
    526   1.1    jruoho 
    527   1.2  christos "AddressRangeMemory"        { count (0); return (PARSEOP_ADDRESSTYPE_MEMORY); }
    528   1.2  christos "AddressRangeReserved"      { count (0); return (PARSEOP_ADDRESSTYPE_RESERVED); }
    529   1.2  christos "AddressRangeNVS"           { count (0); return (PARSEOP_ADDRESSTYPE_NVS); }
    530   1.2  christos "AddressRangeACPI"          { count (0); return (PARSEOP_ADDRESSTYPE_ACPI); }
    531   1.1    jruoho 
    532   1.2  christos     /* BusMasterKeyword: DMA Bus Mastering */
    533   1.1    jruoho 
    534   1.2  christos "BusMaster"                 { count (0); return (PARSEOP_BUSMASTERTYPE_MASTER); }
    535   1.2  christos "NotBusMaster"              { count (0); return (PARSEOP_BUSMASTERTYPE_NOTMASTER); }
    536   1.1    jruoho 
    537   1.2  christos     /* ByteLengthKeyword: Bits per Byte - Resource Descriptors (ACPI 5.0) */
    538   1.1    jruoho 
    539   1.2  christos "DataBitsFive"              { count (0); return (PARSEOP_BITSPERBYTE_FIVE); }
    540   1.2  christos "DataBitsSix"               { count (0); return (PARSEOP_BITSPERBYTE_SIX); }
    541   1.2  christos "DataBitsSeven"             { count (0); return (PARSEOP_BITSPERBYTE_SEVEN); }
    542   1.2  christos "DataBitsEight"             { count (0); return (PARSEOP_BITSPERBYTE_EIGHT); }
    543   1.2  christos "DataBitsNine"              { count (0); return (PARSEOP_BITSPERBYTE_NINE); }
    544   1.1    jruoho 
    545   1.2  christos     /* ClockPhaseKeyword: Resource Descriptors (ACPI 5.0) */
    546   1.1    jruoho 
    547   1.2  christos "ClockPhaseFirst"           { count (0); return (PARSEOP_CLOCKPHASE_FIRST); }
    548   1.2  christos "ClockPhaseSecond"          { count (0); return (PARSEOP_CLOCKPHASE_SECOND); }
    549   1.1    jruoho 
    550   1.2  christos     /* ClockPolarityKeyword: Resource Descriptors (ACPI 5.0) */
    551   1.1    jruoho 
    552   1.2  christos "ClockPolarityLow"          { count (0); return (PARSEOP_CLOCKPOLARITY_LOW); }
    553   1.2  christos "ClockPolarityHigh"         { count (0); return (PARSEOP_CLOCKPOLARITY_HIGH); }
    554   1.1    jruoho 
    555   1.2  christos     /* DecodeKeyword: Type of Memory Decoding - Resource Descriptors */
    556   1.1    jruoho 
    557   1.2  christos "PosDecode"                 { count (0); return (PARSEOP_DECODETYPE_POS); }
    558   1.2  christos "SubDecode"                 { count (0); return (PARSEOP_DECODETYPE_SUB); }
    559   1.1    jruoho 
    560   1.2  christos     /* DmaTypeKeyword: DMA Types - DMA Resource Descriptor */
    561   1.1    jruoho 
    562   1.2  christos "Compatibility"             { count (0); return (PARSEOP_DMATYPE_COMPATIBILITY); }
    563   1.2  christos "TypeA"                     { count (0); return (PARSEOP_DMATYPE_A); }
    564   1.2  christos "TypeB"                     { count (0); return (PARSEOP_DMATYPE_B); }
    565   1.2  christos "TypeF"                     { count (0); return (PARSEOP_DMATYPE_F); }
    566   1.1    jruoho 
    567   1.2  christos     /* EndianKeyword: Endian type - Resource Descriptor (ACPI 5.0) */
    568   1.1    jruoho 
    569   1.2  christos "LittleEndian"              { count (0); return (PARSEOP_ENDIAN_LITTLE); }
    570   1.2  christos "BigEndian"                 { count (0); return (PARSEOP_ENDIAN_BIG); }
    571   1.1    jruoho 
    572   1.2  christos     /* ExtendedAttribKeyword: Bus attributes, AccessAs operator (ACPI 5.0) */
    573   1.1    jruoho 
    574  1.13  christos "AttribBytes"               { count (0); return (PARSEOP_ACCESSATTRIB_BYTES); }
    575   1.2  christos "AttribRawBytes"            { count (0); return (PARSEOP_ACCESSATTRIB_RAW_BYTES); }
    576   1.2  christos "AttribRawProcessBytes"     { count (0); return (PARSEOP_ACCESSATTRIB_RAW_PROCESS); }
    577   1.1    jruoho 
    578   1.2  christos     /* FlowControlKeyword: Resource Descriptors (ACPI 5.0) */
    579   1.1    jruoho 
    580   1.2  christos "FlowControlHardware"       { count (0); return (PARSEOP_FLOWCONTROL_HW); }
    581   1.2  christos "FlowControlNone"           { count (0); return (PARSEOP_FLOWCONTROL_NONE); }
    582   1.2  christos "FlowControlXon"            { count (0); return (PARSEOP_FLOWCONTROL_SW); }
    583   1.1    jruoho 
    584   1.2  christos     /* InterruptLevelKeyword: Interrupt Active Types */
    585   1.1    jruoho 
    586   1.2  christos "ActiveBoth"                { count (0); return (PARSEOP_INTLEVEL_ACTIVEBOTH); }
    587   1.2  christos "ActiveHigh"                { count (0); return (PARSEOP_INTLEVEL_ACTIVEHIGH); }
    588   1.2  christos "ActiveLow"                 { count (0); return (PARSEOP_INTLEVEL_ACTIVELOW); }
    589   1.1    jruoho 
    590   1.2  christos     /* InterruptTypeKeyword: Interrupt Types */
    591   1.1    jruoho 
    592   1.2  christos "Edge"                      { count (0); return (PARSEOP_INTTYPE_EDGE); }
    593   1.2  christos "Level"                     { count (0); return (PARSEOP_INTTYPE_LEVEL); }
    594   1.1    jruoho 
    595   1.2  christos     /* IoDecodeKeyword: Type of Memory Decoding - Resource Descriptors */
    596   1.1    jruoho 
    597   1.2  christos "Decode10"                  { count (0); return (PARSEOP_IODECODETYPE_10); }
    598   1.2  christos "Decode16"                  { count (0); return (PARSEOP_IODECODETYPE_16); }
    599   1.1    jruoho 
    600   1.2  christos     /* IoRestrictionKeyword: I/O Restriction - GPIO Resource Descriptors (ACPI 5.0) */
    601   1.1    jruoho 
    602   1.2  christos "IoRestrictionNone"         { count (0); return (PARSEOP_IORESTRICT_NONE); }
    603   1.2  christos "IoRestrictionInputOnly"    { count (0); return (PARSEOP_IORESTRICT_IN); }
    604   1.2  christos "IoRestrictionOutputOnly"   { count (0); return (PARSEOP_IORESTRICT_OUT); }
    605   1.2  christos "IoRestrictionNoneAndPreserve"   { count (0); return (PARSEOP_IORESTRICT_PRESERVE); }
    606   1.1    jruoho 
    607   1.2  christos     /* LockRuleKeyword: Global Lock use for Field Operator */
    608   1.1    jruoho 
    609   1.2  christos "Lock"                      { count (0); return (PARSEOP_LOCKRULE_LOCK); }
    610   1.2  christos "NoLock"                    { count (0); return (PARSEOP_LOCKRULE_NOLOCK); }
    611   1.1    jruoho 
    612   1.2  christos     /* MatchOpKeyword: Types for Match Operator */
    613   1.1    jruoho 
    614   1.2  christos "MTR"                       { count (0); return (PARSEOP_MATCHTYPE_MTR); }
    615   1.2  christos "MEQ"                       { count (0); return (PARSEOP_MATCHTYPE_MEQ); }
    616   1.2  christos "MLE"                       { count (0); return (PARSEOP_MATCHTYPE_MLE); }
    617   1.2  christos "MLT"                       { count (0); return (PARSEOP_MATCHTYPE_MLT); }
    618   1.2  christos "MGE"                       { count (0); return (PARSEOP_MATCHTYPE_MGE); }
    619   1.2  christos "MGT"                       { count (0); return (PARSEOP_MATCHTYPE_MGT); }
    620   1.1    jruoho 
    621   1.2  christos     /* MaxKeyword: Max Range Type - Resource Descriptors */
    622   1.1    jruoho 
    623   1.2  christos "MaxFixed"                  { count (0); return (PARSEOP_MAXTYPE_FIXED); }
    624   1.2  christos "MaxNotFixed"               { count (0); return (PARSEOP_MAXTYPE_NOTFIXED); }
    625   1.1    jruoho 
    626   1.2  christos     /* MemTypeKeyword: Memory Types - Resource Descriptors */
    627   1.1    jruoho 
    628   1.2  christos "Cacheable"                 { count (0); return (PARSEOP_MEMTYPE_CACHEABLE); }
    629   1.2  christos "WriteCombining"            { count (0); return (PARSEOP_MEMTYPE_WRITECOMBINING); }
    630   1.2  christos "Prefetchable"              { count (0); return (PARSEOP_MEMTYPE_PREFETCHABLE); }
    631   1.2  christos "NonCacheable"              { count (0); return (PARSEOP_MEMTYPE_NONCACHEABLE); }
    632   1.1    jruoho 
    633   1.2  christos     /* MinKeyword: Min Range Type - Resource Descriptors */
    634   1.1    jruoho 
    635   1.2  christos "MinFixed"                  { count (0); return (PARSEOP_MINTYPE_FIXED); }
    636   1.2  christos "MinNotFixed"               { count (0); return (PARSEOP_MINTYPE_NOTFIXED); }
    637   1.1    jruoho 
    638   1.2  christos     /* ObjectTypeKeyword: ACPI Object Types */
    639   1.1    jruoho 
    640   1.2  christos "UnknownObj"                { count (0); return (PARSEOP_OBJECTTYPE_UNK); }
    641   1.2  christos "IntObj"                    { count (0); return (PARSEOP_OBJECTTYPE_INT); }
    642   1.2  christos "StrObj"                    { count (0); return (PARSEOP_OBJECTTYPE_STR); }
    643   1.2  christos "BuffObj"                   { count (0); return (PARSEOP_OBJECTTYPE_BUF); }
    644   1.2  christos "PkgObj"                    { count (0); return (PARSEOP_OBJECTTYPE_PKG); }
    645   1.2  christos "FieldUnitObj"              { count (0); return (PARSEOP_OBJECTTYPE_FLD); }
    646   1.2  christos "DeviceObj"                 { count (0); return (PARSEOP_OBJECTTYPE_DEV); }
    647   1.2  christos "EventObj"                  { count (0); return (PARSEOP_OBJECTTYPE_EVT); }
    648   1.2  christos "MethodObj"                 { count (0); return (PARSEOP_OBJECTTYPE_MTH); }
    649   1.2  christos "MutexObj"                  { count (0); return (PARSEOP_OBJECTTYPE_MTX); }
    650   1.2  christos "OpRegionObj"               { count (0); return (PARSEOP_OBJECTTYPE_OPR); }
    651   1.2  christos "PowerResObj"               { count (0); return (PARSEOP_OBJECTTYPE_POW); }
    652   1.2  christos "ProcessorObj"              { count (0); return (PARSEOP_OBJECTTYPE_PRO); }
    653   1.2  christos "ThermalZoneObj"            { count (0); return (PARSEOP_OBJECTTYPE_THZ); }
    654   1.2  christos "BuffFieldObj"              { count (0); return (PARSEOP_OBJECTTYPE_BFF); }
    655   1.2  christos "DDBHandleObj"              { count (0); return (PARSEOP_OBJECTTYPE_DDB); }
    656   1.1    jruoho 
    657   1.2  christos     /* ParityKeyword: Resource Descriptors (ACPI 5.0) */
    658   1.1    jruoho 
    659   1.2  christos "ParityTypeSpace"           { count (0); return (PARSEOP_PARITYTYPE_SPACE); }
    660   1.2  christos "ParityTypeMark"            { count (0); return (PARSEOP_PARITYTYPE_MARK); }
    661   1.2  christos "ParityTypeOdd"             { count (0); return (PARSEOP_PARITYTYPE_ODD); }
    662   1.2  christos "ParityTypeEven"            { count (0); return (PARSEOP_PARITYTYPE_EVEN); }
    663   1.2  christos "ParityTypeNone"            { count (0); return (PARSEOP_PARITYTYPE_NONE); }
    664   1.1    jruoho 
    665   1.2  christos     /* PinConfigKeyword: Pin Configuration - GPIO Resource Descriptors (ACPI 5.0) */
    666   1.1    jruoho 
    667   1.2  christos "PullDefault"               { count (0); return (PARSEOP_PIN_PULLDEFAULT); }
    668   1.2  christos "PullUp"                    { count (0); return (PARSEOP_PIN_PULLUP); }
    669   1.2  christos "PullDown"                  { count (0); return (PARSEOP_PIN_PULLDOWN); }
    670   1.2  christos "PullNone"                  { count (0); return (PARSEOP_PIN_NOPULL); }
    671   1.1    jruoho 
    672  1.21  christos     /* ClockScaleKeyword: Resource Descriptors (ACPI 6.5) */
    673  1.21  christos 
    674  1.21  christos "Hz"               { count (0); return (PARSEOP_CLOCK_HZ); }
    675  1.21  christos "KHz"              { count (0); return (PARSEOP_CLOCK_KHZ); }
    676  1.21  christos "MHz"              { count (0); return (PARSEOP_CLOCK_MHZ); }
    677  1.21  christos 
    678  1.21  christos     /* ClockModeKeyword: Resource Descriptors (ACPI 6.5) */
    679  1.21  christos 
    680  1.21  christos "Fixed"               { count (0); return (PARSEOP_CLOCK_FIXED); }
    681  1.21  christos "Variable"            { count (0); return (PARSEOP_CLOCK_VARIABLE); }
    682  1.21  christos 
    683   1.2  christos     /* PolarityKeyword: Resource Descriptors (ACPI 5.0) */
    684   1.1    jruoho 
    685   1.2  christos "PolarityLow"               { count (0); return (PARSEOP_DEVICEPOLARITY_LOW); }
    686   1.2  christos "PolarityHigh"              { count (0); return (PARSEOP_DEVICEPOLARITY_HIGH); }
    687   1.1    jruoho 
    688   1.2  christos     /* RangeTypeKeyword: I/O Range Types - Resource Descriptors */
    689   1.1    jruoho 
    690   1.2  christos "ISAOnlyRanges"             { count (0); return (PARSEOP_RANGETYPE_ISAONLY); }
    691   1.2  christos "NonISAOnlyRanges"          { count (0); return (PARSEOP_RANGETYPE_NONISAONLY); }
    692   1.2  christos "EntireRange"               { count (0); return (PARSEOP_RANGETYPE_ENTIRE); }
    693   1.1    jruoho 
    694   1.2  christos     /* ReadWriteKeyword: Memory Access Types - Resource Descriptors */
    695   1.1    jruoho 
    696   1.2  christos "ReadWrite"                 { count (0); return (PARSEOP_READWRITETYPE_BOTH); }
    697   1.2  christos "ReadOnly"                  { count (0); return (PARSEOP_READWRITETYPE_READONLY); }
    698   1.1    jruoho 
    699   1.2  christos     /* RegionSpaceKeyword: Operation Region Address Space Types */
    700   1.1    jruoho 
    701   1.2  christos "SystemIO"                  { count (0); return (PARSEOP_REGIONSPACE_IO); }
    702   1.2  christos "SystemMemory"              { count (0); return (PARSEOP_REGIONSPACE_MEM); }
    703   1.2  christos "PCI_Config"                { count (0); return (PARSEOP_REGIONSPACE_PCI); }
    704   1.2  christos "EmbeddedControl"           { count (0); return (PARSEOP_REGIONSPACE_EC); }
    705   1.2  christos "SMBus"                     { count (0); return (PARSEOP_REGIONSPACE_SMBUS); }
    706   1.2  christos "SystemCMOS"                { count (0); return (PARSEOP_REGIONSPACE_CMOS); }
    707   1.2  christos "PciBarTarget"              { count (0); return (PARSEOP_REGIONSPACE_PCIBAR); }
    708   1.2  christos "IPMI"                      { count (0); return (PARSEOP_REGIONSPACE_IPMI); }
    709   1.2  christos "GeneralPurposeIo"          { count (0); return (PARSEOP_REGIONSPACE_GPIO); }       /* ACPI 5.0 */
    710   1.2  christos "GenericSerialBus"          { count (0); return (PARSEOP_REGIONSPACE_GSBUS); }      /* ACPI 5.0 */
    711  1.15  christos "PCC"                       { count (0); return (PARSEOP_REGIONSPACE_PCC); }        /* ACPI 5.0 */
    712  1.17  christos "PlatformRtMechanism"       { count (0); return (PARSEOP_REGIONSPACE_PRM); }
    713   1.2  christos "FFixedHW"                  { count (0); return (PARSEOP_REGIONSPACE_FFIXEDHW); }
    714   1.1    jruoho 
    715   1.2  christos     /* ResourceTypeKeyword: Resource Usage - Resource Descriptors */
    716   1.1    jruoho 
    717   1.2  christos "ResourceConsumer"          { count (0); return (PARSEOP_RESOURCETYPE_CONSUMER); }
    718   1.2  christos "ResourceProducer"          { count (0); return (PARSEOP_RESOURCETYPE_PRODUCER); }
    719   1.1    jruoho 
    720   1.2  christos     /* SerializeRuleKeyword: Control Method Serialization */
    721   1.1    jruoho 
    722   1.2  christos "Serialized"                { count (0); return (PARSEOP_SERIALIZERULE_SERIAL); }
    723   1.2  christos "NotSerialized"             { count (0); return (PARSEOP_SERIALIZERULE_NOTSERIAL); }
    724   1.1    jruoho 
    725   1.2  christos     /* ShareTypeKeyword: Interrupt Sharing - Resource Descriptors */
    726   1.1    jruoho 
    727   1.2  christos "Shared"                    { count (0); return (PARSEOP_SHARETYPE_SHARED); }
    728   1.2  christos "Exclusive"                 { count (0); return (PARSEOP_SHARETYPE_EXCLUSIVE); }
    729   1.2  christos "SharedAndWake"             { count (0); return (PARSEOP_SHARETYPE_SHAREDWAKE); }       /* ACPI 5.0 */
    730   1.2  christos "ExclusiveAndWake"          { count (0); return (PARSEOP_SHARETYPE_EXCLUSIVEWAKE); }    /* ACPI 5.0 */
    731   1.1    jruoho 
    732   1.2  christos     /* SlaveModeKeyword: Resource Descriptors (ACPI 5.0) */
    733   1.1    jruoho 
    734   1.2  christos "ControllerInitiated"       { count (0); return (PARSEOP_SLAVEMODE_CONTROLLERINIT); }
    735   1.2  christos "DeviceInitiated"           { count (0); return (PARSEOP_SLAVEMODE_DEVICEINIT); }
    736   1.1    jruoho 
    737   1.2  christos     /* StopBitsKeyword: Resource Descriptors (ACPI 5.0) */
    738   1.1    jruoho 
    739   1.2  christos "StopBitsOne"               { count (0); return (PARSEOP_STOPBITS_ONE); }
    740   1.2  christos "StopBitsOnePlusHalf"       { count (0); return (PARSEOP_STOPBITS_ONEPLUSHALF); }
    741   1.2  christos "StopBitsTwo"               { count (0); return (PARSEOP_STOPBITS_TWO); }
    742   1.2  christos "StopBitsZero"              { count (0); return (PARSEOP_STOPBITS_ZERO); }
    743   1.1    jruoho 
    744   1.2  christos     /* TransferWidthKeyword: DMA Widths - Fixed DMA Resource Descriptor (ACPI 5.0) */
    745   1.1    jruoho 
    746   1.2  christos "Width8bit"                 { count (0); return (PARSEOP_XFERSIZE_8); }
    747   1.2  christos "Width16bit"                { count (0); return (PARSEOP_XFERSIZE_16); }
    748   1.2  christos "Width32bit"                { count (0); return (PARSEOP_XFERSIZE_32); }
    749   1.2  christos "Width64bit"                { count (0); return (PARSEOP_XFERSIZE_64); }
    750   1.2  christos "Width128bit"               { count (0); return (PARSEOP_XFERSIZE_128); }
    751   1.2  christos "Width256bit"               { count (0); return (PARSEOP_XFERSIZE_256); }
    752   1.1    jruoho 
    753   1.2  christos     /* TranslationKeyword: Translation Density Types - Resource Descriptors */
    754   1.1    jruoho 
    755   1.2  christos "SparseTranslation"         { count (0); return (PARSEOP_TRANSLATIONTYPE_SPARSE); }
    756   1.2  christos "DenseTranslation"          { count (0); return (PARSEOP_TRANSLATIONTYPE_DENSE); }
    757   1.1    jruoho 
    758   1.2  christos     /* TypeKeyword: Translation Types - Resource Descriptors */
    759   1.1    jruoho 
    760   1.2  christos "TypeTranslation"           { count (0); return (PARSEOP_TYPE_TRANSLATION); }
    761   1.2  christos "TypeStatic"                { count (0); return (PARSEOP_TYPE_STATIC); }
    762   1.1    jruoho 
    763   1.2  christos     /* UpdateRuleKeyword: Field Update Rules */
    764   1.1    jruoho 
    765   1.2  christos "Preserve"                  { count (0); return (PARSEOP_UPDATERULE_PRESERVE); }
    766   1.2  christos "WriteAsOnes"               { count (0); return (PARSEOP_UPDATERULE_ONES); }
    767   1.2  christos "WriteAsZeros"              { count (0); return (PARSEOP_UPDATERULE_ZEROS); }
    768   1.1    jruoho 
    769   1.2  christos     /* WireModeKeyword: SPI Wire Mode - Resource Descriptors (ACPI 5.0) */
    770   1.1    jruoho 
    771   1.2  christos "FourWireMode"              { count (0); return (PARSEOP_WIREMODE_FOUR); }
    772   1.2  christos "ThreeWireMode"             { count (0); return (PARSEOP_WIREMODE_THREE); }
    773   1.1    jruoho 
    774   1.2  christos     /* XferTypeKeyword: DMA Transfer Types */
    775   1.1    jruoho 
    776   1.2  christos "Transfer8"                 { count (0); return (PARSEOP_XFERTYPE_8); }
    777   1.2  christos "Transfer8_16"              { count (0); return (PARSEOP_XFERTYPE_8_16); }
    778   1.2  christos "Transfer16"                { count (0); return (PARSEOP_XFERTYPE_16); }
    779   1.1    jruoho 
    780   1.4  christos     /* ToPld macro */
    781   1.4  christos 
    782   1.4  christos "ToPLD"                     { count (0); return (PARSEOP_TOPLD); }
    783   1.4  christos 
    784   1.4  christos "PLD_Revision"              { count (0); return (PARSEOP_PLD_REVISION); }
    785   1.4  christos "PLD_IgnoreColor"           { count (0); return (PARSEOP_PLD_IGNORECOLOR); }
    786   1.4  christos "PLD_Red"                   { count (0); return (PARSEOP_PLD_RED); }
    787   1.4  christos "PLD_Green"                 { count (0); return (PARSEOP_PLD_GREEN); }
    788   1.4  christos "PLD_Blue"                  { count (0); return (PARSEOP_PLD_BLUE); }
    789   1.4  christos "PLD_Width"                 { count (0); return (PARSEOP_PLD_WIDTH); }
    790   1.4  christos "PLD_Height"                { count (0); return (PARSEOP_PLD_HEIGHT); }
    791   1.4  christos "PLD_UserVisible"           { count (0); return (PARSEOP_PLD_USERVISIBLE); }
    792   1.4  christos "PLD_Dock"                  { count (0); return (PARSEOP_PLD_DOCK); }
    793   1.4  christos "PLD_Lid"                   { count (0); return (PARSEOP_PLD_LID); }
    794   1.4  christos "PLD_Panel"                 { count (0); return (PARSEOP_PLD_PANEL); }
    795   1.4  christos "PLD_VerticalPosition"      { count (0); return (PARSEOP_PLD_VERTICALPOSITION); }
    796   1.4  christos "PLD_HorizontalPosition"    { count (0); return (PARSEOP_PLD_HORIZONTALPOSITION); }
    797   1.4  christos "PLD_Shape"                 { count (0); return (PARSEOP_PLD_SHAPE); }
    798   1.4  christos "PLD_GroupOrientation"      { count (0); return (PARSEOP_PLD_GROUPORIENTATION); }
    799   1.4  christos "PLD_GroupToken"            { count (0); return (PARSEOP_PLD_GROUPTOKEN); }
    800   1.4  christos "PLD_GroupPosition"         { count (0); return (PARSEOP_PLD_GROUPPOSITION); }
    801   1.4  christos "PLD_Bay"                   { count (0); return (PARSEOP_PLD_BAY); }
    802   1.4  christos "PLD_Ejectable"             { count (0); return (PARSEOP_PLD_EJECTABLE); }
    803   1.4  christos "PLD_EjectRequired"         { count (0); return (PARSEOP_PLD_EJECTREQUIRED); }
    804   1.4  christos "PLD_CabinetNumber"         { count (0); return (PARSEOP_PLD_CABINETNUMBER); }
    805   1.4  christos "PLD_CardCageNumber"        { count (0); return (PARSEOP_PLD_CARDCAGENUMBER); }
    806   1.4  christos "PLD_Reference"             { count (0); return (PARSEOP_PLD_REFERENCE); }
    807   1.4  christos "PLD_Rotation"              { count (0); return (PARSEOP_PLD_ROTATION); }
    808   1.4  christos "PLD_Order"                 { count (0); return (PARSEOP_PLD_ORDER); }
    809   1.4  christos "PLD_Reserved"              { count (0); return (PARSEOP_PLD_RESERVED); }
    810   1.4  christos "PLD_VerticalOffset"        { count (0); return (PARSEOP_PLD_VERTICALOFFSET); }
    811   1.4  christos "PLD_HorizontalOffset"      { count (0); return (PARSEOP_PLD_HORIZONTALOFFSET); }
    812   1.4  christos 
    813   1.4  christos 
    814   1.4  christos     /* printf debug macros */
    815   1.7  christos 
    816   1.4  christos "printf"                    { count (0); return (PARSEOP_PRINTF); }
    817   1.4  christos "fprintf"                   { count (0); return (PARSEOP_FPRINTF); }
    818   1.4  christos 
    819   1.7  christos     /* Other macros */
    820   1.7  christos 
    821   1.7  christos "For"                       { count (0); return (PARSEOP_FOR); }
    822   1.7  christos 
    823   1.2  christos     /* Predefined compiler names */
    824   1.1    jruoho 
    825   1.2  christos "__DATE__"                  { count (0); return (PARSEOP___DATE__); }
    826   1.2  christos "__FILE__"                  { count (0); return (PARSEOP___FILE__); }
    827   1.2  christos "__LINE__"                  { count (0); return (PARSEOP___LINE__); }
    828   1.2  christos "__PATH__"                  { count (0); return (PARSEOP___PATH__); }
    829  1.10  christos "__METHOD__"                { count (0); return (PARSEOP___METHOD__); }
    830  1.15  christos "__EXPECT__"{ErrorCode}     { char *s;
    831  1.19  christos                                 unsigned int index = 0;
    832  1.15  christos                                 count (0);
    833  1.19  christos                                 while (!isdigit ((int) AslCompilertext[index]))
    834  1.15  christos                                 {
    835  1.15  christos                                     index++;
    836  1.15  christos                                 }
    837  1.15  christos 
    838  1.15  christos                                 /*
    839  1.16  christos                                  * The error code is contained inside the
    840  1.15  christos                                  * {ErrorCode} pattern. Extract it and log it
    841  1.15  christos                                  * as the expected error code.
    842  1.15  christos                                  */
    843  1.15  christos                                 s = UtLocalCacheCalloc (ASL_ERROR_CODE_LENGTH + 1);
    844  1.15  christos                                 memcpy (s, AslCompilertext + index, ASL_ERROR_CODE_LENGTH);
    845  1.15  christos                                 AslLogExpectedExceptionByLine (s); }
    846   1.1    jruoho 
    847   1.2  christos {NameSeg}                   { char *s;
    848   1.2  christos                                 count (0);
    849  1.14  christos                                 s=UtLocalCacheCalloc (ACPI_NAMESEG_SIZE + 1);
    850   1.2  christos                                 if (strcmp (AslCompilertext, "\\"))
    851   1.2  christos                                 {
    852  1.14  christos                                     /*
    853  1.14  christos                                      * According to the ACPI specification,
    854  1.14  christos                                      * NameSegments must have length of 4. If
    855  1.14  christos                                      * the NameSegment has length less than 4,
    856  1.14  christos                                      * they are padded with underscores to meet
    857  1.14  christos                                      * the required length.
    858  1.14  christos                                      */
    859   1.2  christos                                     strcpy (s, "____");
    860   1.2  christos                                 }
    861   1.2  christos                                 memcpy (s, AslCompilertext, strlen (AslCompilertext));
    862   1.2  christos                                 AslCompilerlval.s = s;
    863   1.2  christos                                 DbgPrint (ASL_PARSE_OUTPUT, "NameSeg: %s\n", s);
    864   1.2  christos                                 return (PARSEOP_NAMESEG); }
    865   1.1    jruoho 
    866   1.2  christos {NameString}                { char *s;
    867   1.2  christos                                 count (0);
    868  1.11  christos                                 s=UtLocalCacheCalloc (strlen (AslCompilertext)+1);
    869   1.2  christos                                 strcpy (s, AslCompilertext);
    870   1.2  christos                                 AslCompilerlval.s = s;
    871   1.2  christos                                 DbgPrint (ASL_PARSE_OUTPUT, "NameString: %s\n", s);
    872   1.2  christos                                 return (PARSEOP_NAMESTRING); }
    873   1.1    jruoho 
    874   1.2  christos .                           { count (1);
    875   1.5  christos                                 if (isprint ((unsigned int) *AslCompilertext))
    876   1.5  christos                                 {
    877  1.13  christos                                     snprintf (AslGbl_MsgBuffer, sizeof(AslGbl_MsgBuffer),
    878   1.5  christos                                         "Invalid character (%c), expecting ASL keyword or name",
    879   1.5  christos                                         *AslCompilertext);
    880   1.5  christos                                 }
    881   1.5  christos                                 else
    882   1.5  christos                                 {
    883  1.13  christos                                     snprintf (AslGbl_MsgBuffer, sizeof(AslGbl_MsgBuffer),
    884   1.5  christos                                         "Invalid character (0x%2.2X), expecting ASL keyword or name",
    885   1.5  christos                                         *AslCompilertext);
    886   1.5  christos                                 }
    887  1.13  christos                                 AslCompilererror (AslGbl_MsgBuffer);}
    888   1.1    jruoho 
    889   1.2  christos <<EOF>>                     { if (AslPopInputFileStack ())
    890   1.3  christos                                 {yyterminate();}
    891   1.2  christos                               else
    892   1.3  christos                                 {return (PARSEOP_INCLUDE_END);} };
    893   1.1    jruoho 
    894   1.2  christos %%
    895   1.1    jruoho 
    896   1.2  christos /*! [End] no source code translation !*/
    897   1.1    jruoho 
    898   1.2  christos /*
    899   1.2  christos  * Bring in the scanner support routines
    900   1.2  christos  */
    901   1.2  christos #include "aslsupport.l"
    902