61#define _COMPONENT ACPI_PARSER
102 "Get arguments for opcode [%s]\n", Op->Common.AmlOpName));
104 switch (Op->Common.AmlOpcode)
127 WalkState->ArgTypes = 0;
135 !WalkState->ArgCount)
137 WalkState->Aml = WalkState->ParserState.Aml;
139 switch (Op->Common.AmlOpcode)
171 "Final argument count: %8.8X pass %u\n",
172 WalkState->ArgCount, WalkState->PassNumber));
176 switch (Op->Common.AmlOpcode)
185 Op->Named.Data = WalkState->ParserState.Aml;
186 Op->Named.Length = (
UINT32)
187 (WalkState->ParserState.PkgEnd - WalkState->ParserState.Aml);
191 WalkState->ParserState.Aml = WalkState->ParserState.PkgEnd;
192 WalkState->ArgCount = 0;
199 if ((Op->Common.Parent) &&
200 (Op->Common.Parent->Common.AmlOpcode ==
AML_NAME_OP) &&
204 "Setup Package/Buffer: Pass %u, AML Ptr: %p\n",
205 WalkState->PassNumber, AmlOpStart));
211 Op->Named.Data = AmlOpStart;
212 Op->Named.Length = (
UINT32)
213 (WalkState->ParserState.PkgEnd - AmlOpStart);
217 WalkState->ParserState.Aml = WalkState->ParserState.PkgEnd;
218 WalkState->ArgCount = 0;
224 if (WalkState->ControlState)
226 WalkState->ControlState->Control.PackageEnd =
227 WalkState->ParserState.PkgEnd;
280#ifndef ACPI_CONSTANT_EVAL_ONLY
310 "Invoked method did not return a value"));
324 else if (WalkState->
PrevOp)
336 while ((ParserState->
Aml < ParserState->
AmlEnd) || (Op))
340 AmlOpStart = ParserState->
Aml;
386 ACPI_INFO ((
"Skipping parse of AML opcode: %s (0x%4.4X)",
417 switch (Op->
Common.AmlOpcode)
458 WalkState->
Aml = ParserState->
Aml;
467 WalkState->
Aml = ParserState->
Aml;
479 "Parseloop: argument count: %8.8X\n", WalkState->
ArgCount));
#define ACPI_AML_EXCEPTION(Status)
#define AE_ALREADY_EXISTS
#define AE_CTRL_TERMINATE
#define AE_CTRL_PARSE_PENDING
#define ACPI_CNTL_EXCEPTION(Status)
#define AE_CTRL_PARSE_CONTINUE
#define AE_AML_NO_RETURN_VALUE
#define ACPI_CONTROL_PREDICATE_EXECUTING
#define ASL_CV_CAPTURE_COMMENTS(a)
#define GET_CURRENT_ARG_TYPE(List)
#define INCREMENT_ARG_LIST(List)
UINT32 AcpiNsOpensScope(ACPI_OBJECT_TYPE Type)
#define ACPI_DEBUG_PRINT(pl)
#define ACPI_EXCEPTION(plist)
#define ACPI_MODULE_NAME(Name)
#define ACPI_FUNCTION_TRACE_PTR(a, b)
#define return_ACPI_STATUS(s)
#define ACPI_ERROR(plist)
void AcpiPsGetNextSimpleArg(ACPI_PARSE_STATE *ParserState, UINT32 ArgType, ACPI_PARSE_OBJECT *Arg)
const char * AcpiPsGetOpcodeName(UINT16 Opcode)
ACPI_STATUS AcpiPsCompleteOp(ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT **Op, ACPI_STATUS Status)
ACPI_STATUS AcpiPsCreateOp(ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT **NewOp)
#define ACPI_POSSIBLE_METHOD_CALL
ACPI_STATUS AcpiPsGetNextArg(ACPI_WALK_STATE *WalkState, ACPI_PARSE_STATE *ParserState, UINT32 ArgType, ACPI_PARSE_OBJECT **ReturnArg)
ACPI_STATUS AcpiPsNextParseState(ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS CallbackStatus)
ACPI_STATUS AcpiPsPushScope(ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Op, UINT32 RemainingArgs, UINT32 ArgCount)
void AcpiPsPopScope(ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT **Op, UINT32 *ArgList, UINT32 *ArgCount)
ACPI_STATUS AcpiPsGetNextNamepath(ACPI_WALK_STATE *WalkState, ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT *Arg, BOOLEAN PossibleMethodCall)
void AcpiPsAppendArg(ACPI_PARSE_OBJECT *op, ACPI_PARSE_OBJECT *arg)
#define ACPI_PARSE_MODULE_LEVEL
const ACPI_OPCODE_INFO * AcpiPsGetOpcodeInfo(UINT16 Opcode)
BOOLEAN AcpiPsHasCompletedScope(ACPI_PARSE_STATE *ParserState)
UINT8 * AcpiPsGetNextPackageEnd(ACPI_PARSE_STATE *ParserState)
ACPI_STATUS AcpiPsCompleteFinalOp(ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status)
#define ACPI_WALK_METHOD_RESTART
#define ACPI_TO_POINTER(i)
ACPI_GENERIC_STATE * AcpiUtPopGenericState(ACPI_GENERIC_STATE **ListHead)
#define AML_VARIABLE_PACKAGE_OP
#define AML_BANK_FIELD_OP
#define AML_DATA_REGION_OP
#define AML_EXTENDED_OPCODE
#define AML_INT_NAMEPATH_OP
ACPI_STATUS AcpiDsGetPredicateValue(ACPI_WALK_STATE *WalkState, ACPI_OPERAND_OBJECT *ResultObj)
static ACPI_STATUS AcpiPsGetArguments(ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT *Op)
ACPI_STATUS AcpiPsParseLoop(ACPI_WALK_STATE *WalkState)
UINT8 * AmlPredicateStart
ACPI_STATE_COMMON UINT16 Opcode
union acpi_generic_state * Scope
union acpi_parse_object * Op
ACPI_PARSE_DOWNWARDS DescendingCallback
ACPI_PARSE_OBJECT * PrevOp
const ACPI_OPCODE_INFO * OpInfo
ACPI_GENERIC_STATE * ControlState
ACPI_PARSE_UPWARDS AscendingCallback
ACPI_PARSE_STATE ParserState
ACPI_PSCOPE_STATE ParseScope
ACPI_CONTROL_STATE Control
ACPI_PARSE_OBJ_NAMED Named
ACPI_PARSE_OBJ_COMMON Common