1 /*******************************************************************************
3 * Module Name: dbdisply - debug display commands
6 ******************************************************************************/
8 /******************************************************************************
12 * Some or all of this work - Copyright (c) 1999 - 2005, 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 *****************************************************************************/
118 #include <contrib/dev/acpica/acpi.h>
119 #include <contrib/dev/acpica/amlcode.h>
120 #include <contrib/dev/acpica/acdispat.h>
121 #include <contrib/dev/acpica/acnamesp.h>
122 #include <contrib/dev/acpica/acparser.h>
123 #include <contrib/dev/acpica/acinterp.h>
124 #include <contrib/dev/acpica/acdebug.h>
125 #include <contrib/dev/acpica/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 AcpiExDumpNode (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;
440 BOOLEAN CountRemaining = FALSE;
443 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
446 AcpiOsPrintf ("There is no method currently executing\n");
450 ObjDesc = WalkState->MethodDesc;
451 Node = WalkState->MethodNode;
453 NumArgs = ObjDesc->Method.ParamCount;
454 Concurrency = ObjDesc->Method.Concurrency;
456 AcpiOsPrintf ("Currently executing control method is [%4.4s]\n",
457 AcpiUtGetNodeName (Node));
458 AcpiOsPrintf ("%X arguments, max concurrency = %X\n",
459 NumArgs, Concurrency);
463 while (RootOp->Common.Parent)
465 RootOp = RootOp->Common.Parent;
474 CountRemaining = TRUE;
483 /* Decode the opcode */
485 OpInfo = AcpiPsGetOpcodeInfo (Op->Common.AmlOpcode);
486 switch (OpInfo->Class)
488 case AML_CLASS_ARGUMENT:
491 NumRemainingOperands++;
497 case AML_CLASS_UNKNOWN:
498 /* Bad opcode or ASCII character */
505 NumRemainingOperators++;
512 Op = AcpiPsGetDepthNext (StartOp, Op);
516 "Method contains: %X AML Opcodes - %X Operators, %X Operands\n",
517 NumOps, NumOperators, NumOperands);
520 "Remaining to execute: %X AML Opcodes - %X Operators, %X Operands\n",
521 NumRemainingOps, NumRemainingOperators, NumRemainingOperands);
525 /*******************************************************************************
527 * FUNCTION: AcpiDbDisplayLocals
533 * DESCRIPTION: Display all locals for the currently running control method
535 ******************************************************************************/
538 AcpiDbDisplayLocals (
541 ACPI_WALK_STATE *WalkState;
544 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
547 AcpiOsPrintf ("There is no method currently executing\n");
551 AcpiDmDisplayLocals (WalkState);
555 /*******************************************************************************
557 * FUNCTION: AcpiDbDisplayArguments
563 * DESCRIPTION: Display all arguments for the currently running control method
565 ******************************************************************************/
568 AcpiDbDisplayArguments (
571 ACPI_WALK_STATE *WalkState;
574 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
577 AcpiOsPrintf ("There is no method currently executing\n");
581 AcpiDmDisplayArguments (WalkState);
585 /*******************************************************************************
587 * FUNCTION: AcpiDbDisplayResults
593 * DESCRIPTION: Display current contents of a method result stack
595 ******************************************************************************/
598 AcpiDbDisplayResults (
602 ACPI_WALK_STATE *WalkState;
603 ACPI_OPERAND_OBJECT *ObjDesc;
604 UINT32 NumResults = 0;
605 ACPI_NAMESPACE_NODE *Node;
608 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
611 AcpiOsPrintf ("There is no method currently executing\n");
615 ObjDesc = WalkState->MethodDesc;
616 Node = WalkState->MethodNode;
618 if (WalkState->Results)
620 NumResults = WalkState->Results->Results.NumResults;
623 AcpiOsPrintf ("Method [%4.4s] has %X stacked result objects\n",
624 AcpiUtGetNodeName (Node), NumResults);
626 for (i = 0; i < NumResults; i++)
628 ObjDesc = WalkState->Results->Results.ObjDesc[i];
629 AcpiOsPrintf ("Result%d: ", i);
630 AcpiDmDisplayInternalObject (ObjDesc, WalkState);
635 /*******************************************************************************
637 * FUNCTION: AcpiDbDisplayCallingTree
643 * DESCRIPTION: Display current calling tree of nested control methods
645 ******************************************************************************/
648 AcpiDbDisplayCallingTree (
651 ACPI_WALK_STATE *WalkState;
652 ACPI_NAMESPACE_NODE *Node;
655 WalkState = AcpiDsGetCurrentWalkState (AcpiGbl_CurrentWalkList);
658 AcpiOsPrintf ("There is no method currently executing\n");
662 Node = WalkState->MethodNode;
663 AcpiOsPrintf ("Current Control Method Call Tree\n");
667 Node = WalkState->MethodNode;
669 AcpiOsPrintf (" [%4.4s]\n", AcpiUtGetNodeName (Node));
671 WalkState = WalkState->Next;
676 /*******************************************************************************
678 * FUNCTION: AcpiDbDisplayObjectType
680 * PARAMETERS: ObjectArg - User entered NS node handle
684 * DESCRIPTION: Display type of an arbitrary NS node
686 ******************************************************************************/
689 AcpiDbDisplayObjectType (
694 ACPI_DEVICE_INFO *Info;
699 Handle = ACPI_TO_POINTER (ACPI_STRTOUL (ObjectArg, NULL, 16));
700 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
702 Status = AcpiGetObjectInfo (Handle, &Buffer);
703 if (ACPI_SUCCESS (Status))
705 Info = Buffer.Pointer;
707 "S1D-%2.2X S2D-%2.2X S3D-%2.2X S4D-%2.2X HID: %s, ADR: %8.8X%8.8X, Status %8.8X\n",
708 Info->HighestDstates[0], Info->HighestDstates[1],
709 Info->HighestDstates[2], Info->HighestDstates[3],
710 Info->HardwareId.Value,
711 ACPI_FORMAT_UINT64 (Info->Address),
712 Info->CurrentStatus);
714 if (Info->Valid & ACPI_VALID_CID)
716 for (i = 0; i < Info->CompatibilityId.Count; i++)
718 AcpiOsPrintf ("CID #%d: %s\n", (UINT32) i,
719 Info->CompatibilityId.Id[i].Value);
723 ACPI_MEM_FREE (Info);
727 AcpiOsPrintf ("%s\n", AcpiFormatException (Status));
732 /*******************************************************************************
734 * FUNCTION: AcpiDbDisplayResultObject
736 * PARAMETERS: ObjDesc - Object to be displayed
737 * WalkState - Current walk state
741 * DESCRIPTION: Display the result of an AML opcode
743 * Note: Curently only displays the result object if we are single stepping.
744 * However, this output may be useful in other contexts and could be enabled
745 * to do so if needed.
747 ******************************************************************************/
750 AcpiDbDisplayResultObject (
751 ACPI_OPERAND_OBJECT *ObjDesc,
752 ACPI_WALK_STATE *WalkState)
755 /* Only display if single stepping */
757 if (!AcpiGbl_CmSingleStep)
762 AcpiOsPrintf ("ResultObj: ");
763 AcpiDmDisplayInternalObject (ObjDesc, WalkState);
768 /*******************************************************************************
770 * FUNCTION: AcpiDbDisplayArgumentObject
772 * PARAMETERS: ObjDesc - Object to be displayed
773 * WalkState - Current walk state
777 * DESCRIPTION: Display the result of an AML opcode
779 ******************************************************************************/
782 AcpiDbDisplayArgumentObject (
783 ACPI_OPERAND_OBJECT *ObjDesc,
784 ACPI_WALK_STATE *WalkState)
787 if (!AcpiGbl_CmSingleStep)
792 AcpiOsPrintf ("ArgObj: ");
793 AcpiDmDisplayInternalObject (ObjDesc, WalkState);
797 /*******************************************************************************
799 * FUNCTION: AcpiDbDisplayGpes
805 * DESCRIPTION: Display the current GPE structures
807 ******************************************************************************/
813 ACPI_GPE_BLOCK_INFO *GpeBlock;
814 ACPI_GPE_XRUPT_INFO *GpeXruptInfo;
815 ACPI_GPE_EVENT_INFO *GpeEventInfo;
816 ACPI_GPE_REGISTER_INFO *GpeRegisterInfo;
826 RetBuf.Length = sizeof (Buffer);
827 RetBuf.Pointer = Buffer;
831 /* Walk the GPE lists */
833 GpeXruptInfo = AcpiGbl_GpeXruptListHead;
836 GpeBlock = GpeXruptInfo->GpeBlockListHead;
839 Status = AcpiGetName (GpeBlock->Node, ACPI_FULL_PATHNAME, &RetBuf);
840 if (ACPI_FAILURE (Status))
842 AcpiOsPrintf ("Could not convert name to pathname\n");
845 AcpiOsPrintf ("\nBlock %d - Info %p DeviceNode %p [%s]\n",
846 Block, GpeBlock, GpeBlock->Node, Buffer);
848 AcpiOsPrintf (" Registers: %u (%u GPEs)\n",
849 GpeBlock->RegisterCount,
850 ACPI_MUL_8 (GpeBlock->RegisterCount));
852 AcpiOsPrintf (" GPE range: 0x%X to 0x%X\n",
853 GpeBlock->BlockBaseNumber,
854 GpeBlock->BlockBaseNumber +
855 (GpeBlock->RegisterCount * 8) -1);
858 " RegisterInfo: %p Status %8.8X%8.8X Enable %8.8X%8.8X\n",
859 GpeBlock->RegisterInfo,
860 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeBlock->RegisterInfo->StatusAddress.Address)),
861 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeBlock->RegisterInfo->EnableAddress.Address)));
863 AcpiOsPrintf (" EventInfo: %p\n", GpeBlock->EventInfo);
865 /* Examine each GPE Register within the block */
867 for (i = 0; i < GpeBlock->RegisterCount; i++)
869 GpeRegisterInfo = &GpeBlock->RegisterInfo[i];
872 " Reg %u: WakeEnable %2.2X, RunEnable %2.2X Status %8.8X%8.8X Enable %8.8X%8.8X\n",
873 i, GpeRegisterInfo->EnableForWake,
874 GpeRegisterInfo->EnableForRun,
875 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeRegisterInfo->StatusAddress.Address)),
876 ACPI_FORMAT_UINT64 (ACPI_GET_ADDRESS (GpeRegisterInfo->EnableAddress.Address)));
878 /* Now look at the individual GPEs in this byte register */
880 for (j = 0; j < ACPI_GPE_REGISTER_WIDTH; j++)
882 GpeIndex = (i * ACPI_GPE_REGISTER_WIDTH) + j;
883 GpeEventInfo = &GpeBlock->EventInfo[GpeIndex];
885 if (!(GpeEventInfo->Flags & ACPI_GPE_DISPATCH_MASK))
887 /* This GPE is not used (no method or handler) */
893 " GPE %.3X: %p Bit %2.2X Flags %2.2X: ",
894 GpeBlock->BlockBaseNumber + GpeIndex,
895 GpeEventInfo, GpeEventInfo->RegisterBit,
896 GpeEventInfo->Flags);
898 if (GpeEventInfo->Flags & ACPI_GPE_LEVEL_TRIGGERED)
900 AcpiOsPrintf ("Level, ");
904 AcpiOsPrintf ("Edge, ");
907 switch (GpeEventInfo->Flags & ACPI_GPE_TYPE_MASK)
909 case ACPI_GPE_TYPE_WAKE:
910 AcpiOsPrintf ("WakeOnly: ");
912 case ACPI_GPE_TYPE_RUNTIME:
913 AcpiOsPrintf (" RunOnly: ");
915 case ACPI_GPE_TYPE_WAKE_RUN:
916 AcpiOsPrintf (" WakeRun: ");
919 AcpiOsPrintf (" NotUsed: ");
923 if (GpeEventInfo->Flags & ACPI_GPE_WAKE_ENABLED)
925 AcpiOsPrintf ("[Wake 1 ");
929 AcpiOsPrintf ("[Wake 0 ");
932 if (GpeEventInfo->Flags & ACPI_GPE_RUN_ENABLED)
934 AcpiOsPrintf ("Run 1], ");
938 AcpiOsPrintf ("Run 0], ");
941 switch (GpeEventInfo->Flags & ACPI_GPE_DISPATCH_MASK)
943 case ACPI_GPE_DISPATCH_NOT_USED:
944 AcpiOsPrintf ("NotUsed");
946 case ACPI_GPE_DISPATCH_HANDLER:
947 AcpiOsPrintf ("Handler");
949 case ACPI_GPE_DISPATCH_METHOD:
950 AcpiOsPrintf ("Method");
953 AcpiOsPrintf ("UNKNOWN: %X",
954 GpeEventInfo->Flags & ACPI_GPE_DISPATCH_MASK);
962 GpeBlock = GpeBlock->Next;
964 GpeXruptInfo = GpeXruptInfo->Next;
968 #endif /* ACPI_DEBUGGER */