2 /******************************************************************************
4 * Module Name: aslresources.y - Bison/Yacc production rules for resources
5 * - Keep this file synched with the
6 * CvParseOpBlockType function in cvcompiler.c
8 *****************************************************************************/
10 /******************************************************************************
14 * Some or all of this work - Copyright (c) 1999 - 2019, Intel Corp.
15 * All rights reserved.
19 * 2.1. This is your license from Intel Corp. under its intellectual property
20 * rights. You may have additional license terms from the party that provided
21 * you this software, covering your right to use that party's intellectual
24 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
25 * copy of the source code appearing in this file ("Covered Code") an
26 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
27 * base code distributed originally by Intel ("Original Intel Code") to copy,
28 * make derivatives, distribute, use and display any portion of the Covered
29 * Code in any form, with the right to sublicense such rights; and
31 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
32 * license (with the right to sublicense), under only those claims of Intel
33 * patents that are infringed by the Original Intel Code, to make, use, sell,
34 * offer to sell, and import the Covered Code and derivative works thereof
35 * solely to the minimum extent necessary to exercise the above copyright
36 * license, and in no event shall the patent license extend to any additions
37 * to or modifications of the Original Intel Code. No other license or right
38 * is granted directly or by implication, estoppel or otherwise;
40 * The above copyright and patent license is granted only if the following
45 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
46 * Redistribution of source code of any substantial portion of the Covered
47 * Code or modification with rights to further distribute source must include
48 * the above Copyright Notice, the above License, this list of Conditions,
49 * and the following Disclaimer and Export Compliance provision. In addition,
50 * Licensee must cause all Covered Code to which Licensee contributes to
51 * contain a file documenting the changes Licensee made to create that Covered
52 * Code and the date of any change. Licensee must include in that file the
53 * documentation of any changes made by any predecessor Licensee. Licensee
54 * must include a prominent statement that the modification is derived,
55 * directly or indirectly, from Original Intel Code.
57 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
58 * Redistribution of source code of any substantial portion of the Covered
59 * Code or modification without rights to further distribute source must
60 * include the following Disclaimer and Export Compliance provision in the
61 * documentation and/or other materials provided with distribution. In
62 * addition, Licensee may not authorize further sublicense of source of any
63 * portion of the Covered Code, and must include terms to the effect that the
64 * license from Licensee to its licensee is limited to the intellectual
65 * property embodied in the software Licensee provides to its licensee, and
66 * not to intellectual property embodied in modifications its licensee may
69 * 3.3. Redistribution of Executable. Redistribution in executable form of any
70 * substantial portion of the Covered Code or modification must reproduce the
71 * above Copyright Notice, and the following Disclaimer and Export Compliance
72 * provision in the documentation and/or other materials provided with the
75 * 3.4. Intel retains all right, title, and interest in and to the Original
78 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
79 * Intel shall be used in advertising or otherwise to promote the sale, use or
80 * other dealings in products derived from or relating to the Covered Code
81 * without prior written authorization from Intel.
83 * 4. Disclaimer and Export Compliance
85 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
86 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
87 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
88 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
89 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
90 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
93 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
94 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
95 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
96 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
97 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
98 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
99 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
102 * 4.3. Licensee shall not export, either directly or indirectly, any of this
103 * software or system incorporating such software without first obtaining any
104 * required license or other approval from the U. S. Department of Commerce or
105 * any other agency or department of the United States Government. In the
106 * event Licensee exports any such software from the United States or
107 * re-exports any such software from a foreign destination, Licensee shall
108 * ensure that the distribution and export/re-export of the software is in
109 * compliance with all laws, regulations, orders, or other restrictions of the
110 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
111 * any of its subsidiaries will export/re-export any technical data, process,
112 * software, or service, directly or indirectly, to any country for which the
113 * United States government or any agency thereof requires an export license,
114 * other governmental approval, or letter of assurance, without first obtaining
115 * such license, approval or letter.
117 *****************************************************************************
119 * Alternatively, you may choose to be licensed under the terms of the
122 * Redistribution and use in source and binary forms, with or without
123 * modification, are permitted provided that the following conditions
125 * 1. Redistributions of source code must retain the above copyright
126 * notice, this list of conditions, and the following disclaimer,
127 * without modification.
128 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
129 * substantially similar to the "NO WARRANTY" disclaimer below
130 * ("Disclaimer") and any redistribution must be conditioned upon
131 * including a substantially similar Disclaimer requirement for further
132 * binary redistribution.
133 * 3. Neither the names of the above-listed copyright holders nor the names
134 * of any contributors may be used to endorse or promote products derived
135 * from this software without specific prior written permission.
137 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
138 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
139 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
140 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
141 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
142 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
143 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
144 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
145 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
146 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
147 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
149 * Alternatively, you may choose to be licensed under the terms of the
150 * GNU General Public License ("GPL") version 2 as published by the Free
151 * Software Foundation.
153 *****************************************************************************/
158 /*******************************************************************************
160 * ASL Resource Template Terms
162 ******************************************************************************/
165 * Note: Create two default nodes to allow conversion to a Buffer AML opcode
166 * Also, insert the EndTag at the end of the template.
169 : PARSEOP_RESOURCETEMPLATE {COMMENT_CAPTURE_OFF;}
172 ResourceMacroList '}' {$$ = TrCreateOp (PARSEOP_RESOURCETEMPLATE,4,
173 TrCreateLeafOp (PARSEOP_DEFAULT_ARG),
174 TrCreateLeafOp (PARSEOP_DEFAULT_ARG),
176 TrCreateLeafOp (PARSEOP_ENDTAG));
183 PARSEOP_CLOSE_PAREN {$$ = NULL;}
189 ResourceMacroTerm {$$ = TrLinkPeerOp ($1,$2);}
197 | EndDependentFnTerm {}
199 | ExtendedMemoryTerm {}
200 | ExtendedSpaceTerm {}
205 | I2cSerialBusTerm {}
206 | I2cSerialBusTermV2 {}
212 | Memory32FixedTerm {}
217 | PinGroupConfigTerm {}
218 | PinGroupFunctionTerm {}
223 | SpiSerialBusTerm {}
224 | SpiSerialBusTermV2 {}
225 | StartDependentFnNoPriTerm {}
226 | StartDependentFnTerm {}
227 | UartSerialBusTerm {}
228 | UartSerialBusTermV2 {}
231 | WordBusNumberTerm {}
238 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_DMA);}
240 OptionalBusMasterKeyword
242 OptionalNameString_Last
243 PARSEOP_CLOSE_PAREN '{'
244 ByteList '}' {$$ = TrLinkOpChildren ($<n>3,5,$4,$5,$7,$8,$11);}
247 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
252 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_DWORDIO);}
253 OptionalResourceType_First
263 OptionalByteConstExpr
267 OptionalTranslationType_Last
268 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,15,
269 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22,$23);}
272 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
276 : PARSEOP_DWORDMEMORY
277 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_DWORDMEMORY);}
278 OptionalResourceType_First
283 ',' OptionalReadWriteKeyword
289 OptionalByteConstExpr
294 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,16,
295 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$20,$21,$22,$23,$24,$25);}
296 | PARSEOP_DWORDMEMORY
298 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
303 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_DWORDSPACE);}
304 ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);}
315 OptionalByteConstExpr
317 OptionalNameString_Last
318 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,14,
319 $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23,$24);}
322 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
326 : PARSEOP_ENDDEPENDENTFN
328 PARSEOP_CLOSE_PAREN {$$ = TrCreateLeafOp (PARSEOP_ENDDEPENDENTFN);}
329 | PARSEOP_ENDDEPENDENTFN
331 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
336 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_EXTENDEDIO);}
337 OptionalResourceType_First
347 OptionalQWordConstExpr
350 OptionalTranslationType_Last
351 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,14,
352 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22);}
355 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
359 : PARSEOP_EXTENDEDMEMORY
360 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_EXTENDEDMEMORY);}
361 OptionalResourceType_First
366 ',' OptionalReadWriteKeyword
372 OptionalQWordConstExpr
376 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,15,
377 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$20,$21,$22,$23,$24);}
378 | PARSEOP_EXTENDEDMEMORY
380 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
384 : PARSEOP_EXTENDEDSPACE PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_EXTENDEDSPACE);}
385 ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);}
396 OptionalQWordConstExpr
397 OptionalNameString_Last
398 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,13,
399 $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23);}
400 | PARSEOP_EXTENDEDSPACE
402 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
407 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_FIXEDDMA);}
408 WordConstExpr /* 04: DMA RequestLines */
409 ',' WordConstExpr /* 06: DMA Channels */
410 OptionalXferSize /* 07: DMA TransferSize */
411 OptionalNameString /* 08: DescriptorName */
412 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,4,$4,$6,$7,$8);}
415 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
420 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_FIXEDIO);}
423 OptionalNameString_Last
424 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,3,$4,$6,$7);}
427 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
432 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_GPIO_INT);}
433 InterruptTypeKeyword /* 04: InterruptType */
434 ',' InterruptLevel /* 06: InterruptLevel */
435 OptionalShareType /* 07: SharedType */
436 ',' PinConfigByte /* 09: PinConfig */
437 OptionalWordConstExpr /* 10: DebounceTimeout */
438 ',' StringData /* 12: ResourceSource */
439 OptionalByteConstExpr /* 13: ResourceSourceIndex */
440 OptionalResourceType /* 14: ResourceType */
441 OptionalNameString /* 15: DescriptorName */
442 OptionalBuffer_Last /* 16: VendorData */
443 PARSEOP_CLOSE_PAREN '{'
444 DWordConstExpr '}' {$$ = TrLinkOpChildren ($<n>3,11,
445 $4,$6,$7,$9,$10,$12,$13,$14,$15,$16,$19);}
448 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
453 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_GPIO_IO);}
454 OptionalShareType_First /* 04: SharedType */
455 ',' PinConfigByte /* 06: PinConfig */
456 OptionalWordConstExpr /* 07: DebounceTimeout */
457 OptionalWordConstExpr /* 08: DriveStrength */
458 OptionalIoRestriction /* 09: IoRestriction */
459 ',' StringData /* 11: ResourceSource */
460 OptionalByteConstExpr /* 12: ResourceSourceIndex */
461 OptionalResourceType /* 13: ResourceType */
462 OptionalNameString /* 14: DescriptorName */
463 OptionalBuffer_Last /* 15: VendorData */
464 PARSEOP_CLOSE_PAREN '{'
465 DWordList '}' {$$ = TrLinkOpChildren ($<n>3,11,
466 $4,$6,$7,$8,$9,$11,$12,$13,$14,$15,$18);}
469 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
473 : PARSEOP_I2C_SERIALBUS
474 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_I2C_SERIALBUS);}
475 WordConstExpr /* 04: SlaveAddress */
476 OptionalSlaveMode /* 05: SlaveMode */
477 ',' DWordConstExpr /* 07: ConnectionSpeed */
478 OptionalAddressingMode /* 08: AddressingMode */
479 ',' StringData /* 10: ResourceSource */
480 OptionalByteConstExpr /* 11: ResourceSourceIndex */
481 OptionalResourceType /* 12: ResourceType */
482 OptionalNameString /* 13: DescriptorName */
483 OptionalBuffer_Last /* 14: VendorData */
484 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,10,
485 $4,$5,$7,$8,$10,$11,$12,$13,
486 TrCreateLeafOp (PARSEOP_DEFAULT_ARG),$14);}
487 | PARSEOP_I2C_SERIALBUS
489 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
493 : PARSEOP_I2C_SERIALBUS_V2
494 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_I2C_SERIALBUS_V2);}
495 WordConstExpr /* 04: SlaveAddress */
496 OptionalSlaveMode /* 05: SlaveMode */
497 ',' DWordConstExpr /* 07: ConnectionSpeed */
498 OptionalAddressingMode /* 08: AddressingMode */
499 ',' StringData /* 10: ResourceSource */
500 OptionalByteConstExpr /* 11: ResourceSourceIndex */
501 OptionalResourceType /* 12: ResourceType */
502 OptionalNameString /* 13: DescriptorName */
503 OptionalShareType /* 14: Share */
504 OptionalBuffer_Last /* 15: VendorData */
505 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,10,
506 $4,$5,$7,$8,$10,$11,$12,$13,$14,$15);}
507 | PARSEOP_I2C_SERIALBUS_V2
509 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
514 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_INTERRUPT);}
515 OptionalResourceType_First
516 ',' InterruptTypeKeyword
519 OptionalByteConstExpr
521 OptionalNameString_Last
522 PARSEOP_CLOSE_PAREN '{'
523 DWordList '}' {$$ = TrLinkOpChildren ($<n>3,8,
524 $4,$6,$8,$9,$10,$11,$12,$15);}
527 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
532 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_IO);}
538 OptionalNameString_Last
539 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,6,$4,$6,$8,$10,$12,$13);}
542 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
547 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_IRQNOFLAGS);}
548 OptionalNameString_First
549 PARSEOP_CLOSE_PAREN '{'
550 ByteList '}' {$$ = TrLinkOpChildren ($<n>3,2,$4,$7);}
553 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
558 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_IRQ);}
562 OptionalNameString_Last
563 PARSEOP_CLOSE_PAREN '{'
564 ByteList '}' {$$ = TrLinkOpChildren ($<n>3,5,$4,$6,$7,$8,$11);}
567 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
572 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_MEMORY24);}
573 OptionalReadWriteKeyword
578 OptionalNameString_Last
579 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,6,$4,$6,$8,$10,$12,$13);}
582 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
586 : PARSEOP_MEMORY32FIXED
587 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_MEMORY32FIXED);}
588 OptionalReadWriteKeyword
591 OptionalNameString_Last
592 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,4,$4,$6,$8,$9);}
593 | PARSEOP_MEMORY32FIXED
595 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
600 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_MEMORY32);}
601 OptionalReadWriteKeyword
606 OptionalNameString_Last
607 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,6,$4,$6,$8,$10,$12,$13);}
610 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
615 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_PINCONFIG);}
616 OptionalShareType_First /* 04: SharedType */
617 ',' ByteConstExpr /* 06: PinConfigType */
618 ',' DWordConstExpr /* 08: PinConfigValue */
619 ',' StringData /* 10: ResourceSource */
620 OptionalByteConstExpr /* 11: ResourceSourceIndex */
621 OptionalResourceType /* 12: ResourceType */
622 OptionalNameString /* 13: DescriptorName */
623 OptionalBuffer_Last /* 14: VendorData */
624 PARSEOP_CLOSE_PAREN '{'
625 DWordList '}' {$$ = TrLinkOpChildren ($<n>3,9,
626 $4,$6,$8,$10,$11,$12,$13,$14,$17);}
629 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
633 : PARSEOP_PINFUNCTION
634 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_PINFUNCTION);}
635 OptionalShareType_First /* 04: SharedType */
636 ',' PinConfigByte /* 06: PinConfig */
637 ',' WordConstExpr /* 08: FunctionNumber */
638 ',' StringData /* 10: ResourceSource */
639 OptionalByteConstExpr /* 11: ResourceSourceIndex */
640 OptionalResourceType /* 12: ResourceType */
641 OptionalNameString /* 13: DescriptorName */
642 OptionalBuffer_Last /* 14: VendorData */
643 PARSEOP_CLOSE_PAREN '{'
644 DWordList '}' {$$ = TrLinkOpChildren ($<n>3,9,
645 $4,$6,$8,$10,$11,$12,$13,$14,$17);}
646 | PARSEOP_PINFUNCTION
648 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
653 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_PINGROUP);}
654 StringData /* 04: ResourceLabel */
655 OptionalProducerResourceType /* 05: ResourceType */
656 OptionalNameString /* 06: DescriptorName */
657 OptionalBuffer_Last /* 07: VendorData */
658 PARSEOP_CLOSE_PAREN '{'
659 DWordList '}' {$$ = TrLinkOpChildren ($<n>3,5,$4,$5,$6,$7,$10);}
662 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
666 : PARSEOP_PINGROUPCONFIG
667 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_PINGROUPCONFIG);}
668 OptionalShareType_First /* 04: SharedType */
669 ',' ByteConstExpr /* 06: PinConfigType */
670 ',' DWordConstExpr /* 08: PinConfigValue */
671 ',' StringData /* 10: ResourceSource */
672 OptionalByteConstExpr /* 11: ResourceSourceIndex */
673 ',' StringData /* 13: ResourceSourceLabel */
674 OptionalResourceType /* 14: ResourceType */
675 OptionalNameString /* 15: DescriptorName */
676 OptionalBuffer_Last /* 16: VendorData */
677 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,9,
678 $4,$6,$8,$10,$11,$13,$14,$15,$16);}
679 | PARSEOP_PINGROUPCONFIG
681 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
685 : PARSEOP_PINGROUPFUNCTION
686 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_PINGROUPFUNCTION);}
687 OptionalShareType_First /* 04: SharedType */
688 ',' WordConstExpr /* 06: FunctionNumber */
689 ',' StringData /* 08: ResourceSource */
690 OptionalByteConstExpr /* 09: ResourceSourceIndex */
691 ',' StringData /* 11: ResourceSourceLabel */
692 OptionalResourceType /* 12: ResourceType */
693 OptionalNameString /* 13: DescriptorName */
694 OptionalBuffer_Last /* 14: VendorData */
695 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,8,
696 $4,$6,$8,$9,$11,$12,$13,$14);}
697 | PARSEOP_PINGROUPFUNCTION
699 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
704 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_QWORDIO);}
705 OptionalResourceType_First
715 OptionalByteConstExpr
719 OptionalTranslationType_Last
720 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,15,
721 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22,$23);}
724 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
728 : PARSEOP_QWORDMEMORY
729 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_QWORDMEMORY);}
730 OptionalResourceType_First
735 ',' OptionalReadWriteKeyword
741 OptionalByteConstExpr
746 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,16,
747 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$20,$21,$22,$23,$24,$25);}
748 | PARSEOP_QWORDMEMORY
750 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
755 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_QWORDSPACE);}
756 ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);}
767 OptionalByteConstExpr
769 OptionalNameString_Last
770 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,14,
771 $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23,$24);}
774 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
779 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_REGISTER);}
785 OptionalNameString_Last
786 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,6,$4,$6,$8,$10,$11,$12);}
789 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
793 : PARSEOP_SPI_SERIALBUS
794 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_SPI_SERIALBUS);}
795 WordConstExpr /* 04: DeviceSelection */
796 OptionalDevicePolarity /* 05: DevicePolarity */
797 OptionalWireMode /* 06: WireMode */
798 ',' ByteConstExpr /* 08: DataBitLength */
799 OptionalSlaveMode /* 09: SlaveMode */
800 ',' DWordConstExpr /* 11: ConnectionSpeed */
801 ',' ClockPolarityKeyword /* 13: ClockPolarity */
802 ',' ClockPhaseKeyword /* 15: ClockPhase */
803 ',' StringData /* 17: ResourceSource */
804 OptionalByteConstExpr /* 18: ResourceSourceIndex */
805 OptionalResourceType /* 19: ResourceType */
806 OptionalNameString /* 20: DescriptorName */
807 OptionalBuffer_Last /* 21: VendorData */
808 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,14,
809 $4,$5,$6,$8,$9,$11,$13,$15,$17,$18,$19,$20,
810 TrCreateLeafOp (PARSEOP_DEFAULT_ARG),$21);}
811 | PARSEOP_SPI_SERIALBUS
813 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
817 : PARSEOP_SPI_SERIALBUS_V2
818 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_SPI_SERIALBUS_V2);}
819 WordConstExpr /* 04: DeviceSelection */
820 OptionalDevicePolarity /* 05: DevicePolarity */
821 OptionalWireMode /* 06: WireMode */
822 ',' ByteConstExpr /* 08: DataBitLength */
823 OptionalSlaveMode /* 09: SlaveMode */
824 ',' DWordConstExpr /* 11: ConnectionSpeed */
825 ',' ClockPolarityKeyword /* 13: ClockPolarity */
826 ',' ClockPhaseKeyword /* 15: ClockPhase */
827 ',' StringData /* 17: ResourceSource */
828 OptionalByteConstExpr /* 18: ResourceSourceIndex */
829 OptionalResourceType /* 19: ResourceType */
830 OptionalNameString /* 20: DescriptorName */
831 OptionalShareType /* 21: Share */
832 OptionalBuffer_Last /* 22: VendorData */
833 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,14,
834 $4,$5,$6,$8,$9,$11,$13,$15,$17,$18,$19,$20,$21,$22);}
835 | PARSEOP_SPI_SERIALBUS_V2
837 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
840 StartDependentFnNoPriTerm
841 : PARSEOP_STARTDEPENDENTFN_NOPRI
842 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_STARTDEPENDENTFN_NOPRI);}
843 PARSEOP_CLOSE_PAREN '{'
844 ResourceMacroList '}' {$$ = TrLinkOpChildren ($<n>3,1,$6);}
845 | PARSEOP_STARTDEPENDENTFN_NOPRI
847 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
851 : PARSEOP_STARTDEPENDENTFN
852 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_STARTDEPENDENTFN);}
855 PARSEOP_CLOSE_PAREN '{'
856 ResourceMacroList '}' {$$ = TrLinkOpChildren ($<n>3,3,$4,$6,$9);}
857 | PARSEOP_STARTDEPENDENTFN
859 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
863 : PARSEOP_UART_SERIALBUS
864 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_UART_SERIALBUS);}
865 DWordConstExpr /* 04: ConnectionSpeed */
866 OptionalBitsPerByte /* 05: BitsPerByte */
867 OptionalStopBits /* 06: StopBits */
868 ',' ByteConstExpr /* 08: LinesInUse */
869 OptionalEndian /* 09: Endianess */
870 OptionalParityType /* 10: Parity */
871 OptionalFlowControl /* 11: FlowControl */
872 ',' WordConstExpr /* 13: Rx BufferSize */
873 ',' WordConstExpr /* 15: Tx BufferSize */
874 ',' StringData /* 17: ResourceSource */
875 OptionalByteConstExpr /* 18: ResourceSourceIndex */
876 OptionalResourceType /* 19: ResourceType */
877 OptionalNameString /* 20: DescriptorName */
878 OptionalBuffer_Last /* 21: VendorData */
879 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,15,
880 $4,$5,$6,$8,$9,$10,$11,$13,$15,$17,$18,$19,$20,
881 TrCreateLeafOp (PARSEOP_DEFAULT_ARG),$21);}
882 | PARSEOP_UART_SERIALBUS
884 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
888 : PARSEOP_UART_SERIALBUS_V2
889 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_UART_SERIALBUS_V2);}
890 DWordConstExpr /* 04: ConnectionSpeed */
891 OptionalBitsPerByte /* 05: BitsPerByte */
892 OptionalStopBits /* 06: StopBits */
893 ',' ByteConstExpr /* 08: LinesInUse */
894 OptionalEndian /* 09: Endianess */
895 OptionalParityType /* 10: Parity */
896 OptionalFlowControl /* 11: FlowControl */
897 ',' WordConstExpr /* 13: Rx BufferSize */
898 ',' WordConstExpr /* 15: Tx BufferSize */
899 ',' StringData /* 17: ResourceSource */
900 OptionalByteConstExpr /* 18: ResourceSourceIndex */
901 OptionalResourceType /* 19: ResourceType */
902 OptionalNameString /* 20: DescriptorName */
903 OptionalShareType /* 21: Share */
904 OptionalBuffer_Last /* 22: VendorData */
905 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,15,
906 $4,$5,$6,$8,$9,$10,$11,$13,$15,$17,$18,$19,$20,$21,$22);}
907 | PARSEOP_UART_SERIALBUS_V2
909 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
914 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_VENDORLONG);}
915 OptionalNameString_First
916 PARSEOP_CLOSE_PAREN '{'
917 ByteList '}' {$$ = TrLinkOpChildren ($<n>3,2,$4,$7);}
920 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
924 : PARSEOP_VENDORSHORT
925 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_VENDORSHORT);}
926 OptionalNameString_First
927 PARSEOP_CLOSE_PAREN '{'
928 ByteList '}' {$$ = TrLinkOpChildren ($<n>3,2,$4,$7);}
929 | PARSEOP_VENDORSHORT
931 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
935 : PARSEOP_WORDBUSNUMBER
936 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_WORDBUSNUMBER);}
937 OptionalResourceType_First
946 OptionalByteConstExpr
948 OptionalNameString_Last
949 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,12,
950 $4,$5,$6,$7,$9,$11,$13,$15,$17,$18,$19,$20);}
951 | PARSEOP_WORDBUSNUMBER
953 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
958 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_WORDIO);}
959 OptionalResourceType_First
969 OptionalByteConstExpr
973 OptionalTranslationType_Last
974 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,15,
975 $4,$5,$6,$7,$8,$10,$12,$14,$16,$18,$19,$20,$21,$22,$23);}
978 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}
983 PARSEOP_OPEN_PAREN {$<n>$ = TrCreateLeafOp (PARSEOP_WORDSPACE);}
984 ByteConstExpr {UtCheckIntegerRange ($4, 0xC0, 0xFF);}
995 OptionalByteConstExpr
997 OptionalNameString_Last
998 PARSEOP_CLOSE_PAREN {$$ = TrLinkOpChildren ($<n>3,14,
999 $4,$6,$7,$8,$9,$11,$13,$15,$17,$19,$21,$22,$23,$24);}
1002 error PARSEOP_CLOSE_PAREN {$$ = AslDoError(); yyclearin;}