1 /*******************************************************************************
3 * Module Name: dbdisply - debug display commands
6 ******************************************************************************/
8 /******************************************************************************
12 * Some or all of this work - Copyright (c) 1999 - 2006, Intel Corp.
13 * All rights reserved.
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
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
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;
38 * The above copyright and patent license is granted only if the following
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.
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
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
73 * 3.4. Intel retains all right, title, and interest in and to the Original
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.
81 * 4. Disclaimer and Export Compliance
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
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
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.
115 *****************************************************************************/
120 #include "acdispat.h"
121 #include "acnamesp.h"
122 #include "acparser.h"
123 #include "acinterp.h"
125 #include "acdisasm.h"
130 #define _COMPONENT ACPI_CA_DEBUGGER
131 ACPI_MODULE_NAME ("dbdisply")
133 /* Local prototypes */
136 AcpiDbDumpParserDescriptor (
137 ACPI_PARSE_OBJECT *Op);
144 /*******************************************************************************
146 * FUNCTION: AcpiDbGetPointer
148 * PARAMETERS: Target - Pointer to string to be converted
150 * RETURN: Converted pointer
152 * DESCRIPTION: Convert an ascii pointer value to a real value
154 ******************************************************************************/
163 #if ACPI_MACHINE_WIDTH == 16
166 /* Have to handle 16-bit pointers of the form segment:offset */
168 if (!sscanf (Target, "%p", &ObjPtr))
170 AcpiOsPrintf ("Invalid pointer: %s\n", Target);
176 /* Simple flat pointer */
178 ObjPtr = ACPI_TO_POINTER (ACPI_STRTOUL (Target, NULL, 16));
185 /*******************************************************************************
187 * FUNCTION: AcpiDbDumpParserDescriptor
189 * PARAMETERS: Op - A parser Op descriptor
193 * DESCRIPTION: Display a formatted parser object
195 ******************************************************************************/
198 AcpiDbDumpParserDescriptor (
199 ACPI_PARSE_OBJECT *Op)
201 const ACPI_OPCODE_INFO *Info;
204 Info = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
206 AcpiOsPrintf ("Parser Op Descriptor:\n");
207 AcpiOsPrintf ("%20.20s : %4.4X\n", "Opcode", Op->Common.AmlOpcode);
209 ACPI_DEBUG_ONLY_MEMBERS (AcpiOsPrintf ("%20.20s : %s\n", "Opcode Name",
212 AcpiOsPrintf ("%20.20s : %p\n", "Value/ArgList", Op->Common.Value.Arg);
213 AcpiOsPrintf ("%20.20s : %p\n", "Parent", Op->Common.Parent);
214 AcpiOsPrintf ("%20.20s : %p\n", "NextOp", Op->Common.Next);
218 /*******************************************************************************
220 * FUNCTION: AcpiDbDecodeAndDisplayObject
222 * PARAMETERS: Target - String with object to be displayed. Names
223 * and hex pointers are supported.
224 * OutputType - Byte, Word, Dword, or Qword (B|W|D|Q)
228 * DESCRIPTION: Display a formatted ACPI object
230 ******************************************************************************/
233 AcpiDbDecodeAndDisplayObject (
238 ACPI_NAMESPACE_NODE *Node;
239 ACPI_OPERAND_OBJECT *ObjDesc;
240 UINT32 Display = DB_BYTE_DISPLAY;
252 /* Decode the output type */
256 AcpiUtStrupr (OutputType);
257 if (OutputType[0] == 'W')
259 Display = DB_WORD_DISPLAY;
261 else if (OutputType[0] == 'D')
263 Display = DB_DWORD_DISPLAY;
265 else if (OutputType[0] == 'Q')
267 Display = DB_QWORD_DISPLAY;
271 RetBuf.Length = sizeof (Buffer);
272 RetBuf.Pointer = Buffer;
274 /* Differentiate between a number and a name */
276 if ((Target[0] >= 0x30) && (Target[0] <= 0x39))
278 ObjPtr = AcpiDbGetPointer (Target);
279 if (!AcpiOsReadable (ObjPtr, 16))
281 AcpiOsPrintf ("Address %p is invalid in this address space\n",
286 /* Decode the object type */
288 switch (ACPI_GET_DESCRIPTOR_TYPE (ObjPtr))
290 case ACPI_DESC_TYPE_NAMED:
292 /* This is a namespace Node */
294 if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_NAMESPACE_NODE)))
297 "Cannot read entire Named object at address %p\n", ObjPtr);
305 case ACPI_DESC_TYPE_OPERAND:
307 /* This is a ACPI OPERAND OBJECT */
309 if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_OPERAND_OBJECT)))
311 AcpiOsPrintf ("Cannot read entire ACPI object at address %p\n",
316 AcpiUtDumpBuffer (ObjPtr, sizeof (ACPI_OPERAND_OBJECT), Display,
318 AcpiExDumpObjectDescriptor (ObjPtr, 1);
322 case ACPI_DESC_TYPE_PARSER:
324 /* This is a Parser Op object */
326 if (!AcpiOsReadable (ObjPtr, sizeof (ACPI_PARSE_OBJECT)))
329 "Cannot read entire Parser object at address %p\n", ObjPtr);
333 AcpiUtDumpBuffer (ObjPtr, sizeof (ACPI_PARSE_OBJECT), Display,
335 AcpiDbDumpParserDescriptor ((ACPI_PARSE_OBJECT *) ObjPtr);
341 /* Is not a recognizeable object */
344 if (AcpiOsReadable (ObjPtr, 64))
349 /* Just dump some memory */
351 AcpiUtDumpBuffer (ObjPtr, Size, Display, ACPI_UINT32_MAX);
358 /* The parameter is a name string that must be resolved to a Named obj */
360 Node = AcpiDbLocalNsLookup (Target);
368 /* Now dump the NS node */
370 Status = AcpiGetName (Node, ACPI_FULL_PATHNAME, &RetBuf);
371 if (ACPI_FAILURE (Status))
373 AcpiOsPrintf ("Could not convert name to pathname\n");
378 AcpiOsPrintf ("Object (%p) Pathname: %s\n",
379 Node, (char *) RetBuf.Pointer);
382 if (!AcpiOsReadable (Node, sizeof (ACPI_NAMESPACE_NODE)))
384 AcpiOsPrintf ("Invalid Named object at address %p\n", Node);
388 AcpiUtDumpBuffer ((void *) Node, sizeof (ACPI_NAMESPACE_NODE),
389 Display, ACPI_UINT32_MAX);
390 AcpiExDumpNamespaceNode (Node, 1);
392 ObjDesc = AcpiNsGetAttachedObject (Node);
395 AcpiOsPrintf ("\nAttached Object (%p):\n", ObjDesc);
396 if (!AcpiOsReadable (ObjDesc, sizeof (ACPI_OPERAND_OBJECT)))
398 AcpiOsPrintf ("Invalid internal ACPI Object at address %p\n",
403 AcpiUtDumpBuffer ((void *) ObjDesc, sizeof (ACPI_OPERAND_OBJECT),
404 Display, ACPI_UINT32_MAX);
405 AcpiExDumpObjectDescriptor (ObjDesc, 1);
410 /*******************************************************************************
412 * FUNCTION: AcpiDbDisplayMethodInfo
414 * PARAMETERS: StartOp - Root of the control method parse tree
418 * DESCRIPTION: Display information about the current method
420 ******************************************************************************/
423 AcpiDbDisplayMethodInfo (
424 ACPI_PARSE_OBJECT *StartOp)
426 ACPI_WALK_STATE *WalkState;
427 ACPI_OPERAND_OBJECT *ObjDesc;
428 ACPI_NAMESPACE_NODE *Node;
429 ACPI_PARSE_OBJECT *RootOp;
430 ACPI_PARSE_OBJECT *Op;
431 const ACPI_OPCODE_INFO *OpInfo;
433 UINT32 NumOperands = 0;
434 UINT32 NumOperators = 0;
435 UINT32 NumRemainingOps = 0;
436 UINT32 NumRemainingOperands = 0;
437 UINT32 NumRemainingOperators = 0;
438 BOOLEAN CountRemaining = FALSE;
441 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
444 AcpiOsPrintf ("There is no method currently executing\n");
448 ObjDesc = WalkState->MethodDesc;
449 Node = WalkState->MethodNode;
451 AcpiOsPrintf ("Currently executing control method is [%4.4s]\n",
452 AcpiUtGetNodeName (Node));
453 AcpiOsPrintf ("%X Arguments, SyncLevel = %X\n",
454 (UINT32) ObjDesc->Method.ParamCount,
455 (UINT32) ObjDesc->Method.SyncLevel);
459 while (RootOp->Common.Parent)
461 RootOp = RootOp->Common.Parent;
470 CountRemaining = TRUE;
479 /* Decode the opcode */
481 OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
482 switch (OpInfo->Class)
484 case AML_CLASS_ARGUMENT:
487 NumRemainingOperands++;
493 case AML_CLASS_UNKNOWN:
494 /* Bad opcode or ASCII character */
501 NumRemainingOperators++;
508 Op = AcpiPsGetDepthNext (StartOp, Op);
512 "Method contains: %X AML Opcodes - %X Operators, %X Operands\n",
513 NumOps, NumOperators, NumOperands);
516 "Remaining to execute: %X AML Opcodes - %X Operators, %X Operands\n",
517 NumRemainingOps, NumRemainingOperators, NumRemainingOperands);
521 /*******************************************************************************
523 * FUNCTION: AcpiDbDisplayLocals
529 * DESCRIPTION: Display all locals for the currently running control method
531 ******************************************************************************/
534 AcpiDbDisplayLocals (
537 ACPI_WALK_STATE *WalkState;
540 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
543 AcpiOsPrintf ("There is no method currently executing\n");
547 AcpiDmDisplayLocals (WalkState);
551 /*******************************************************************************
553 * FUNCTION: AcpiDbDisplayArguments
559 * DESCRIPTION: Display all arguments for the currently running control method
561 ******************************************************************************/
564 AcpiDbDisplayArguments (
567 ACPI_WALK_STATE *WalkState;
570 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
573 AcpiOsPrintf ("There is no method currently executing\n");
577 AcpiDmDisplayArguments (WalkState);
581 /*******************************************************************************
583 * FUNCTION: AcpiDbDisplayResults
589 * DESCRIPTION: Display current contents of a method result stack
591 ******************************************************************************/
594 AcpiDbDisplayResults (
598 ACPI_WALK_STATE *WalkState;
599 ACPI_OPERAND_OBJECT *ObjDesc;
600 UINT32 NumResults = 0;
601 ACPI_NAMESPACE_NODE *Node;
604 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
607 AcpiOsPrintf ("There is no method currently executing\n");
611 ObjDesc = WalkState->MethodDesc;
612 Node = WalkState->MethodNode;
614 if (WalkState->Results)
616 NumResults = WalkState->Results->Results.NumResults;
619 AcpiOsPrintf ("Method [%4.4s] has %X stacked result objects\n",
620 AcpiUtGetNodeName (Node), NumResults);
622 for (i = 0; i < NumResults; i++)
624 ObjDesc = WalkState->Results->Results.ObjDesc[i];
625 AcpiOsPrintf ("Result%d: ", i);
626 AcpiDmDisplayInternalObject (ObjDesc, WalkState);
631 /*******************************************************************************
633 * FUNCTION: AcpiDbDisplayCallingTree
639 * DESCRIPTION: Display current calling tree of nested control methods
641 ******************************************************************************/
644 AcpiDbDisplayCallingTree (
647 ACPI_WALK_STATE *WalkState;
648 ACPI_NAMESPACE_NODE *Node;
651 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
654 AcpiOsPrintf ("There is no method currently executing\n");
658 Node = WalkState->MethodNode;
659 AcpiOsPrintf ("Current Control Method Call Tree\n");
663 Node = WalkState->MethodNode;
665 AcpiOsPrintf (" [%4.4s]\n", AcpiUtGetNodeName (Node));
667 WalkState = WalkState->Next;
672 /*******************************************************************************
674 * FUNCTION: AcpiDbDisplayObjectType
676 * PARAMETERS: ObjectArg - User entered NS node handle
680 * DESCRIPTION: Display type of an arbitrary NS node
682 ******************************************************************************/
685 AcpiDbDisplayObjectType (
690 ACPI_DEVICE_INFO *Info;
695 Handle = ACPI_TO_POINTER (ACPI_STRTOUL (ObjectArg, NULL, 16));
696 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
698 Status = AcpiGetObjectInfo (Handle, &Buffer);
699 if (ACPI_SUCCESS (Status))
701 Info = Buffer.Pointer;
703 "S1D-%2.2X S2D-%2.2X S3D-%2.2X S4D-%2.2X HID: %s, ADR: %8.8X%8.8X, Status %8.8X\n",
704 Info->HighestDstates[0], Info->HighestDstates[1],
705 Info->HighestDstates[2], Info->HighestDstates[3],
706 Info->HardwareId.Value,
707 ACPI_FORMAT_UINT64 (Info->Address),
708 Info->CurrentStatus);
710 if (Info->Valid & ACPI_VALID_CID)
712 for (i = 0; i < Info->CompatibilityId.Count; i++)
714 AcpiOsPrintf ("CID #%d: %s\n", (UINT32) i,
715 Info->CompatibilityId.Id[i].Value);
723 AcpiOsPrintf ("%s\n", AcpiFormatException (Status));
728 /*******************************************************************************
730 * FUNCTION: AcpiDbDisplayResultObject
732 * PARAMETERS: ObjDesc - Object to be displayed
733 * WalkState - Current walk state
737 * DESCRIPTION: Display the result of an AML opcode
739 * Note: Curently only displays the result object if we are single stepping.
740 * However, this output may be useful in other contexts and could be enabled
741 * to do so if needed.
743 ******************************************************************************/
746 AcpiDbDisplayResultObject (
747 ACPI_OPERAND_OBJECT *ObjDesc,
748 ACPI_WALK_STATE *WalkState)
751 /* Only display if single stepping */
753 if (!AcpiGbl_CmSingleStep)
758 AcpiOsPrintf ("ResultObj: ");
759 AcpiDmDisplayInternalObject (ObjDesc, WalkState);
764 /*******************************************************************************
766 * FUNCTION: AcpiDbDisplayArgumentObject
768 * PARAMETERS: ObjDesc - Object to be displayed
769 * WalkState - Current walk state
773 * DESCRIPTION: Display the result of an AML opcode
775 ******************************************************************************/
778 AcpiDbDisplayArgumentObject (
779 ACPI_OPERAND_OBJECT *ObjDesc,
780 ACPI_WALK_STATE *WalkState)
783 if (!AcpiGbl_CmSingleStep)
788 AcpiOsPrintf ("ArgObj: ");
789 AcpiDmDisplayInternalObject (ObjDesc, WalkState);
793 /*******************************************************************************
795 * FUNCTION: AcpiDbDisplayGpes
801 * DESCRIPTION: Display the current GPE structures
803 ******************************************************************************/
809 ACPI_GPE_BLOCK_INFO *GpeBlock;
810 ACPI_GPE_XRUPT_INFO *GpeXruptInfo;
811 ACPI_GPE_EVENT_INFO *GpeEventInfo;
812 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
822 RetBuf.Length = sizeof (Buffer);
823 RetBuf.Pointer = Buffer;
827 /* Walk the GPE lists */
829 GpeXruptInfo = AcpiGbl_GpeXruptListHead;
832 GpeBlock = GpeXruptInfo->GpeBlockListHead;
835 Status = AcpiGetName (GpeBlock->Node, ACPI_FULL_PATHNAME, &RetBuf);
836 if (ACPI_FAILURE (Status))
838 AcpiOsPrintf ("Could not convert name to pathname\n");
841 AcpiOsPrintf ("\nBlock %d - Info %p DeviceNode %p [%s]\n",
842 Block, GpeBlock, GpeBlock->Node, Buffer);
844 AcpiOsPrintf (" Registers: %u (%u GPEs)\n",
845 GpeBlock->RegisterCount,
846 ACPI_MUL_8 (GpeBlock->RegisterCount));
848 AcpiOsPrintf (" GPE range: 0x%X to 0x%X\n",
849 GpeBlock->BlockBaseNumber,
850 GpeBlock->BlockBaseNumber +
851 (GpeBlock->RegisterCount * 8) -1);
854 " RegisterInfo: %p Status %8.8X%8.8X Enable %8.8X%8.8X\n",
855 GpeBlock->RegisterInfo,
856 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeBlock->RegisterInfo->StatusAddress.Address)),
857 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeBlock->RegisterInfo->EnableAddress.Address)));
859 AcpiOsPrintf (" EventInfo: %p\n", GpeBlock->EventInfo);
861 /* Examine each GPE Register within the block */
863 for (i = 0; i < GpeBlock->RegisterCount; i++)
865 GpeRegisterInfo = &GpeBlock->RegisterInfo[i];
868 " Reg %u: WakeEnable %2.2X, RunEnable %2.2X Status %8.8X%8.8X Enable %8.8X%8.8X\n",
869 i, GpeRegisterInfo->EnableForWake,
870 GpeRegisterInfo->EnableForRun,
871 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeRegisterInfo->StatusAddress.Address)),
872 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeRegisterInfo->EnableAddress.Address)));
874 /* Now look at the individual GPEs in this byte register */
876 for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++)
878 GpeIndex = (i * ACPI_GPE_REGISTER_WIDTH) + j;
879 GpeEventInfo = &GpeBlock->EventInfo[GpeIndex];
881 if (!(GpeEventInfo->Flags & ACPI_GPE_DISPATCH_MASK))
883 /* This GPE is not used (no method or handler) */
889 " GPE %.3X: %p Flags %2.2X: ",
890 GpeBlock->BlockBaseNumber + GpeIndex,
892 GpeEventInfo->Flags);
894 if (GpeEventInfo->Flags & ACPI_GPE_LEVEL_TRIGGERED)
896 AcpiOsPrintf ("Level, ");
900 AcpiOsPrintf ("Edge, ");
903 switch (GpeEventInfo->Flags & ACPI_GPE_TYPE_MASK)
905 case ACPI_GPE_TYPE_WAKE:
906 AcpiOsPrintf ("WakeOnly: ");
908 case ACPI_GPE_TYPE_RUNTIME:
909 AcpiOsPrintf (" RunOnly: ");
911 case ACPI_GPE_TYPE_WAKE_RUN:
912 AcpiOsPrintf (" WakeRun: ");
915 AcpiOsPrintf (" NotUsed: ");
919 if (GpeEventInfo->Flags & ACPI_GPE_WAKE_ENABLED)
921 AcpiOsPrintf ("[Wake 1 ");
925 AcpiOsPrintf ("[Wake 0 ");
928 if (GpeEventInfo->Flags & ACPI_GPE_RUN_ENABLED)
930 AcpiOsPrintf ("Run 1], ");
934 AcpiOsPrintf ("Run 0], ");
937 switch (GpeEventInfo->Flags & ACPI_GPE_DISPATCH_MASK)
939 case ACPI_GPE_DISPATCH_NOT_USED:
940 AcpiOsPrintf ("NotUsed");
942 case ACPI_GPE_DISPATCH_HANDLER:
943 AcpiOsPrintf ("Handler");
945 case ACPI_GPE_DISPATCH_METHOD:
946 AcpiOsPrintf ("Method");
949 AcpiOsPrintf ("UNKNOWN: %X",
950 GpeEventInfo->Flags & ACPI_GPE_DISPATCH_MASK);
958 GpeBlock = GpeBlock->Next;
960 GpeXruptInfo = GpeXruptInfo->Next;
964 #endif /* ACPI_DEBUGGER */