51#define _COMPONENT ACPI_PARSER
84 WalkState->Aml = WalkState->ParserState.Aml;
95 switch (WalkState->OpInfo->Class)
111 if (WalkState->PassNumber == 2)
114 WalkState->ParserState.AmlStart));
117 "Unknown opcode 0x%.2X at table offset 0x%.4X, ignoring",
123#ifdef ACPI_ASL_COMPILER
129 "/*\nError: Unknown opcode 0x%.2X at table offset 0x%.4X, context:\n",
134 "Aborting disassembly, AML byte code is corrupt"));
155 WalkState->ParserState.Aml++;
156 if (WalkState->Opcode > 0xFF)
158 WalkState->ParserState.Aml++;
167 WalkState->ParserState.Aml +=
169 WalkState->ArgTypes = WalkState->OpInfo->ParseArgs;
207 UnnamedOp->
Common.ArgListLength = 0;
233#ifdef ACPI_ASL_COMPILER
234 if (AcpiGbl_CurrentInlineComment !=
NULL)
236 UnnamedOp->
Common.NameComment = AcpiGbl_CurrentInlineComment;
237 AcpiGbl_CurrentInlineComment =
NULL;
286#ifdef ACPI_ASL_COMPILER
290 (*Op)->Common.InlineComment = UnnamedOp->
Common.InlineComment;
291 (*Op)->Common.EndNodeComment = UnnamedOp->
Common.EndNodeComment;
292 (*Op)->Common.CloseBraceComment = UnnamedOp->
Common.CloseBraceComment;
293 (*Op)->Common.NameComment = UnnamedOp->
Common.NameComment;
294 (*Op)->Common.CommentList = UnnamedOp->
Common.CommentList;
295 (*Op)->Common.EndBlkComment = UnnamedOp->
Common.EndBlkComment;
296 (*Op)->Common.CvFilename = UnnamedOp->
Common.CvFilename;
297 (*Op)->Common.CvParentFilename = UnnamedOp->
Common.CvParentFilename;
298 (*Op)->Named.Aml = UnnamedOp->
Common.Aml;
321 (*Op)->Named.Data = AmlOpStart;
322 (*Op)->Named.Length = 0;
384#ifdef ACPI_ASL_COMPILER
443 if (ParentScope->
Common.ArgListLength > ArgumentCount)
466 WalkState->
Op = *NewOp = Op;
544 WalkState->
Opcode = (*Op)->Common.AmlOpcode;
563 while (!(*Op) || ((*Op)->Common.AmlOpcode !=
AML_WHILE_OP))
573 WalkState->
Opcode = (*Op)->Common.AmlOpcode;
626 (*Op)->Common.Node =
NULL;
666 ACPI_INFO ((
"Ignoring error and continuing table load"));
#define AE_AML_NO_OPERAND
#define AE_AML_BAD_OPCODE
#define AE_CTRL_TERMINATE
#define AE_CTRL_PARSE_PENDING
#define AE_CTRL_PARSE_CONTINUE
#define ACPI_PARSEOP_TARGET
#define ASL_CV_CAPTURE_COMMENTS(a)
#define ACPI_ERROR_ONLY(s)
#define GET_CURRENT_ARG_TYPE(List)
#define INCREMENT_ARG_LIST(List)
void AcpiNsDeleteChildren(ACPI_NAMESPACE_NODE *Parent)
void AcpiNsRemoveNode(ACPI_NAMESPACE_NODE *Node)
#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_DUMP_BUFFER(a, b)
#define ACPI_ERROR(plist)
UINT16 AcpiPsPeekOpcode(ACPI_PARSE_STATE *state)
ACPI_STATUS AcpiPsCompleteThisOp(ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op)
UINT8 AcpiPsGetArgumentCount(UINT32 OpType)
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)
void AcpiPsDeleteParseTree(ACPI_PARSE_OBJECT *root)
void AcpiPsPopScope(ACPI_PARSE_STATE *ParserState, ACPI_PARSE_OBJECT **Op, UINT32 *ArgList, UINT32 *ArgCount)
void AcpiPsFreeOp(ACPI_PARSE_OBJECT *Op)
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)
UINT32 AcpiPsGetOpcodeSize(UINT32 Opcode)
ACPI_PARSE_OBJECT * AcpiPsGetParentScope(ACPI_PARSE_STATE *state)
ACPI_PARSE_OBJECT * AcpiPsAllocOp(UINT16 Opcode, UINT8 *Aml)
void ACPI_INTERNAL_VAR_XFACE AcpiOsPrintf(const char *Format,...)
#define ACPI_PTR_DIFF(a, b)
ACPI_GENERIC_STATE * AcpiUtPopGenericState(ACPI_GENERIC_STATE **ListHead)
void AcpiUtDumpBuffer(UINT8 *Buffer, UINT32 Count, UINT32 Display, UINT32 Offset)
void AcpiUtDeleteGenericState(ACPI_GENERIC_STATE *State)
#define AML_BANK_FIELD_OP
#define AML_DATA_REGION_OP
#define AML_INT_NAMEPATH_OP
#define AML_CLASS_UNKNOWN
ACPI_STATUS AcpiPsBuildNamedOp(ACPI_WALK_STATE *WalkState, UINT8 *AmlOpStart, ACPI_PARSE_OBJECT *UnnamedOp, ACPI_PARSE_OBJECT **Op)
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)
static ACPI_STATUS AcpiPsGetAmlOpcode(ACPI_WALK_STATE *WalkState)
ACPI_STATUS AcpiPsCompleteFinalOp(ACPI_WALK_STATE *WalkState, ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status)
union acpi_generic_state * Scope
ACPI_STATE_COMMON UINT32 ArgCount
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_PARSE_OBJ_NAMED Named
ACPI_PARSE_OBJ_COMMON Common
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList