xref: /dflybsd-src/sys/contrib/dev/acpica/source/tools/acpihelp/ahaslkey.c (revision 383048aca08c2de51d27aa8638a36982a0d74550)
10d02842fSSascha Wildner /******************************************************************************
20d02842fSSascha Wildner  *
3896f2e3aSSascha Wildner  * Module Name: ahaslkey - Table of all known ASL non-operator keywords and
4896f2e3aSSascha Wildner  *                         table of iASL Preprocessor directives
50d02842fSSascha Wildner  *
60d02842fSSascha Wildner  *****************************************************************************/
70d02842fSSascha Wildner 
8b4315fc7SSascha Wildner /******************************************************************************
9b4315fc7SSascha Wildner  *
10b4315fc7SSascha Wildner  * 1. Copyright Notice
11b4315fc7SSascha Wildner  *
12*383048acSSascha Wildner  * Some or all of this work - Copyright (c) 1999 - 2021, Intel Corp.
130d02842fSSascha Wildner  * All rights reserved.
140d02842fSSascha Wildner  *
15b4315fc7SSascha Wildner  * 2. License
16b4315fc7SSascha Wildner  *
17b4315fc7SSascha Wildner  * 2.1. This is your license from Intel Corp. under its intellectual property
18b4315fc7SSascha Wildner  * rights. You may have additional license terms from the party that provided
19b4315fc7SSascha Wildner  * you this software, covering your right to use that party's intellectual
20b4315fc7SSascha Wildner  * property rights.
21b4315fc7SSascha Wildner  *
22b4315fc7SSascha Wildner  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23b4315fc7SSascha Wildner  * copy of the source code appearing in this file ("Covered Code") an
24b4315fc7SSascha Wildner  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25b4315fc7SSascha Wildner  * base code distributed originally by Intel ("Original Intel Code") to copy,
26b4315fc7SSascha Wildner  * make derivatives, distribute, use and display any portion of the Covered
27b4315fc7SSascha Wildner  * Code in any form, with the right to sublicense such rights; and
28b4315fc7SSascha Wildner  *
29b4315fc7SSascha Wildner  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30b4315fc7SSascha Wildner  * license (with the right to sublicense), under only those claims of Intel
31b4315fc7SSascha Wildner  * patents that are infringed by the Original Intel Code, to make, use, sell,
32b4315fc7SSascha Wildner  * offer to sell, and import the Covered Code and derivative works thereof
33b4315fc7SSascha Wildner  * solely to the minimum extent necessary to exercise the above copyright
34b4315fc7SSascha Wildner  * license, and in no event shall the patent license extend to any additions
35b4315fc7SSascha Wildner  * to or modifications of the Original Intel Code. No other license or right
36b4315fc7SSascha Wildner  * is granted directly or by implication, estoppel or otherwise;
37b4315fc7SSascha Wildner  *
38b4315fc7SSascha Wildner  * The above copyright and patent license is granted only if the following
39b4315fc7SSascha Wildner  * conditions are met:
40b4315fc7SSascha Wildner  *
41b4315fc7SSascha Wildner  * 3. Conditions
42b4315fc7SSascha Wildner  *
43b4315fc7SSascha Wildner  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44b4315fc7SSascha Wildner  * Redistribution of source code of any substantial portion of the Covered
45b4315fc7SSascha Wildner  * Code or modification with rights to further distribute source must include
46b4315fc7SSascha Wildner  * the above Copyright Notice, the above License, this list of Conditions,
47b4315fc7SSascha Wildner  * and the following Disclaimer and Export Compliance provision. In addition,
48b4315fc7SSascha Wildner  * Licensee must cause all Covered Code to which Licensee contributes to
49b4315fc7SSascha Wildner  * contain a file documenting the changes Licensee made to create that Covered
50b4315fc7SSascha Wildner  * Code and the date of any change. Licensee must include in that file the
51b4315fc7SSascha Wildner  * documentation of any changes made by any predecessor Licensee. Licensee
52b4315fc7SSascha Wildner  * must include a prominent statement that the modification is derived,
53b4315fc7SSascha Wildner  * directly or indirectly, from Original Intel Code.
54b4315fc7SSascha Wildner  *
55b4315fc7SSascha Wildner  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56b4315fc7SSascha Wildner  * Redistribution of source code of any substantial portion of the Covered
57b4315fc7SSascha Wildner  * Code or modification without rights to further distribute source must
58b4315fc7SSascha Wildner  * include the following Disclaimer and Export Compliance provision in the
59b4315fc7SSascha Wildner  * documentation and/or other materials provided with distribution. In
60b4315fc7SSascha Wildner  * addition, Licensee may not authorize further sublicense of source of any
61b4315fc7SSascha Wildner  * portion of the Covered Code, and must include terms to the effect that the
62b4315fc7SSascha Wildner  * license from Licensee to its licensee is limited to the intellectual
63b4315fc7SSascha Wildner  * property embodied in the software Licensee provides to its licensee, and
64b4315fc7SSascha Wildner  * not to intellectual property embodied in modifications its licensee may
65b4315fc7SSascha Wildner  * make.
66b4315fc7SSascha Wildner  *
67b4315fc7SSascha Wildner  * 3.3. Redistribution of Executable. Redistribution in executable form of any
68b4315fc7SSascha Wildner  * substantial portion of the Covered Code or modification must reproduce the
69b4315fc7SSascha Wildner  * above Copyright Notice, and the following Disclaimer and Export Compliance
70b4315fc7SSascha Wildner  * provision in the documentation and/or other materials provided with the
71b4315fc7SSascha Wildner  * distribution.
72b4315fc7SSascha Wildner  *
73b4315fc7SSascha Wildner  * 3.4. Intel retains all right, title, and interest in and to the Original
74b4315fc7SSascha Wildner  * Intel Code.
75b4315fc7SSascha Wildner  *
76b4315fc7SSascha Wildner  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77b4315fc7SSascha Wildner  * Intel shall be used in advertising or otherwise to promote the sale, use or
78b4315fc7SSascha Wildner  * other dealings in products derived from or relating to the Covered Code
79b4315fc7SSascha Wildner  * without prior written authorization from Intel.
80b4315fc7SSascha Wildner  *
81b4315fc7SSascha Wildner  * 4. Disclaimer and Export Compliance
82b4315fc7SSascha Wildner  *
83b4315fc7SSascha Wildner  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84b4315fc7SSascha Wildner  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85b4315fc7SSascha Wildner  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
86b4315fc7SSascha Wildner  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
87b4315fc7SSascha Wildner  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
88b4315fc7SSascha Wildner  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89b4315fc7SSascha Wildner  * PARTICULAR PURPOSE.
90b4315fc7SSascha Wildner  *
91b4315fc7SSascha Wildner  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92b4315fc7SSascha Wildner  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93b4315fc7SSascha Wildner  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94b4315fc7SSascha Wildner  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95b4315fc7SSascha Wildner  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96b4315fc7SSascha Wildner  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
97b4315fc7SSascha Wildner  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98b4315fc7SSascha Wildner  * LIMITED REMEDY.
99b4315fc7SSascha Wildner  *
100b4315fc7SSascha Wildner  * 4.3. Licensee shall not export, either directly or indirectly, any of this
101b4315fc7SSascha Wildner  * software or system incorporating such software without first obtaining any
102b4315fc7SSascha Wildner  * required license or other approval from the U. S. Department of Commerce or
103b4315fc7SSascha Wildner  * any other agency or department of the United States Government. In the
104b4315fc7SSascha Wildner  * event Licensee exports any such software from the United States or
105b4315fc7SSascha Wildner  * re-exports any such software from a foreign destination, Licensee shall
106b4315fc7SSascha Wildner  * ensure that the distribution and export/re-export of the software is in
107b4315fc7SSascha Wildner  * compliance with all laws, regulations, orders, or other restrictions of the
108b4315fc7SSascha Wildner  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109b4315fc7SSascha Wildner  * any of its subsidiaries will export/re-export any technical data, process,
110b4315fc7SSascha Wildner  * software, or service, directly or indirectly, to any country for which the
111b4315fc7SSascha Wildner  * United States government or any agency thereof requires an export license,
112b4315fc7SSascha Wildner  * other governmental approval, or letter of assurance, without first obtaining
113b4315fc7SSascha Wildner  * such license, approval or letter.
114b4315fc7SSascha Wildner  *
115b4315fc7SSascha Wildner  *****************************************************************************
116b4315fc7SSascha Wildner  *
117b4315fc7SSascha Wildner  * Alternatively, you may choose to be licensed under the terms of the
118b4315fc7SSascha Wildner  * following license:
119b4315fc7SSascha Wildner  *
1200d02842fSSascha Wildner  * Redistribution and use in source and binary forms, with or without
1210d02842fSSascha Wildner  * modification, are permitted provided that the following conditions
1220d02842fSSascha Wildner  * are met:
1230d02842fSSascha Wildner  * 1. Redistributions of source code must retain the above copyright
1240d02842fSSascha Wildner  *    notice, this list of conditions, and the following disclaimer,
1250d02842fSSascha Wildner  *    without modification.
1260d02842fSSascha Wildner  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1270d02842fSSascha Wildner  *    substantially similar to the "NO WARRANTY" disclaimer below
1280d02842fSSascha Wildner  *    ("Disclaimer") and any redistribution must be conditioned upon
1290d02842fSSascha Wildner  *    including a substantially similar Disclaimer requirement for further
1300d02842fSSascha Wildner  *    binary redistribution.
1310d02842fSSascha Wildner  * 3. Neither the names of the above-listed copyright holders nor the names
1320d02842fSSascha Wildner  *    of any contributors may be used to endorse or promote products derived
1330d02842fSSascha Wildner  *    from this software without specific prior written permission.
1340d02842fSSascha Wildner  *
135b4315fc7SSascha Wildner  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
136b4315fc7SSascha Wildner  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
137b4315fc7SSascha Wildner  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
138b4315fc7SSascha Wildner  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
139b4315fc7SSascha Wildner  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
140b4315fc7SSascha Wildner  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
141b4315fc7SSascha Wildner  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
142b4315fc7SSascha Wildner  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
143b4315fc7SSascha Wildner  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
144b4315fc7SSascha Wildner  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
145b4315fc7SSascha Wildner  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146b4315fc7SSascha Wildner  *
147b4315fc7SSascha Wildner  * Alternatively, you may choose to be licensed under the terms of the
1480d02842fSSascha Wildner  * GNU General Public License ("GPL") version 2 as published by the Free
1490d02842fSSascha Wildner  * Software Foundation.
1500d02842fSSascha Wildner  *
151b4315fc7SSascha Wildner  *****************************************************************************/
1520d02842fSSascha Wildner 
1530d02842fSSascha Wildner #include "acpihelp.h"
1540d02842fSSascha Wildner 
1550d02842fSSascha Wildner /*
1560d02842fSSascha Wildner  * ASL Keyword types and associated actual keywords.
1570d02842fSSascha Wildner  * This table was extracted from the ACPI specification.
1580d02842fSSascha Wildner  */
15938b5d46cSSascha Wildner const AH_ASL_KEYWORD        Gbl_AslKeywordInfo[] =
1600d02842fSSascha Wildner {
1610d02842fSSascha Wildner     {"AccessAttribKeyword", "Serial Bus Attributes (with legacy SMBus aliases)",
1620d02842fSSascha Wildner         ":= AttribQuick (SMBusQuick) | AttribSendReceive (SMBusSendReceive) | "
1630d02842fSSascha Wildner         "AttribByte (SMBusByte) | AttribWord (SMBusWord) | "
1640d02842fSSascha Wildner         "AttribBlock (SMBusBlock) | AttribProcessCall (SMBusProcessCall) | "
1650d02842fSSascha Wildner         "AttribBlockProcessCall (SMBusProcessCall)"},
1660d02842fSSascha Wildner     {"AccessTypeKeyword", "Field Access Types",
1670d02842fSSascha Wildner         ":= AnyAcc | ByteAcc | WordAcc | DWordAcc | QWordAcc | BufferAcc"},
1680d02842fSSascha Wildner     {"AddressingModeKeyword", "Mode - Resource Descriptors",
1690d02842fSSascha Wildner         ":= AddressingMode7Bit | AddressingMode10Bit"},
1700d02842fSSascha Wildner     {"AddressKeyword", "ACPI memory range types",
1710d02842fSSascha Wildner         ":= AddressRangeMemory | AddressRangeReserved | "
1720d02842fSSascha Wildner         "AddressRangeNVS | AddressRangeACPI"},
1730d02842fSSascha Wildner     {"AddressSpaceKeyword", "Operation Region Address Space Types",
1740d02842fSSascha Wildner         ":= RegionSpaceKeyword | FFixedHW"},
1750d02842fSSascha Wildner     {"BusMasterKeyword", "DMA Bus Mastering",
1760d02842fSSascha Wildner         ":= BusMaster | NotBusMaster"},
1770d02842fSSascha Wildner     {"ByteLengthKeyword", "Bits per Byte - Resource Descriptors",
1780d02842fSSascha Wildner         ":= DataBitsFive | DataBitsSix | DataBitsSeven | DataBitsEight | DataBitsNine"},
1790d02842fSSascha Wildner     {"ClockPhaseKeyword", "Resource Descriptors",
1800d02842fSSascha Wildner         ":= ClockPhaseFirst | ClockPhaseSecond"},
1810d02842fSSascha Wildner     {"ClockPolarityKeyword", "Resource Descriptors",
1820d02842fSSascha Wildner         ":= ClockPolarityLow | ClockPolarityHigh"},
1830d02842fSSascha Wildner     {"DecodeKeyword", "Type of Memory Decoding - Resource Descriptors",
1840d02842fSSascha Wildner         ":= SubDecode | PosDecode"},
1850d02842fSSascha Wildner     {"DmaTypeKeyword", "DMA Types - DMA Resource Descriptor",
1860d02842fSSascha Wildner         ":= Compatibility | TypeA | TypeB | TypeF"},
1870d02842fSSascha Wildner     {"EndianKeyword", "Endian type - Resource Descriptor",
1880d02842fSSascha Wildner         ":= BigEndian | LittleEndian"},
1890d02842fSSascha Wildner     {"ExtendedAttribKeyword", "Extended Bus Attributes",
1900d02842fSSascha Wildner         ":= AttribBytes (AccessLength) | AttribRawBytes (AccessLength) | "
1910d02842fSSascha Wildner         "AttribRawProcessBytes (AccessLength)"},
1920d02842fSSascha Wildner     {"FlowControlKeyword", "Resource Descriptor",
1930d02842fSSascha Wildner         ":= FlowControlNone | FlowControlXon | FlowControlHardware"},
1940d02842fSSascha Wildner     {"InterruptLevelKeyword", "Interrupt Active Types",
1950d02842fSSascha Wildner         ":= ActiveHigh | ActiveLow | ActiveBoth"},
1960d02842fSSascha Wildner     {"InterruptTypeKeyword", "Interrupt Types",
1970d02842fSSascha Wildner         ":= Edge | Level"},
1980d02842fSSascha Wildner     {"IoDecodeKeyword", "I/O Decoding - IO Resource Descriptor",
1990d02842fSSascha Wildner         ":= Decode16 | Decode10"},
2000d02842fSSascha Wildner     {"IoRestrictionKeyword", "I/O Restriction - GPIO Resource Descriptors",
2010d02842fSSascha Wildner         ":= IoRestrictionNone | IoRestrictionInputOnly | "
2020d02842fSSascha Wildner         "IoRestrictionOutputOnly | IoRestrictionNoneAndPreserve"},
2030d02842fSSascha Wildner     {"LockRuleKeyword", "Global Lock use for Field Operator",
2040d02842fSSascha Wildner         ":= Lock | NoLock"},
2050d02842fSSascha Wildner     {"MatchOpKeyword", "Types for Match Operator",
2060d02842fSSascha Wildner         ":= MTR | MEQ | MLE | MLT | MGE | MGT"},
2070d02842fSSascha Wildner     {"MaxKeyword", "Max Range Type - Resource Descriptors",
2080d02842fSSascha Wildner         ":= MaxFixed | MaxNotFixed"},
2090d02842fSSascha Wildner     {"MemTypeKeyword", "Memory Types - Resource Descriptors",
2100d02842fSSascha Wildner         ":= Cacheable | WriteCombining | Prefetchable | NonCacheable"},
2110d02842fSSascha Wildner     {"MinKeyword", "Min Range Type - Resource Descriptors",
2120d02842fSSascha Wildner         ":= MinFixed | MinNotFixed"},
2130d02842fSSascha Wildner     {"ObjectTypeKeyword", "ACPI Object Types",
2140d02842fSSascha Wildner         ":= UnknownObj | IntObj | StrObj | BuffObj | PkgObj | FieldUnitObj | "
2150d02842fSSascha Wildner         "DeviceObj | EventObj | MethodObj | MutexObj | OpRegionObj | PowerResObj | "
2160d02842fSSascha Wildner         "ProcessorObj | ThermalZoneObj | BuffFieldObj | DDBHandleObj"},
2170d02842fSSascha Wildner     {"ParityKeyword", "Resource Descriptors",
2180d02842fSSascha Wildner         ":= ParityTypeNone | ParityTypeSpace | ParityTypeMark | "
2190d02842fSSascha Wildner         "ParityTypeOdd | ParityTypeEven"},
2200d02842fSSascha Wildner     {"PinConfigKeyword", "Pin Configuration - GPIO Resource Descriptors",
2210d02842fSSascha Wildner         ":= PullDefault | PullUp | PullDown | PullNone"},
2220d02842fSSascha Wildner     {"PolarityKeyword", "Resource Descriptors",
2230d02842fSSascha Wildner         ":= PolarityHigh | PolarityLow"},
2240d02842fSSascha Wildner     {"RangeTypeKeyword", "I/O Range Types - Resource Descriptors",
2250d02842fSSascha Wildner         ":= ISAOnlyRanges | NonISAOnlyRanges | EntireRange"},
2260d02842fSSascha Wildner     {"ReadWriteKeyword", "Memory Access Types - Resource Descriptors",
2270d02842fSSascha Wildner         ":= ReadWrite | ReadOnly"},
2280d02842fSSascha Wildner     {"RegionSpaceKeyword", "Operation Region Address Space Types",
2290d02842fSSascha Wildner         ":= UserDefRegionSpace | SystemIO | SystemMemory | PCI_Config | "
2300d02842fSSascha Wildner         "EmbeddedControl | SMBus | SystemCMOS | PciBarTarget | IPMI | "
2310d02842fSSascha Wildner         "GeneralPurposeIo, GenericSerialBus"},
2320d02842fSSascha Wildner     {"ResourceTypeKeyword", "Resource Usage - Resource Descriptors",
2330d02842fSSascha Wildner         ":= ResourceConsumer | ResourceProducer"},
2340d02842fSSascha Wildner     {"SerializeRuleKeyword", "Control Method Serialization",
2350d02842fSSascha Wildner         ":= Serialized | NotSerialized"},
2360d02842fSSascha Wildner     {"ShareTypeKeyword", "Interrupt Sharing - Resource Descriptors",
2370d02842fSSascha Wildner         ":= Shared | Exclusive | SharedAndWake | ExclusiveAndWake"},
2380d02842fSSascha Wildner     {"SlaveModeKeyword", "Resource Descriptors",
2390d02842fSSascha Wildner         ":= ControllerInitiated | DeviceInitiated"},
2400d02842fSSascha Wildner     {"StopBitsKeyword", "Resource Descriptors",
2410d02842fSSascha Wildner         ":= StopBitsZero | StopBitsOne | StopBitsOnePlusHalf | StopBitsTwo"},
2420d02842fSSascha Wildner     {"TransferWidthKeyword", "DMA Widths - Fixed DMA Resource Descriptor",
2430d02842fSSascha Wildner         ":= Width8bit | Width16bit | Width32bit | Width64bit | "
2440d02842fSSascha Wildner         "Width128bit | Width256bit"},
2450d02842fSSascha Wildner     {"TranslationKeyword", "Translation Density Types - Resource Descriptors",
2460d02842fSSascha Wildner         ":= SparseTranslation | DenseTranslation"},
2470d02842fSSascha Wildner     {"TypeKeyword", "Translation Types - Resource Descriptors",
2480d02842fSSascha Wildner         ":= TypeTranslation | TypeStatic"},
2490d02842fSSascha Wildner     {"UpdateRuleKeyword", "Field Update Rules",
2500d02842fSSascha Wildner         ":= Preserve | WriteAsOnes | WriteAsZeros"},
2510d02842fSSascha Wildner     {"UserDefRegionSpace", "User defined address spaces",
2520d02842fSSascha Wildner         ":= IntegerData => 0x80 - 0xFF"},
2530d02842fSSascha Wildner     {"WireModeKeyword", "SPI Wire Mode - Resource Descriptors",
2540d02842fSSascha Wildner         ":= ThreeWireMode | FourWireMode"},
2550d02842fSSascha Wildner     {"XferTypeKeyword", "DMA Transfer Types",
2560d02842fSSascha Wildner         ":= Transfer8 | Transfer16 | Transfer8_16"},
2570d02842fSSascha Wildner     {NULL, NULL, NULL}
2580d02842fSSascha Wildner };
259896f2e3aSSascha Wildner 
260896f2e3aSSascha Wildner /* Preprocessor directives */
261896f2e3aSSascha Wildner 
26238b5d46cSSascha Wildner const AH_DIRECTIVE_INFO      Gbl_PreprocessorDirectives[] =
263896f2e3aSSascha Wildner {
264267c04fdSSascha Wildner     {"#include \"Filename\"",               "Standard include of an ASCII ASL source code file"},
265267c04fdSSascha Wildner     {"#include <Filename>",                 "Alternate syntax for #include, alternate search path"},
266267c04fdSSascha Wildner     {"#includebuffer \"Filename\" <Name>",  "Include a binary file to create AML Buffer with ASL namepath"},
267267c04fdSSascha Wildner     {"#includebuffer <Filename> <Name>",    "Alternate syntax for #includebuffer, alternate search path"},
268267c04fdSSascha Wildner 
269267c04fdSSascha Wildner     {"",  ""},
270267c04fdSSascha Wildner     {"#define <Name>, <Defined name>",      "Simple macro definition (full macros not supported at this time)"},
271267c04fdSSascha Wildner     {"#define <Expression>, <Defined name>","Simple macro definition (full macros not supported at this time)"},
272267c04fdSSascha Wildner     {"#undef <Defined name>",               "Delete a previous #define"},
273267c04fdSSascha Wildner 
274267c04fdSSascha Wildner     {"",  ""},
275267c04fdSSascha Wildner     {"#if <Expression>",                    "Evaluate <Expression> and test return value"},
276267c04fdSSascha Wildner     {"#ifdef <Defined name>",               "Test existence of the <Defined Name>"},
277267c04fdSSascha Wildner     {"#ifndef <Defined name>",              "Test non-existence of the <Defined Name>"},
278267c04fdSSascha Wildner     {"#elif <Expression>",                  "Else-If contraction - evaluate #if <Expression>, test return value"},
279267c04fdSSascha Wildner     {"#else",                               "Execute alternate case for a previous #if, #ifdef or #ifndef block"},
280267c04fdSSascha Wildner     {"#endif",                              "Close a previous #if, #ifdef or #ifndef block"},
281267c04fdSSascha Wildner 
282267c04fdSSascha Wildner     {"",   ""},
283267c04fdSSascha Wildner     {"#line <LineNumber> [Filename]",       "Set the current ASL source code line number, optional filename"},
284267c04fdSSascha Wildner 
285267c04fdSSascha Wildner     {"",   ""},
286267c04fdSSascha Wildner     {"#error \"String\"",                   "Emit error message and abort compilation"},
287267c04fdSSascha Wildner     {"#warning \"String\"",                 "Emit an iASL warning at this location in the ASL source"},
288267c04fdSSascha Wildner 
289267c04fdSSascha Wildner     {"",  ""},
290267c04fdSSascha Wildner     {"#pragma disable (Error number)",      "Disable an iASL error or warning number"},
291267c04fdSSascha Wildner     {"#pragma message \"String\"",          "Emit an informational message to the output file(s)"},
292267c04fdSSascha Wildner 
293267c04fdSSascha Wildner     {"",  ""},
294267c04fdSSascha Wildner     {"__FILE__",                            "Return the simple filename of the current ASL file"},
295267c04fdSSascha Wildner     {"__PATH__",                            "Return the full pathname of the current ASL file"},
296267c04fdSSascha Wildner     {"__LINE__",                            "Return the current line number within the current ASL file"},
297267c04fdSSascha Wildner     {"__DATE__",                            "Return the current date"},
2983c639e0cSSascha Wildner     {"__METHOD__",                          "Return the declared name of the current control method"},
299267c04fdSSascha Wildner     {"__IASL__",                            "Permanently defined for the iASL compiler"},
300267c04fdSSascha Wildner     {NULL,                                   NULL}
301896f2e3aSSascha Wildner };
302