aslpld.c (0d84335f991f528c6f038e79dd5cc0a7770532da) aslpld.c (5f9b24fa4327c851ddb733b73904401afe3f0123)
1/******************************************************************************
2 *
3 * Module Name: aslpld - Implementation of ASL ToPLD macro
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 668 unchanged lines hidden (view full) ---

677
678 /* Change Op to a Buffer */
679
680 Op->Asl.ParseOpcode = PARSEOP_BUFFER;
681 Op->Common.AmlOpcode = AML_BUFFER_OP;
682
683 /* Disable further optimization */
684
1/******************************************************************************
2 *
3 * Module Name: aslpld - Implementation of ASL ToPLD macro
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *

--- 668 unchanged lines hidden (view full) ---

677
678 /* Change Op to a Buffer */
679
680 Op->Asl.ParseOpcode = PARSEOP_BUFFER;
681 Op->Common.AmlOpcode = AML_BUFFER_OP;
682
683 /* Disable further optimization */
684
685 Op->Asl.CompileFlags &= ~NODE_COMPILE_TIME_CONST;
685 Op->Asl.CompileFlags &= ~OP_COMPILE_TIME_CONST;
686 UtSetParseOpName (Op);
687
688 /* Child node is the buffer length */
689
686 UtSetParseOpName (Op);
687
688 /* Child node is the buffer length */
689
690 NewOp = TrAllocateNode (PARSEOP_INTEGER);
690 NewOp = TrAllocateOp (PARSEOP_INTEGER);
691
692 NewOp->Asl.AmlOpcode = AML_BYTE_OP;
693 NewOp->Asl.Value.Integer = 20;
694 NewOp->Asl.Parent = Op;
695
696 Op->Asl.Child = NewOp;
697 Op = NewOp;
698
699 /* Peer to the child is the raw buffer data */
700
691
692 NewOp->Asl.AmlOpcode = AML_BYTE_OP;
693 NewOp->Asl.Value.Integer = 20;
694 NewOp->Asl.Parent = Op;
695
696 Op->Asl.Child = NewOp;
697 Op = NewOp;
698
699 /* Peer to the child is the raw buffer data */
700
701 NewOp = TrAllocateNode (PARSEOP_RAW_DATA);
701 NewOp = TrAllocateOp (PARSEOP_RAW_DATA);
702 NewOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER;
703 NewOp->Asl.AmlLength = 20;
704 NewOp->Asl.Value.String = ACPI_CAST_PTR (char, Buffer);
705 NewOp->Asl.Parent = Op->Asl.Parent;
706
707 Op->Asl.Next = NewOp;
708}
709

--- 128 unchanged lines hidden ---
702 NewOp->Asl.AmlOpcode = AML_RAW_DATA_BUFFER;
703 NewOp->Asl.AmlLength = 20;
704 NewOp->Asl.Value.String = ACPI_CAST_PTR (char, Buffer);
705 NewOp->Asl.Parent = Op->Asl.Parent;
706
707 Op->Asl.Next = NewOp;
708}
709

--- 128 unchanged lines hidden ---