asltokens.y revision 1.1.1.18 1 1.1 christos NoEcho('
2 1.1 christos /******************************************************************************
3 1.1 christos *
4 1.1 christos * Module Name: asltokens.y - Bison/Yacc token types
5 1.1 christos *
6 1.1 christos *****************************************************************************/
7 1.1 christos
8 1.1.1.17 christos /******************************************************************************
9 1.1.1.17 christos *
10 1.1.1.17 christos * 1. Copyright Notice
11 1.1.1.17 christos *
12 1.1.1.18 christos * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
13 1.1 christos * All rights reserved.
14 1.1 christos *
15 1.1.1.17 christos * 2. License
16 1.1.1.17 christos *
17 1.1.1.17 christos * 2.1. This is your license from Intel Corp. under its intellectual property
18 1.1.1.17 christos * rights. You may have additional license terms from the party that provided
19 1.1.1.17 christos * you this software, covering your right to use that party's intellectual
20 1.1.1.17 christos * property rights.
21 1.1.1.17 christos *
22 1.1.1.17 christos * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23 1.1.1.17 christos * copy of the source code appearing in this file ("Covered Code") an
24 1.1.1.17 christos * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25 1.1.1.17 christos * base code distributed originally by Intel ("Original Intel Code") to copy,
26 1.1.1.17 christos * make derivatives, distribute, use and display any portion of the Covered
27 1.1.1.17 christos * Code in any form, with the right to sublicense such rights; and
28 1.1.1.17 christos *
29 1.1.1.17 christos * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30 1.1.1.17 christos * license (with the right to sublicense), under only those claims of Intel
31 1.1.1.17 christos * patents that are infringed by the Original Intel Code, to make, use, sell,
32 1.1.1.17 christos * offer to sell, and import the Covered Code and derivative works thereof
33 1.1.1.17 christos * solely to the minimum extent necessary to exercise the above copyright
34 1.1.1.17 christos * license, and in no event shall the patent license extend to any additions
35 1.1.1.17 christos * to or modifications of the Original Intel Code. No other license or right
36 1.1.1.17 christos * is granted directly or by implication, estoppel or otherwise;
37 1.1.1.17 christos *
38 1.1.1.17 christos * The above copyright and patent license is granted only if the following
39 1.1.1.17 christos * conditions are met:
40 1.1.1.17 christos *
41 1.1.1.17 christos * 3. Conditions
42 1.1.1.17 christos *
43 1.1.1.17 christos * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44 1.1.1.17 christos * Redistribution of source code of any substantial portion of the Covered
45 1.1.1.17 christos * Code or modification with rights to further distribute source must include
46 1.1.1.17 christos * the above Copyright Notice, the above License, this list of Conditions,
47 1.1.1.17 christos * and the following Disclaimer and Export Compliance provision. In addition,
48 1.1.1.17 christos * Licensee must cause all Covered Code to which Licensee contributes to
49 1.1.1.17 christos * contain a file documenting the changes Licensee made to create that Covered
50 1.1.1.17 christos * Code and the date of any change. Licensee must include in that file the
51 1.1.1.17 christos * documentation of any changes made by any predecessor Licensee. Licensee
52 1.1.1.17 christos * must include a prominent statement that the modification is derived,
53 1.1.1.17 christos * directly or indirectly, from Original Intel Code.
54 1.1.1.17 christos *
55 1.1.1.17 christos * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56 1.1.1.17 christos * Redistribution of source code of any substantial portion of the Covered
57 1.1.1.17 christos * Code or modification without rights to further distribute source must
58 1.1.1.17 christos * include the following Disclaimer and Export Compliance provision in the
59 1.1.1.17 christos * documentation and/or other materials provided with distribution. In
60 1.1.1.17 christos * addition, Licensee may not authorize further sublicense of source of any
61 1.1.1.17 christos * portion of the Covered Code, and must include terms to the effect that the
62 1.1.1.17 christos * license from Licensee to its licensee is limited to the intellectual
63 1.1.1.17 christos * property embodied in the software Licensee provides to its licensee, and
64 1.1.1.17 christos * not to intellectual property embodied in modifications its licensee may
65 1.1.1.17 christos * make.
66 1.1.1.17 christos *
67 1.1.1.17 christos * 3.3. Redistribution of Executable. Redistribution in executable form of any
68 1.1.1.17 christos * substantial portion of the Covered Code or modification must reproduce the
69 1.1.1.17 christos * above Copyright Notice, and the following Disclaimer and Export Compliance
70 1.1.1.17 christos * provision in the documentation and/or other materials provided with the
71 1.1.1.17 christos * distribution.
72 1.1.1.17 christos *
73 1.1.1.17 christos * 3.4. Intel retains all right, title, and interest in and to the Original
74 1.1.1.17 christos * Intel Code.
75 1.1.1.17 christos *
76 1.1.1.17 christos * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77 1.1.1.17 christos * Intel shall be used in advertising or otherwise to promote the sale, use or
78 1.1.1.17 christos * other dealings in products derived from or relating to the Covered Code
79 1.1.1.17 christos * without prior written authorization from Intel.
80 1.1.1.17 christos *
81 1.1.1.17 christos * 4. Disclaimer and Export Compliance
82 1.1.1.17 christos *
83 1.1.1.17 christos * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84 1.1.1.17 christos * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85 1.1.1.17 christos * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
86 1.1.1.17 christos * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
87 1.1.1.17 christos * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
88 1.1.1.17 christos * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89 1.1.1.17 christos * PARTICULAR PURPOSE.
90 1.1.1.17 christos *
91 1.1.1.17 christos * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92 1.1.1.17 christos * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93 1.1.1.17 christos * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94 1.1.1.17 christos * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95 1.1.1.17 christos * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96 1.1.1.17 christos * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
97 1.1.1.17 christos * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98 1.1.1.17 christos * LIMITED REMEDY.
99 1.1.1.17 christos *
100 1.1.1.17 christos * 4.3. Licensee shall not export, either directly or indirectly, any of this
101 1.1.1.17 christos * software or system incorporating such software without first obtaining any
102 1.1.1.17 christos * required license or other approval from the U. S. Department of Commerce or
103 1.1.1.17 christos * any other agency or department of the United States Government. In the
104 1.1.1.17 christos * event Licensee exports any such software from the United States or
105 1.1.1.17 christos * re-exports any such software from a foreign destination, Licensee shall
106 1.1.1.17 christos * ensure that the distribution and export/re-export of the software is in
107 1.1.1.17 christos * compliance with all laws, regulations, orders, or other restrictions of the
108 1.1.1.17 christos * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109 1.1.1.17 christos * any of its subsidiaries will export/re-export any technical data, process,
110 1.1.1.17 christos * software, or service, directly or indirectly, to any country for which the
111 1.1.1.17 christos * United States government or any agency thereof requires an export license,
112 1.1.1.17 christos * other governmental approval, or letter of assurance, without first obtaining
113 1.1.1.17 christos * such license, approval or letter.
114 1.1.1.17 christos *
115 1.1.1.17 christos *****************************************************************************
116 1.1.1.17 christos *
117 1.1.1.17 christos * Alternatively, you may choose to be licensed under the terms of the
118 1.1.1.17 christos * following license:
119 1.1.1.17 christos *
120 1.1 christos * Redistribution and use in source and binary forms, with or without
121 1.1 christos * modification, are permitted provided that the following conditions
122 1.1 christos * are met:
123 1.1 christos * 1. Redistributions of source code must retain the above copyright
124 1.1 christos * notice, this list of conditions, and the following disclaimer,
125 1.1 christos * without modification.
126 1.1 christos * 2. Redistributions in binary form must reproduce at minimum a disclaimer
127 1.1 christos * substantially similar to the "NO WARRANTY" disclaimer below
128 1.1 christos * ("Disclaimer") and any redistribution must be conditioned upon
129 1.1 christos * including a substantially similar Disclaimer requirement for further
130 1.1 christos * binary redistribution.
131 1.1 christos * 3. Neither the names of the above-listed copyright holders nor the names
132 1.1 christos * of any contributors may be used to endorse or promote products derived
133 1.1 christos * from this software without specific prior written permission.
134 1.1 christos *
135 1.1 christos * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
136 1.1 christos * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
137 1.1.1.13 christos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
138 1.1 christos * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
139 1.1.1.17 christos * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
140 1.1.1.17 christos * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
141 1.1.1.17 christos * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
142 1.1.1.17 christos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
143 1.1.1.17 christos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
144 1.1.1.17 christos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
145 1.1.1.17 christos * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 1.1.1.17 christos *
147 1.1.1.17 christos * Alternatively, you may choose to be licensed under the terms of the
148 1.1.1.17 christos * GNU General Public License ("GPL") version 2 as published by the Free
149 1.1.1.17 christos * Software Foundation.
150 1.1.1.17 christos *
151 1.1.1.17 christos *****************************************************************************/
152 1.1 christos
153 1.1 christos ')
154 1.1 christos
155 1.1 christos /******************************************************************************
156 1.1 christos *
157 1.1 christos * Token types: These are returned by the lexer
158 1.1 christos *
159 1.1 christos * NOTE: This list MUST match the AslKeywordMapping table found
160 1.1 christos * in aslmap.c EXACTLY! Double check any changes!
161 1.1 christos *
162 1.1 christos *****************************************************************************/
163 1.1 christos
164 1.1.1.5 christos /*
165 1.1.1.5 christos * Most tokens are defined to return <i>, which is a UINT64.
166 1.1.1.5 christos *
167 1.1.1.5 christos * These tokens return <s>, a pointer to the associated lexed string:
168 1.1.1.5 christos *
169 1.1.1.5 christos * PARSEOP_NAMESEG
170 1.1.1.5 christos * PARSEOP_NAMESTRING
171 1.1.1.5 christos * PARSEOP_STRING_LITERAL
172 1.1.1.5 christos * PARSEOP_STRUCTURE_NAMESTRING
173 1.1.1.5 christos */
174 1.1 christos %token <i> PARSEOP_ACCESSAS
175 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_BLOCK
176 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_BLOCK_CALL
177 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_BYTE
178 1.1.1.9 christos %token <i> PARSEOP_ACCESSATTRIB_BYTES
179 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_QUICK
180 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_RAW_BYTES
181 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_RAW_PROCESS
182 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_SND_RCV
183 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_WORD
184 1.1 christos %token <i> PARSEOP_ACCESSATTRIB_WORD_CALL
185 1.1 christos %token <i> PARSEOP_ACCESSTYPE_ANY
186 1.1 christos %token <i> PARSEOP_ACCESSTYPE_BUF
187 1.1 christos %token <i> PARSEOP_ACCESSTYPE_BYTE
188 1.1 christos %token <i> PARSEOP_ACCESSTYPE_DWORD
189 1.1 christos %token <i> PARSEOP_ACCESSTYPE_QWORD
190 1.1 christos %token <i> PARSEOP_ACCESSTYPE_WORD
191 1.1 christos %token <i> PARSEOP_ACQUIRE
192 1.1 christos %token <i> PARSEOP_ADD
193 1.1 christos %token <i> PARSEOP_ADDRESSINGMODE_7BIT
194 1.1 christos %token <i> PARSEOP_ADDRESSINGMODE_10BIT
195 1.1 christos %token <i> PARSEOP_ADDRESSTYPE_ACPI
196 1.1 christos %token <i> PARSEOP_ADDRESSTYPE_MEMORY
197 1.1 christos %token <i> PARSEOP_ADDRESSTYPE_NVS
198 1.1 christos %token <i> PARSEOP_ADDRESSTYPE_RESERVED
199 1.1 christos %token <i> PARSEOP_ALIAS
200 1.1 christos %token <i> PARSEOP_AND
201 1.1 christos %token <i> PARSEOP_ARG0
202 1.1 christos %token <i> PARSEOP_ARG1
203 1.1 christos %token <i> PARSEOP_ARG2
204 1.1 christos %token <i> PARSEOP_ARG3
205 1.1 christos %token <i> PARSEOP_ARG4
206 1.1 christos %token <i> PARSEOP_ARG5
207 1.1 christos %token <i> PARSEOP_ARG6
208 1.1 christos %token <i> PARSEOP_BANKFIELD
209 1.1 christos %token <i> PARSEOP_BITSPERBYTE_EIGHT
210 1.1 christos %token <i> PARSEOP_BITSPERBYTE_FIVE
211 1.1 christos %token <i> PARSEOP_BITSPERBYTE_NINE
212 1.1 christos %token <i> PARSEOP_BITSPERBYTE_SEVEN
213 1.1 christos %token <i> PARSEOP_BITSPERBYTE_SIX
214 1.1 christos %token <i> PARSEOP_BREAK
215 1.1 christos %token <i> PARSEOP_BREAKPOINT
216 1.1 christos %token <i> PARSEOP_BUFFER
217 1.1 christos %token <i> PARSEOP_BUSMASTERTYPE_MASTER
218 1.1 christos %token <i> PARSEOP_BUSMASTERTYPE_NOTMASTER
219 1.1 christos %token <i> PARSEOP_BYTECONST
220 1.1 christos %token <i> PARSEOP_CASE
221 1.1 christos %token <i> PARSEOP_CLOCKPHASE_FIRST
222 1.1 christos %token <i> PARSEOP_CLOCKPHASE_SECOND
223 1.1 christos %token <i> PARSEOP_CLOCKPOLARITY_HIGH
224 1.1 christos %token <i> PARSEOP_CLOCKPOLARITY_LOW
225 1.1 christos %token <i> PARSEOP_CONCATENATE
226 1.1 christos %token <i> PARSEOP_CONCATENATERESTEMPLATE
227 1.1 christos %token <i> PARSEOP_CONDREFOF
228 1.1 christos %token <i> PARSEOP_CONNECTION
229 1.1 christos %token <i> PARSEOP_CONTINUE
230 1.1 christos %token <i> PARSEOP_COPYOBJECT
231 1.1 christos %token <i> PARSEOP_CREATEBITFIELD
232 1.1 christos %token <i> PARSEOP_CREATEBYTEFIELD
233 1.1 christos %token <i> PARSEOP_CREATEDWORDFIELD
234 1.1 christos %token <i> PARSEOP_CREATEFIELD
235 1.1 christos %token <i> PARSEOP_CREATEQWORDFIELD
236 1.1 christos %token <i> PARSEOP_CREATEWORDFIELD
237 1.1 christos %token <i> PARSEOP_DATABUFFER
238 1.1 christos %token <i> PARSEOP_DATATABLEREGION
239 1.1 christos %token <i> PARSEOP_DEBUG
240 1.1 christos %token <i> PARSEOP_DECODETYPE_POS
241 1.1 christos %token <i> PARSEOP_DECODETYPE_SUB
242 1.1 christos %token <i> PARSEOP_DECREMENT
243 1.1 christos %token <i> PARSEOP_DEFAULT
244 1.1 christos %token <i> PARSEOP_DEFAULT_ARG
245 1.1.1.3 christos %token <i> PARSEOP_DEFINITION_BLOCK
246 1.1 christos %token <i> PARSEOP_DEREFOF
247 1.1 christos %token <i> PARSEOP_DEVICE
248 1.1 christos %token <i> PARSEOP_DEVICEPOLARITY_HIGH
249 1.1 christos %token <i> PARSEOP_DEVICEPOLARITY_LOW
250 1.1 christos %token <i> PARSEOP_DIVIDE
251 1.1 christos %token <i> PARSEOP_DMA
252 1.1 christos %token <i> PARSEOP_DMATYPE_A
253 1.1 christos %token <i> PARSEOP_DMATYPE_COMPATIBILITY
254 1.1 christos %token <i> PARSEOP_DMATYPE_B
255 1.1 christos %token <i> PARSEOP_DMATYPE_F
256 1.1 christos %token <i> PARSEOP_DWORDCONST
257 1.1 christos %token <i> PARSEOP_DWORDIO
258 1.1 christos %token <i> PARSEOP_DWORDMEMORY
259 1.1.1.16 christos %token <i> PARSEOP_DWORDPCC
260 1.1 christos %token <i> PARSEOP_DWORDSPACE
261 1.1 christos %token <i> PARSEOP_EISAID
262 1.1 christos %token <i> PARSEOP_ELSE
263 1.1 christos %token <i> PARSEOP_ELSEIF
264 1.1 christos %token <i> PARSEOP_ENDDEPENDENTFN
265 1.1 christos %token <i> PARSEOP_ENDIAN_BIG
266 1.1 christos %token <i> PARSEOP_ENDIAN_LITTLE
267 1.1 christos %token <i> PARSEOP_ENDTAG
268 1.1 christos %token <i> PARSEOP_ERRORNODE
269 1.1 christos %token <i> PARSEOP_EVENT
270 1.1 christos %token <i> PARSEOP_EXTENDEDIO
271 1.1 christos %token <i> PARSEOP_EXTENDEDMEMORY
272 1.1 christos %token <i> PARSEOP_EXTENDEDSPACE
273 1.1 christos %token <i> PARSEOP_EXTERNAL
274 1.1 christos %token <i> PARSEOP_FATAL
275 1.1 christos %token <i> PARSEOP_FIELD
276 1.1 christos %token <i> PARSEOP_FINDSETLEFTBIT
277 1.1 christos %token <i> PARSEOP_FINDSETRIGHTBIT
278 1.1 christos %token <i> PARSEOP_FIXEDDMA
279 1.1 christos %token <i> PARSEOP_FIXEDIO
280 1.1 christos %token <i> PARSEOP_FLOWCONTROL_HW
281 1.1 christos %token <i> PARSEOP_FLOWCONTROL_NONE
282 1.1 christos %token <i> PARSEOP_FLOWCONTROL_SW
283 1.1 christos %token <i> PARSEOP_FROMBCD
284 1.1 christos %token <i> PARSEOP_FUNCTION
285 1.1 christos %token <i> PARSEOP_GPIO_INT
286 1.1 christos %token <i> PARSEOP_GPIO_IO
287 1.1.1.13 christos %token <i> PARSEOP_CSI2_SERIALBUS
288 1.1 christos %token <i> PARSEOP_I2C_SERIALBUS
289 1.1.1.4 christos %token <i> PARSEOP_I2C_SERIALBUS_V2
290 1.1 christos %token <i> PARSEOP_IF
291 1.1 christos %token <i> PARSEOP_INCLUDE
292 1.1 christos %token <i> PARSEOP_INCLUDE_END
293 1.1 christos %token <i> PARSEOP_INCREMENT
294 1.1 christos %token <i> PARSEOP_INDEX
295 1.1 christos %token <i> PARSEOP_INDEXFIELD
296 1.1 christos %token <i> PARSEOP_INTEGER
297 1.1 christos %token <i> PARSEOP_INTERRUPT
298 1.1 christos %token <i> PARSEOP_INTLEVEL_ACTIVEBOTH
299 1.1 christos %token <i> PARSEOP_INTLEVEL_ACTIVEHIGH
300 1.1 christos %token <i> PARSEOP_INTLEVEL_ACTIVELOW
301 1.1 christos %token <i> PARSEOP_INTTYPE_EDGE
302 1.1 christos %token <i> PARSEOP_INTTYPE_LEVEL
303 1.1 christos %token <i> PARSEOP_IO
304 1.1 christos %token <i> PARSEOP_IODECODETYPE_10
305 1.1 christos %token <i> PARSEOP_IODECODETYPE_16
306 1.1 christos %token <i> PARSEOP_IORESTRICT_IN
307 1.1 christos %token <i> PARSEOP_IORESTRICT_NONE
308 1.1 christos %token <i> PARSEOP_IORESTRICT_OUT
309 1.1 christos %token <i> PARSEOP_IORESTRICT_PRESERVE
310 1.1 christos %token <i> PARSEOP_IRQ
311 1.1 christos %token <i> PARSEOP_IRQNOFLAGS
312 1.1 christos %token <i> PARSEOP_LAND
313 1.1 christos %token <i> PARSEOP_LEQUAL
314 1.1 christos %token <i> PARSEOP_LGREATER
315 1.1 christos %token <i> PARSEOP_LGREATEREQUAL
316 1.1 christos %token <i> PARSEOP_LLESS
317 1.1 christos %token <i> PARSEOP_LLESSEQUAL
318 1.1 christos %token <i> PARSEOP_LNOT
319 1.1 christos %token <i> PARSEOP_LNOTEQUAL
320 1.1 christos %token <i> PARSEOP_LOAD
321 1.1 christos %token <i> PARSEOP_LOADTABLE
322 1.1 christos %token <i> PARSEOP_LOCAL0
323 1.1 christos %token <i> PARSEOP_LOCAL1
324 1.1 christos %token <i> PARSEOP_LOCAL2
325 1.1 christos %token <i> PARSEOP_LOCAL3
326 1.1 christos %token <i> PARSEOP_LOCAL4
327 1.1 christos %token <i> PARSEOP_LOCAL5
328 1.1 christos %token <i> PARSEOP_LOCAL6
329 1.1 christos %token <i> PARSEOP_LOCAL7
330 1.1 christos %token <i> PARSEOP_LOCKRULE_LOCK
331 1.1 christos %token <i> PARSEOP_LOCKRULE_NOLOCK
332 1.1 christos %token <i> PARSEOP_LOR
333 1.1 christos %token <i> PARSEOP_MATCH
334 1.1 christos %token <i> PARSEOP_MATCHTYPE_MEQ
335 1.1 christos %token <i> PARSEOP_MATCHTYPE_MGE
336 1.1 christos %token <i> PARSEOP_MATCHTYPE_MGT
337 1.1 christos %token <i> PARSEOP_MATCHTYPE_MLE
338 1.1 christos %token <i> PARSEOP_MATCHTYPE_MLT
339 1.1 christos %token <i> PARSEOP_MATCHTYPE_MTR
340 1.1 christos %token <i> PARSEOP_MAXTYPE_FIXED
341 1.1 christos %token <i> PARSEOP_MAXTYPE_NOTFIXED
342 1.1 christos %token <i> PARSEOP_MEMORY24
343 1.1 christos %token <i> PARSEOP_MEMORY32
344 1.1 christos %token <i> PARSEOP_MEMORY32FIXED
345 1.1 christos %token <i> PARSEOP_MEMTYPE_CACHEABLE
346 1.1 christos %token <i> PARSEOP_MEMTYPE_NONCACHEABLE
347 1.1 christos %token <i> PARSEOP_MEMTYPE_PREFETCHABLE
348 1.1 christos %token <i> PARSEOP_MEMTYPE_WRITECOMBINING
349 1.1 christos %token <i> PARSEOP_METHOD
350 1.1 christos %token <i> PARSEOP_METHODCALL
351 1.1 christos %token <i> PARSEOP_MID
352 1.1 christos %token <i> PARSEOP_MINTYPE_FIXED
353 1.1 christos %token <i> PARSEOP_MINTYPE_NOTFIXED
354 1.1 christos %token <i> PARSEOP_MOD
355 1.1 christos %token <i> PARSEOP_MULTIPLY
356 1.1 christos %token <i> PARSEOP_MUTEX
357 1.1 christos %token <i> PARSEOP_NAME
358 1.1 christos %token <s> PARSEOP_NAMESEG
359 1.1 christos %token <s> PARSEOP_NAMESTRING
360 1.1 christos %token <i> PARSEOP_NAND
361 1.1 christos %token <i> PARSEOP_NOOP
362 1.1 christos %token <i> PARSEOP_NOR
363 1.1 christos %token <i> PARSEOP_NOT
364 1.1 christos %token <i> PARSEOP_NOTIFY
365 1.1 christos %token <i> PARSEOP_OBJECTTYPE
366 1.1 christos %token <i> PARSEOP_OBJECTTYPE_BFF
367 1.1 christos %token <i> PARSEOP_OBJECTTYPE_BUF
368 1.1 christos %token <i> PARSEOP_OBJECTTYPE_DDB
369 1.1 christos %token <i> PARSEOP_OBJECTTYPE_DEV
370 1.1 christos %token <i> PARSEOP_OBJECTTYPE_EVT
371 1.1 christos %token <i> PARSEOP_OBJECTTYPE_FLD
372 1.1 christos %token <i> PARSEOP_OBJECTTYPE_INT
373 1.1 christos %token <i> PARSEOP_OBJECTTYPE_MTH
374 1.1 christos %token <i> PARSEOP_OBJECTTYPE_MTX
375 1.1 christos %token <i> PARSEOP_OBJECTTYPE_OPR
376 1.1 christos %token <i> PARSEOP_OBJECTTYPE_PKG
377 1.1 christos %token <i> PARSEOP_OBJECTTYPE_POW
378 1.1 christos %token <i> PARSEOP_OBJECTTYPE_PRO
379 1.1 christos %token <i> PARSEOP_OBJECTTYPE_STR
380 1.1 christos %token <i> PARSEOP_OBJECTTYPE_THZ
381 1.1 christos %token <i> PARSEOP_OBJECTTYPE_UNK
382 1.1 christos %token <i> PARSEOP_OFFSET
383 1.1 christos %token <i> PARSEOP_ONE
384 1.1 christos %token <i> PARSEOP_ONES
385 1.1 christos %token <i> PARSEOP_OPERATIONREGION
386 1.1 christos %token <i> PARSEOP_OR
387 1.1 christos %token <i> PARSEOP_PACKAGE
388 1.1 christos %token <i> PARSEOP_PACKAGE_LENGTH
389 1.1 christos %token <i> PARSEOP_PARITYTYPE_EVEN
390 1.1 christos %token <i> PARSEOP_PARITYTYPE_MARK
391 1.1 christos %token <i> PARSEOP_PARITYTYPE_NONE
392 1.1 christos %token <i> PARSEOP_PARITYTYPE_ODD
393 1.1 christos %token <i> PARSEOP_PARITYTYPE_SPACE
394 1.1.1.7 christos %token <i> PARSEOP_PINCONFIG
395 1.1.1.7 christos %token <i> PARSEOP_PINFUNCTION
396 1.1.1.7 christos %token <i> PARSEOP_PINGROUP
397 1.1.1.7 christos %token <i> PARSEOP_PINGROUPCONFIG
398 1.1.1.7 christos %token <i> PARSEOP_PINGROUPFUNCTION
399 1.1 christos %token <i> PARSEOP_PIN_NOPULL
400 1.1 christos %token <i> PARSEOP_PIN_PULLDEFAULT
401 1.1 christos %token <i> PARSEOP_PIN_PULLDOWN
402 1.1 christos %token <i> PARSEOP_PIN_PULLUP
403 1.1.1.15 christos %token <i> PARSEOP_CLOCKINPUT
404 1.1.1.15 christos %token <i> PARSEOP_CLOCK_HZ
405 1.1.1.15 christos %token <i> PARSEOP_CLOCK_KHZ
406 1.1.1.15 christos %token <i> PARSEOP_CLOCK_MHZ
407 1.1.1.15 christos %token <i> PARSEOP_CLOCK_FIXED
408 1.1.1.15 christos %token <i> PARSEOP_CLOCK_VARIABLE
409 1.1 christos %token <i> PARSEOP_POWERRESOURCE
410 1.1 christos %token <i> PARSEOP_PROCESSOR
411 1.1 christos %token <i> PARSEOP_QWORDCONST
412 1.1 christos %token <i> PARSEOP_QWORDIO
413 1.1 christos %token <i> PARSEOP_QWORDMEMORY
414 1.1.1.16 christos %token <i> PARSEOP_QWORDPCC
415 1.1 christos %token <i> PARSEOP_QWORDSPACE
416 1.1 christos %token <i> PARSEOP_RANGETYPE_ENTIRE
417 1.1 christos %token <i> PARSEOP_RANGETYPE_ISAONLY
418 1.1 christos %token <i> PARSEOP_RANGETYPE_NONISAONLY
419 1.1 christos %token <i> PARSEOP_RAW_DATA
420 1.1 christos %token <i> PARSEOP_READWRITETYPE_BOTH
421 1.1 christos %token <i> PARSEOP_READWRITETYPE_READONLY
422 1.1 christos %token <i> PARSEOP_REFOF
423 1.1 christos %token <i> PARSEOP_REGIONSPACE_CMOS
424 1.1 christos %token <i> PARSEOP_REGIONSPACE_EC
425 1.1 christos %token <i> PARSEOP_REGIONSPACE_FFIXEDHW
426 1.1 christos %token <i> PARSEOP_REGIONSPACE_GPIO
427 1.1 christos %token <i> PARSEOP_REGIONSPACE_GSBUS
428 1.1 christos %token <i> PARSEOP_REGIONSPACE_IO
429 1.1 christos %token <i> PARSEOP_REGIONSPACE_IPMI
430 1.1 christos %token <i> PARSEOP_REGIONSPACE_MEM
431 1.1 christos %token <i> PARSEOP_REGIONSPACE_PCC
432 1.1 christos %token <i> PARSEOP_REGIONSPACE_PCI
433 1.1 christos %token <i> PARSEOP_REGIONSPACE_PCIBAR
434 1.1.1.12 christos %token <i> PARSEOP_REGIONSPACE_PRM
435 1.1 christos %token <i> PARSEOP_REGIONSPACE_SMBUS
436 1.1 christos %token <i> PARSEOP_REGISTER
437 1.1 christos %token <i> PARSEOP_RELEASE
438 1.1 christos %token <i> PARSEOP_RESERVED_BYTES
439 1.1 christos %token <i> PARSEOP_RESET
440 1.1 christos %token <i> PARSEOP_RESOURCETEMPLATE
441 1.1 christos %token <i> PARSEOP_RESOURCETYPE_CONSUMER
442 1.1 christos %token <i> PARSEOP_RESOURCETYPE_PRODUCER
443 1.1 christos %token <i> PARSEOP_RETURN
444 1.1 christos %token <i> PARSEOP_REVISION
445 1.1 christos %token <i> PARSEOP_SCOPE
446 1.1 christos %token <i> PARSEOP_SERIALIZERULE_NOTSERIAL
447 1.1 christos %token <i> PARSEOP_SERIALIZERULE_SERIAL
448 1.1 christos %token <i> PARSEOP_SHARETYPE_EXCLUSIVE
449 1.1 christos %token <i> PARSEOP_SHARETYPE_EXCLUSIVEWAKE
450 1.1 christos %token <i> PARSEOP_SHARETYPE_SHARED
451 1.1 christos %token <i> PARSEOP_SHARETYPE_SHAREDWAKE
452 1.1 christos %token <i> PARSEOP_SHIFTLEFT
453 1.1 christos %token <i> PARSEOP_SHIFTRIGHT
454 1.1 christos %token <i> PARSEOP_SIGNAL
455 1.1 christos %token <i> PARSEOP_SIZEOF
456 1.1 christos %token <i> PARSEOP_SLAVEMODE_CONTROLLERINIT
457 1.1 christos %token <i> PARSEOP_SLAVEMODE_DEVICEINIT
458 1.1 christos %token <i> PARSEOP_SLEEP
459 1.1 christos %token <i> PARSEOP_SPI_SERIALBUS
460 1.1.1.4 christos %token <i> PARSEOP_SPI_SERIALBUS_V2
461 1.1 christos %token <i> PARSEOP_STALL
462 1.1 christos %token <i> PARSEOP_STARTDEPENDENTFN
463 1.1 christos %token <i> PARSEOP_STARTDEPENDENTFN_NOPRI
464 1.1 christos %token <i> PARSEOP_STOPBITS_ONE
465 1.1 christos %token <i> PARSEOP_STOPBITS_ONEPLUSHALF
466 1.1 christos %token <i> PARSEOP_STOPBITS_TWO
467 1.1 christos %token <i> PARSEOP_STOPBITS_ZERO
468 1.1 christos %token <i> PARSEOP_STORE
469 1.1 christos %token <s> PARSEOP_STRING_LITERAL
470 1.1 christos %token <i> PARSEOP_SUBTRACT
471 1.1 christos %token <i> PARSEOP_SWITCH
472 1.1 christos %token <i> PARSEOP_THERMALZONE
473 1.1 christos %token <i> PARSEOP_TIMER
474 1.1 christos %token <i> PARSEOP_TOBCD
475 1.1 christos %token <i> PARSEOP_TOBUFFER
476 1.1 christos %token <i> PARSEOP_TODECIMALSTRING
477 1.1 christos %token <i> PARSEOP_TOHEXSTRING
478 1.1 christos %token <i> PARSEOP_TOINTEGER
479 1.1 christos %token <i> PARSEOP_TOSTRING
480 1.1 christos %token <i> PARSEOP_TOUUID
481 1.1 christos %token <i> PARSEOP_TRANSLATIONTYPE_DENSE
482 1.1 christos %token <i> PARSEOP_TRANSLATIONTYPE_SPARSE
483 1.1 christos %token <i> PARSEOP_TYPE_STATIC
484 1.1 christos %token <i> PARSEOP_TYPE_TRANSLATION
485 1.1 christos %token <i> PARSEOP_UART_SERIALBUS
486 1.1.1.4 christos %token <i> PARSEOP_UART_SERIALBUS_V2
487 1.1 christos %token <i> PARSEOP_UNICODE
488 1.1 christos %token <i> PARSEOP_UNLOAD
489 1.1 christos %token <i> PARSEOP_UPDATERULE_ONES
490 1.1 christos %token <i> PARSEOP_UPDATERULE_PRESERVE
491 1.1 christos %token <i> PARSEOP_UPDATERULE_ZEROS
492 1.1 christos %token <i> PARSEOP_VAR_PACKAGE
493 1.1 christos %token <i> PARSEOP_VENDORLONG
494 1.1 christos %token <i> PARSEOP_VENDORSHORT
495 1.1 christos %token <i> PARSEOP_WAIT
496 1.1 christos %token <i> PARSEOP_WHILE
497 1.1 christos %token <i> PARSEOP_WIREMODE_FOUR
498 1.1 christos %token <i> PARSEOP_WIREMODE_THREE
499 1.1 christos %token <i> PARSEOP_WORDBUSNUMBER
500 1.1 christos %token <i> PARSEOP_WORDCONST
501 1.1 christos %token <i> PARSEOP_WORDIO
502 1.1.1.16 christos %token <i> PARSEOP_WORDPCC
503 1.1 christos %token <i> PARSEOP_WORDSPACE
504 1.1 christos %token <i> PARSEOP_XFERSIZE_8
505 1.1 christos %token <i> PARSEOP_XFERSIZE_16
506 1.1 christos %token <i> PARSEOP_XFERSIZE_32
507 1.1 christos %token <i> PARSEOP_XFERSIZE_64
508 1.1 christos %token <i> PARSEOP_XFERSIZE_128
509 1.1 christos %token <i> PARSEOP_XFERSIZE_256
510 1.1 christos %token <i> PARSEOP_XFERTYPE_8
511 1.1 christos %token <i> PARSEOP_XFERTYPE_8_16
512 1.1 christos %token <i> PARSEOP_XFERTYPE_16
513 1.1 christos %token <i> PARSEOP_XOR
514 1.1 christos %token <i> PARSEOP_ZERO
515 1.1 christos
516 1.1.1.2 christos /* ToPld macro */
517 1.1.1.2 christos
518 1.1.1.2 christos %token <i> PARSEOP_TOPLD
519 1.1.1.2 christos %token <i> PARSEOP_PLD_REVISION
520 1.1.1.2 christos %token <i> PARSEOP_PLD_IGNORECOLOR
521 1.1.1.2 christos %token <i> PARSEOP_PLD_RED
522 1.1.1.2 christos %token <i> PARSEOP_PLD_GREEN
523 1.1.1.2 christos %token <i> PARSEOP_PLD_BLUE
524 1.1.1.2 christos %token <i> PARSEOP_PLD_WIDTH
525 1.1.1.2 christos %token <i> PARSEOP_PLD_HEIGHT
526 1.1.1.2 christos %token <i> PARSEOP_PLD_USERVISIBLE
527 1.1.1.2 christos %token <i> PARSEOP_PLD_DOCK
528 1.1.1.2 christos %token <i> PARSEOP_PLD_LID
529 1.1.1.2 christos %token <i> PARSEOP_PLD_PANEL
530 1.1.1.2 christos %token <i> PARSEOP_PLD_VERTICALPOSITION
531 1.1.1.2 christos %token <i> PARSEOP_PLD_HORIZONTALPOSITION
532 1.1.1.2 christos %token <i> PARSEOP_PLD_SHAPE
533 1.1.1.2 christos %token <i> PARSEOP_PLD_GROUPORIENTATION
534 1.1.1.2 christos %token <i> PARSEOP_PLD_GROUPTOKEN
535 1.1.1.2 christos %token <i> PARSEOP_PLD_GROUPPOSITION
536 1.1.1.2 christos %token <i> PARSEOP_PLD_BAY
537 1.1.1.2 christos %token <i> PARSEOP_PLD_EJECTABLE
538 1.1.1.2 christos %token <i> PARSEOP_PLD_EJECTREQUIRED
539 1.1.1.2 christos %token <i> PARSEOP_PLD_CABINETNUMBER
540 1.1.1.2 christos %token <i> PARSEOP_PLD_CARDCAGENUMBER
541 1.1.1.2 christos %token <i> PARSEOP_PLD_REFERENCE
542 1.1.1.2 christos %token <i> PARSEOP_PLD_ROTATION
543 1.1.1.2 christos %token <i> PARSEOP_PLD_ORDER
544 1.1.1.2 christos %token <i> PARSEOP_PLD_RESERVED
545 1.1.1.2 christos %token <i> PARSEOP_PLD_VERTICALOFFSET
546 1.1.1.2 christos %token <i> PARSEOP_PLD_HORIZONTALOFFSET
547 1.1.1.2 christos
548 1.1.1.2 christos /*
549 1.1.1.2 christos * C-style expression parser. These must appear after all of the
550 1.1.1.2 christos * standard ASL operators and keywords.
551 1.1.1.2 christos *
552 1.1.1.2 christos * Note: The order of these tokens implements the precedence rules
553 1.1.1.2 christos * (low precedence to high). See aslrules.y for an exhaustive list.
554 1.1.1.2 christos */
555 1.1.1.2 christos %right <i> PARSEOP_EXP_EQUALS
556 1.1.1.2 christos PARSEOP_EXP_ADD_EQ
557 1.1.1.2 christos PARSEOP_EXP_SUB_EQ
558 1.1.1.2 christos PARSEOP_EXP_MUL_EQ
559 1.1.1.2 christos PARSEOP_EXP_DIV_EQ
560 1.1.1.2 christos PARSEOP_EXP_MOD_EQ
561 1.1.1.2 christos PARSEOP_EXP_SHL_EQ
562 1.1.1.2 christos PARSEOP_EXP_SHR_EQ
563 1.1.1.2 christos PARSEOP_EXP_AND_EQ
564 1.1.1.2 christos PARSEOP_EXP_XOR_EQ
565 1.1.1.2 christos PARSEOP_EXP_OR_EQ
566 1.1.1.2 christos
567 1.1.1.2 christos %left <i> PARSEOP_EXP_LOGICAL_OR
568 1.1.1.2 christos %left <i> PARSEOP_EXP_LOGICAL_AND
569 1.1.1.2 christos %left <i> PARSEOP_EXP_OR
570 1.1.1.2 christos %left <i> PARSEOP_EXP_XOR
571 1.1.1.2 christos %left <i> PARSEOP_EXP_AND
572 1.1.1.2 christos %left <i> PARSEOP_EXP_EQUAL
573 1.1.1.2 christos PARSEOP_EXP_NOT_EQUAL
574 1.1.1.2 christos %left <i> PARSEOP_EXP_GREATER
575 1.1.1.2 christos PARSEOP_EXP_LESS
576 1.1.1.2 christos PARSEOP_EXP_GREATER_EQUAL
577 1.1.1.2 christos PARSEOP_EXP_LESS_EQUAL
578 1.1.1.2 christos %left <i> PARSEOP_EXP_SHIFT_RIGHT
579 1.1.1.2 christos PARSEOP_EXP_SHIFT_LEFT
580 1.1.1.2 christos %left <i> PARSEOP_EXP_ADD
581 1.1.1.2 christos PARSEOP_EXP_SUBTRACT
582 1.1.1.2 christos %left <i> PARSEOP_EXP_MULTIPLY
583 1.1.1.2 christos PARSEOP_EXP_DIVIDE
584 1.1.1.2 christos PARSEOP_EXP_MODULO
585 1.1.1.2 christos
586 1.1.1.2 christos %right <i> PARSEOP_EXP_NOT
587 1.1.1.2 christos PARSEOP_EXP_LOGICAL_NOT
588 1.1.1.2 christos
589 1.1.1.2 christos %left <i> PARSEOP_EXP_INCREMENT
590 1.1.1.2 christos PARSEOP_EXP_DECREMENT
591 1.1.1.2 christos
592 1.1.1.6 christos %left <i> PARSEOP_OPEN_PAREN
593 1.1.1.6 christos PARSEOP_CLOSE_PAREN
594 1.1.1.6 christos
595 1.1.1.3 christos /* Brackets for Index() support */
596 1.1.1.3 christos
597 1.1.1.3 christos %left <i> PARSEOP_EXP_INDEX_LEFT
598 1.1.1.3 christos %right <i> PARSEOP_EXP_INDEX_RIGHT
599 1.1.1.3 christos
600 1.1.1.4 christos /* Macros */
601 1.1.1.4 christos
602 1.1.1.2 christos %token <i> PARSEOP_PRINTF
603 1.1.1.2 christos %token <i> PARSEOP_FPRINTF
604 1.1.1.4 christos %token <i> PARSEOP_FOR
605 1.1.1.3 christos
606 1.1.1.5 christos /* Structures */
607 1.1.1.5 christos
608 1.1.1.5 christos %token <i> PARSEOP_STRUCTURE
609 1.1.1.5 christos %token <s> PARSEOP_STRUCTURE_NAMESTRING
610 1.1.1.5 christos %token <i> PARSEOP_STRUCTURE_TAG
611 1.1.1.5 christos %token <i> PARSEOP_STRUCTURE_ELEMENT
612 1.1.1.5 christos %token <i> PARSEOP_STRUCTURE_INSTANCE
613 1.1.1.5 christos %token <i> PARSEOP_STRUCTURE_REFERENCE
614 1.1.1.5 christos %token <i> PARSEOP_STRUCTURE_POINTER
615 1.1.1.5 christos
616 1.1.1.5 christos /* Top level */
617 1.1.1.5 christos
618 1.1.1.5 christos %token <i> PARSEOP_ASL_CODE
619 1.1.1.5 christos
620 1.1.1.5 christos
621 1.1.1.5 christos /*******************************************************************************
622 1.1.1.5 christos *
623 1.1.1.5 christos * Tokens below are not in the aslmap.c file
624 1.1.1.5 christos *
625 1.1.1.5 christos ******************************************************************************/
626 1.1.1.5 christos
627 1.1.1.5 christos
628 1.1.1.5 christos /* Tokens below this are not in the aslmap.c file */
629 1.1.1.5 christos
630 1.1.1.2 christos /* Specific parentheses tokens are not used at this time */
631 1.1.1.2 christos /* PARSEOP_EXP_PAREN_OPEN */
632 1.1.1.2 christos /* PARSEOP_EXP_PAREN_CLOSE */
633 1.1.1.2 christos
634 1.1.1.5 christos /* ASL+ variable creation */
635 1.1.1.5 christos
636 1.1.1.5 christos %token <i> PARSEOP_INTEGER_TYPE
637 1.1.1.5 christos %token <i> PARSEOP_STRING_TYPE
638 1.1.1.5 christos %token <i> PARSEOP_BUFFER_TYPE
639 1.1.1.5 christos %token <i> PARSEOP_PACKAGE_TYPE
640 1.1.1.5 christos %token <i> PARSEOP_REFERENCE_TYPE
641 1.1.1.3 christos
642 1.1.1.3 christos
643 1.1 christos /*
644 1.1 christos * Special functions. These should probably stay at the end of this
645 1.1 christos * table.
646 1.1 christos */
647 1.1 christos %token <i> PARSEOP___DATE__
648 1.1 christos %token <i> PARSEOP___FILE__
649 1.1 christos %token <i> PARSEOP___LINE__
650 1.1 christos %token <i> PARSEOP___PATH__
651 1.1.1.7 christos %token <i> PARSEOP___METHOD__
652