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