1 /******************************************************************************
3 * Module Name: exdump - Interpreter debug output routines
6 *****************************************************************************/
8 /******************************************************************************
12 * Some or all of this work - Copyright (c) 1999 - 2002, 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 "acinterp.h"
122 #include "acnamesp.h"
123 #include "acparser.h"
125 #define _COMPONENT ACPI_EXECUTER
126 ACPI_MODULE_NAME ("exdump")
130 * The following routines are used for debug output only
133 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
135 /*****************************************************************************
137 * FUNCTION: AcpiExDumpOperand
139 * PARAMETERS: *ObjDesc - Pointer to entry to be dumped
143 * DESCRIPTION: Dump an operand object
145 ****************************************************************************/
149 ACPI_OPERAND_OBJECT *ObjDesc)
153 ACPI_OPERAND_OBJECT **Element;
157 ACPI_FUNCTION_NAME ("ExDumpOperand")
160 if (!((ACPI_LV_EXEC & AcpiDbgLevel) && (_COMPONENT & AcpiDbgLayer)))
168 * This usually indicates that something serious is wrong --
169 * since most (if not all)
170 * code that dumps the stack expects something to be there!
172 AcpiOsPrintf ("Null stack entry ptr\n");
176 if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_NAMED)
178 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p NS Node: ", ObjDesc));
179 ACPI_DUMP_ENTRY (ObjDesc, ACPI_LV_EXEC);
183 if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND)
185 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p is not a local object\n", ObjDesc));
186 ACPI_DUMP_BUFFER (ObjDesc, sizeof (ACPI_OPERAND_OBJECT));
190 /* ObjDesc is a valid object */
192 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p ", ObjDesc));
194 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
196 case ACPI_TYPE_LOCAL_REFERENCE:
198 switch (ObjDesc->Reference.Opcode)
202 AcpiOsPrintf ("Reference: Debug\n");
208 ACPI_DUMP_PATHNAME (ObjDesc->Reference.Object, "Reference: Name: ",
209 ACPI_LV_INFO, _COMPONENT);
210 ACPI_DUMP_ENTRY (ObjDesc->Reference.Object, ACPI_LV_INFO);
216 AcpiOsPrintf ("Reference: Index %p\n",
217 ObjDesc->Reference.Object);
223 AcpiOsPrintf ("Reference: (RefOf) %p\n",
224 ObjDesc->Reference.Object);
230 AcpiOsPrintf ("Reference: Arg%d",
231 ObjDesc->Reference.Offset);
233 if (ACPI_GET_OBJECT_TYPE (ObjDesc) == ACPI_TYPE_INTEGER)
235 /* Value is a Number */
237 AcpiOsPrintf (" value is [%8.8X%8.8x]",
238 ACPI_HIDWORD(ObjDesc->Integer.Value),
239 ACPI_LODWORD(ObjDesc->Integer.Value));
248 AcpiOsPrintf ("Reference: Local%d",
249 ObjDesc->Reference.Offset);
251 if (ACPI_GET_OBJECT_TYPE (ObjDesc) == ACPI_TYPE_INTEGER)
254 /* Value is a Number */
256 AcpiOsPrintf (" value is [%8.8X%8.8x]",
257 ACPI_HIDWORD(ObjDesc->Integer.Value),
258 ACPI_LODWORD(ObjDesc->Integer.Value));
265 case AML_INT_NAMEPATH_OP:
267 AcpiOsPrintf ("Reference.Node->Name %X\n",
268 ObjDesc->Reference.Node->Name.Integer);
276 AcpiOsPrintf ("Unknown Reference opcode=%X\n",
277 ObjDesc->Reference.Opcode);
285 case ACPI_TYPE_BUFFER:
287 AcpiOsPrintf ("Buffer len %X @ %p \n",
288 ObjDesc->Buffer.Length,
289 ObjDesc->Buffer.Pointer);
291 Length = ObjDesc->Buffer.Length;
298 /* Debug only -- dump the buffer contents */
300 if (ObjDesc->Buffer.Pointer)
302 AcpiOsPrintf ("Buffer Contents: ");
304 for (Buf = ObjDesc->Buffer.Pointer; Length--; ++Buf)
306 AcpiOsPrintf (" %02x", *Buf);
314 case ACPI_TYPE_INTEGER:
316 AcpiOsPrintf ("Integer %8.8X%8.8X\n",
317 ACPI_HIDWORD (ObjDesc->Integer.Value),
318 ACPI_LODWORD (ObjDesc->Integer.Value));
322 case ACPI_TYPE_PACKAGE:
324 AcpiOsPrintf ("Package count %X @ %p\n",
325 ObjDesc->Package.Count, ObjDesc->Package.Elements);
328 * If elements exist, package vector pointer is valid,
329 * and debug_level exceeds 1, dump package's elements.
331 if (ObjDesc->Package.Count &&
332 ObjDesc->Package.Elements &&
335 for (ElementIndex = 0, Element = ObjDesc->Package.Elements;
336 ElementIndex < ObjDesc->Package.Count;
337 ++ElementIndex, ++Element)
339 AcpiExDumpOperand (*Element);
346 case ACPI_TYPE_REGION:
348 AcpiOsPrintf ("Region %s (%X)",
349 AcpiUtGetRegionName (ObjDesc->Region.SpaceId),
350 ObjDesc->Region.SpaceId);
353 * If the address and length have not been evaluated,
356 if (!(ObjDesc->Region.Flags & AOPOBJ_DATA_VALID))
362 AcpiOsPrintf (" base %8.8X%8.8X Length %X\n",
363 ACPI_HIDWORD (ObjDesc->Region.Address),
364 ACPI_LODWORD (ObjDesc->Region.Address),
365 ObjDesc->Region.Length);
370 case ACPI_TYPE_STRING:
372 AcpiOsPrintf ("String length %X @ %p ",
373 ObjDesc->String.Length, ObjDesc->String.Pointer);
374 AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX);
379 case ACPI_TYPE_LOCAL_BANK_FIELD:
381 AcpiOsPrintf ("BankField\n");
385 case ACPI_TYPE_LOCAL_REGION_FIELD:
388 "RegionField: Bits=%X AccWidth=%X Lock=%X Update=%X at byte=%X bit=%X of below:\n",
389 ObjDesc->Field.BitLength, ObjDesc->Field.AccessByteWidth,
390 ObjDesc->Field.FieldFlags & AML_FIELD_LOCK_RULE_MASK,
391 ObjDesc->Field.FieldFlags & AML_FIELD_UPDATE_RULE_MASK,
392 ObjDesc->Field.BaseByteOffset, ObjDesc->Field.StartFieldBitOffset);
393 ACPI_DUMP_STACK_ENTRY (ObjDesc->Field.RegionObj);
397 case ACPI_TYPE_LOCAL_INDEX_FIELD:
399 AcpiOsPrintf ("IndexField\n");
403 case ACPI_TYPE_BUFFER_FIELD:
406 "BufferField: %X bits at byte %X bit %X of \n",
407 ObjDesc->BufferField.BitLength, ObjDesc->BufferField.BaseByteOffset,
408 ObjDesc->BufferField.StartFieldBitOffset);
410 if (!ObjDesc->BufferField.BufferObj)
412 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "*NULL* \n"));
414 else if (ACPI_GET_OBJECT_TYPE (ObjDesc->BufferField.BufferObj) != ACPI_TYPE_BUFFER)
416 AcpiOsPrintf ("*not a Buffer* \n");
420 ACPI_DUMP_STACK_ENTRY (ObjDesc->BufferField.BufferObj);
426 case ACPI_TYPE_EVENT:
428 AcpiOsPrintf ("Event\n");
432 case ACPI_TYPE_METHOD:
435 "Method(%X) @ %p:%X\n",
436 ObjDesc->Method.ParamCount,
437 ObjDesc->Method.AmlStart, ObjDesc->Method.AmlLength);
441 case ACPI_TYPE_MUTEX:
443 AcpiOsPrintf ("Mutex\n");
447 case ACPI_TYPE_DEVICE:
449 AcpiOsPrintf ("Device\n");
453 case ACPI_TYPE_POWER:
455 AcpiOsPrintf ("Power\n");
459 case ACPI_TYPE_PROCESSOR:
461 AcpiOsPrintf ("Processor\n");
465 case ACPI_TYPE_THERMAL:
467 AcpiOsPrintf ("Thermal\n");
474 AcpiOsPrintf ("Unknown Type %X\n", ACPI_GET_OBJECT_TYPE (ObjDesc));
482 /*****************************************************************************
484 * FUNCTION: AcpiExDumpOperands
486 * PARAMETERS: InterpreterMode - Load or Exec
487 * *Ident - Identification
488 * NumLevels - # of stack entries to dump above line
489 * *Note - Output notation
491 * DESCRIPTION: Dump the object stack
493 ****************************************************************************/
497 ACPI_OPERAND_OBJECT **Operands,
498 ACPI_INTERPRETER_MODE InterpreterMode,
502 NATIVE_CHAR *ModuleName,
506 ACPI_OPERAND_OBJECT **ObjDesc;
509 ACPI_FUNCTION_NAME ("ExDumpOperands");
522 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
523 "************* Operand Stack Contents (Opcode [%s], %d Operands)\n",
531 /* Dump the operand stack starting at the top */
533 for (i = 0; NumLevels > 0; i--, NumLevels--)
535 ObjDesc = &Operands[i];
536 AcpiExDumpOperand (*ObjDesc);
539 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
540 "************* Stack dump from %s(%d), %s\n",
541 ModuleName, LineNumber, Note));
546 /*****************************************************************************
548 * FUNCTION: AcpiExOut*
550 * PARAMETERS: Title - Descriptive text
551 * Value - Value to be displayed
553 * DESCRIPTION: Object dump output formatting functions. These functions
554 * reduce the number of format strings required and keeps them
555 * all in one place for easy modification.
557 ****************************************************************************/
564 AcpiOsPrintf ("%20s : %s\n", Title, Value);
572 AcpiOsPrintf ("%20s : %p\n", Title, Value);
580 AcpiOsPrintf ("%20s : %X\n", Title, Value);
586 ACPI_PHYSICAL_ADDRESS Value)
589 #if ACPI_MACHINE_WIDTH == 16
590 AcpiOsPrintf ("%20s : %p\n", Title, Value);
592 AcpiOsPrintf ("%20s : %8.8X%8.8X\n", Title,
593 ACPI_HIDWORD (Value), ACPI_LODWORD (Value));
598 /*****************************************************************************
600 * FUNCTION: AcpiExDumpNode
602 * PARAMETERS: *Node - Descriptor to dump
603 * Flags - Force display
605 * DESCRIPTION: Dumps the members of the given.Node
607 ****************************************************************************/
611 ACPI_NAMESPACE_NODE *Node,
615 ACPI_FUNCTION_ENTRY ();
620 if (!((ACPI_LV_OBJECTS & AcpiDbgLevel) && (_COMPONENT & AcpiDbgLayer)))
626 AcpiOsPrintf ("%20s : %4.4s\n", "Name", Node->Name.Ascii);
627 AcpiExOutString ("Type", AcpiUtGetTypeName (Node->Type));
628 AcpiExOutInteger ("Flags", Node->Flags);
629 AcpiExOutInteger ("Owner Id", Node->OwnerId);
630 AcpiExOutInteger ("Reference Count", Node->ReferenceCount);
631 AcpiExOutPointer ("Attached Object", AcpiNsGetAttachedObject (Node));
632 AcpiExOutPointer ("ChildList", Node->Child);
633 AcpiExOutPointer ("NextPeer", Node->Peer);
634 AcpiExOutPointer ("Parent", AcpiNsGetParentNode (Node));
638 /*****************************************************************************
640 * FUNCTION: AcpiExDumpObjectDescriptor
642 * PARAMETERS: *Object - Descriptor to dump
643 * Flags - Force display
645 * DESCRIPTION: Dumps the members of the object descriptor given.
647 ****************************************************************************/
650 AcpiExDumpObjectDescriptor (
651 ACPI_OPERAND_OBJECT *ObjDesc,
657 ACPI_FUNCTION_TRACE ("ExDumpObjectDescriptor");
662 if (!((ACPI_LV_OBJECTS & AcpiDbgLevel) && (_COMPONENT & AcpiDbgLayer)))
668 if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) == ACPI_DESC_TYPE_NAMED)
670 AcpiExDumpNode ((ACPI_NAMESPACE_NODE *) ObjDesc, Flags);
671 AcpiOsPrintf ("\nAttached Object (%p):\n", ((ACPI_NAMESPACE_NODE *) ObjDesc)->Object);
672 AcpiExDumpObjectDescriptor (((ACPI_NAMESPACE_NODE *) ObjDesc)->Object, Flags);
676 if (ACPI_GET_DESCRIPTOR_TYPE (ObjDesc) != ACPI_DESC_TYPE_OPERAND)
678 AcpiOsPrintf ("ExDumpObjectDescriptor: %p is not a valid ACPI object\n", ObjDesc);
684 AcpiExOutString ("Type", AcpiUtGetObjectTypeName (ObjDesc));
685 AcpiExOutInteger ("Reference Count", ObjDesc->Common.ReferenceCount);
686 AcpiExOutInteger ("Flags", ObjDesc->Common.Flags);
688 /* Object-specific Fields */
690 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
692 case ACPI_TYPE_INTEGER:
694 AcpiOsPrintf ("%20s : %8.8X%8.8X\n", "Value",
695 ACPI_HIDWORD (ObjDesc->Integer.Value),
696 ACPI_LODWORD (ObjDesc->Integer.Value));
700 case ACPI_TYPE_STRING:
702 AcpiExOutInteger ("Length", ObjDesc->String.Length);
704 AcpiOsPrintf ("%20s : %p ", "Pointer", ObjDesc->String.Pointer);
705 AcpiUtPrintString (ObjDesc->String.Pointer, ACPI_UINT8_MAX);
710 case ACPI_TYPE_BUFFER:
712 AcpiExOutInteger ("Length", ObjDesc->Buffer.Length);
713 AcpiExOutPointer ("Pointer", ObjDesc->Buffer.Pointer);
714 ACPI_DUMP_BUFFER (ObjDesc->Buffer.Pointer, ObjDesc->Buffer.Length);
718 case ACPI_TYPE_PACKAGE:
720 AcpiExOutInteger ("Flags", ObjDesc->Package.Flags);
721 AcpiExOutInteger ("Count", ObjDesc->Package.Count);
722 AcpiExOutPointer ("Elements", ObjDesc->Package.Elements);
724 /* Dump the package contents */
726 if (ObjDesc->Package.Count > 0)
728 AcpiOsPrintf ("\nPackage Contents:\n");
729 for (i = 0; i < ObjDesc->Package.Count; i++)
731 AcpiOsPrintf ("[%.3d] %p", i, ObjDesc->Package.Elements[i]);
732 if (ObjDesc->Package.Elements[i])
734 AcpiOsPrintf (" %s", AcpiUtGetObjectTypeName (ObjDesc->Package.Elements[i]));
742 case ACPI_TYPE_DEVICE:
744 AcpiExOutPointer ("AddrHandler", ObjDesc->Device.AddrHandler);
745 AcpiExOutPointer ("SysHandler", ObjDesc->Device.SysHandler);
746 AcpiExOutPointer ("DrvHandler", ObjDesc->Device.DrvHandler);
750 case ACPI_TYPE_EVENT:
752 AcpiExOutPointer ("Semaphore", ObjDesc->Event.Semaphore);
756 case ACPI_TYPE_METHOD:
758 AcpiExOutInteger ("ParamCount", ObjDesc->Method.ParamCount);
759 AcpiExOutInteger ("Concurrency", ObjDesc->Method.Concurrency);
760 AcpiExOutPointer ("Semaphore", ObjDesc->Method.Semaphore);
761 AcpiExOutInteger ("OwningId", ObjDesc->Method.OwningId);
762 AcpiExOutInteger ("AmlLength", ObjDesc->Method.AmlLength);
763 AcpiExOutPointer ("AmlStart", ObjDesc->Method.AmlStart);
767 case ACPI_TYPE_MUTEX:
769 AcpiExOutInteger ("SyncLevel", ObjDesc->Mutex.SyncLevel);
770 AcpiExOutPointer ("OwnerThread", ObjDesc->Mutex.OwnerThread);
771 AcpiExOutInteger ("AcquisitionDepth",ObjDesc->Mutex.AcquisitionDepth);
772 AcpiExOutPointer ("Semaphore", ObjDesc->Mutex.Semaphore);
776 case ACPI_TYPE_REGION:
778 AcpiExOutInteger ("SpaceId", ObjDesc->Region.SpaceId);
779 AcpiExOutInteger ("Flags", ObjDesc->Region.Flags);
780 AcpiExOutAddress ("Address", ObjDesc->Region.Address);
781 AcpiExOutInteger ("Length", ObjDesc->Region.Length);
782 AcpiExOutPointer ("AddrHandler", ObjDesc->Region.AddrHandler);
783 AcpiExOutPointer ("Next", ObjDesc->Region.Next);
787 case ACPI_TYPE_POWER:
789 AcpiExOutInteger ("SystemLevel", ObjDesc->PowerResource.SystemLevel);
790 AcpiExOutInteger ("ResourceOrder", ObjDesc->PowerResource.ResourceOrder);
791 AcpiExOutPointer ("SysHandler", ObjDesc->PowerResource.SysHandler);
792 AcpiExOutPointer ("DrvHandler", ObjDesc->PowerResource.DrvHandler);
796 case ACPI_TYPE_PROCESSOR:
798 AcpiExOutInteger ("Processor ID", ObjDesc->Processor.ProcId);
799 AcpiExOutInteger ("Length", ObjDesc->Processor.Length);
800 AcpiExOutAddress ("Address", (ACPI_PHYSICAL_ADDRESS) ObjDesc->Processor.Address);
801 AcpiExOutPointer ("SysHandler", ObjDesc->Processor.SysHandler);
802 AcpiExOutPointer ("DrvHandler", ObjDesc->Processor.DrvHandler);
803 AcpiExOutPointer ("AddrHandler", ObjDesc->Processor.AddrHandler);
807 case ACPI_TYPE_THERMAL:
809 AcpiExOutPointer ("SysHandler", ObjDesc->ThermalZone.SysHandler);
810 AcpiExOutPointer ("DrvHandler", ObjDesc->ThermalZone.DrvHandler);
811 AcpiExOutPointer ("AddrHandler", ObjDesc->ThermalZone.AddrHandler);
815 case ACPI_TYPE_BUFFER_FIELD:
816 case ACPI_TYPE_LOCAL_REGION_FIELD:
817 case ACPI_TYPE_LOCAL_BANK_FIELD:
818 case ACPI_TYPE_LOCAL_INDEX_FIELD:
820 AcpiExOutInteger ("FieldFlags", ObjDesc->CommonField.FieldFlags);
821 AcpiExOutInteger ("AccessByteWidth", ObjDesc->CommonField.AccessByteWidth);
822 AcpiExOutInteger ("BitLength", ObjDesc->CommonField.BitLength);
823 AcpiExOutInteger ("FldBitOffset", ObjDesc->CommonField.StartFieldBitOffset);
824 AcpiExOutInteger ("BaseByteOffset", ObjDesc->CommonField.BaseByteOffset);
825 AcpiExOutInteger ("DatumValidBits", ObjDesc->CommonField.DatumValidBits);
826 AcpiExOutInteger ("EndFldValidBits", ObjDesc->CommonField.EndFieldValidBits);
827 AcpiExOutInteger ("EndBufValidBits", ObjDesc->CommonField.EndBufferValidBits);
828 AcpiExOutPointer ("ParentNode", ObjDesc->CommonField.Node);
830 switch (ACPI_GET_OBJECT_TYPE (ObjDesc))
832 case ACPI_TYPE_BUFFER_FIELD:
833 AcpiExOutPointer ("BufferObj", ObjDesc->BufferField.BufferObj);
836 case ACPI_TYPE_LOCAL_REGION_FIELD:
837 AcpiExOutPointer ("RegionObj", ObjDesc->Field.RegionObj);
840 case ACPI_TYPE_LOCAL_BANK_FIELD:
841 AcpiExOutInteger ("Value", ObjDesc->BankField.Value);
842 AcpiExOutPointer ("RegionObj", ObjDesc->BankField.RegionObj);
843 AcpiExOutPointer ("BankObj", ObjDesc->BankField.BankObj);
846 case ACPI_TYPE_LOCAL_INDEX_FIELD:
847 AcpiExOutInteger ("Value", ObjDesc->IndexField.Value);
848 AcpiExOutPointer ("Index", ObjDesc->IndexField.IndexObj);
849 AcpiExOutPointer ("Data", ObjDesc->IndexField.DataObj);
853 /* All object types covered above */
859 case ACPI_TYPE_LOCAL_REFERENCE:
861 AcpiExOutInteger ("TargetType", ObjDesc->Reference.TargetType);
862 AcpiExOutString ("Opcode", (AcpiPsGetOpcodeInfo (ObjDesc->Reference.Opcode))->Name);
863 AcpiExOutInteger ("Offset", ObjDesc->Reference.Offset);
864 AcpiExOutPointer ("ObjDesc", ObjDesc->Reference.Object);
865 AcpiExOutPointer ("Node", ObjDesc->Reference.Node);
866 AcpiExOutPointer ("Where", ObjDesc->Reference.Where);
870 case ACPI_TYPE_LOCAL_ADDRESS_HANDLER:
872 AcpiExOutInteger ("SpaceId", ObjDesc->AddrHandler.SpaceId);
873 AcpiExOutPointer ("Next", ObjDesc->AddrHandler.Next);
874 AcpiExOutPointer ("RegionList", ObjDesc->AddrHandler.RegionList);
875 AcpiExOutPointer ("Node", ObjDesc->AddrHandler.Node);
876 AcpiExOutPointer ("Context", ObjDesc->AddrHandler.Context);
880 case ACPI_TYPE_LOCAL_NOTIFY:
882 AcpiExOutPointer ("Node", ObjDesc->NotifyHandler.Node);
883 AcpiExOutPointer ("Context", ObjDesc->NotifyHandler.Context);
887 case ACPI_TYPE_LOCAL_ALIAS:
888 case ACPI_TYPE_LOCAL_EXTRA:
889 case ACPI_TYPE_LOCAL_DATA:
892 AcpiOsPrintf ("ExDumpObjectDescriptor: Display not implemented for object type %s\n",
893 AcpiUtGetObjectTypeName (ObjDesc));