1 /******************************************************************************
3 * Module Name: exdump - Interpreter debug output routines
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2005, R. Byron Moore
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
45 #include <acpi/acpi.h>
46 #include <acpi/acinterp.h>
47 #include <acpi/amlcode.h>
48 #include <acpi/acnamesp.h>
49 #include <acpi/acparser.h>
51 #define _COMPONENT ACPI_EXECUTER
52 ACPI_MODULE_NAME ("exdump")
55 * The following routines are used for debug output only
57 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
59 /* Local prototypes */
61 #ifdef ACPI_FUTURE_USAGE
80 acpi_physical_address value);
81 #endif /* ACPI_FUTURE_USAGE */
84 acpi_ex_dump_reference (
85 union acpi_operand_object *obj_desc);
88 acpi_ex_dump_package (
89 union acpi_operand_object *obj_desc,
94 /*******************************************************************************
96 * FUNCTION: acpi_ex_dump_operand
98 * PARAMETERS: *obj_desc - Pointer to entry to be dumped
99 * Depth - Current nesting depth
103 * DESCRIPTION: Dump an operand object
105 ******************************************************************************/
108 acpi_ex_dump_operand (
109 union acpi_operand_object *obj_desc,
116 ACPI_FUNCTION_NAME ("ex_dump_operand")
119 if (!((ACPI_LV_EXEC & acpi_dbg_level) && (_COMPONENT & acpi_dbg_layer))) {
124 /* This could be a null element of a package */
126 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Null Object Descriptor\n"));
130 if (ACPI_GET_DESCRIPTOR_TYPE (obj_desc) == ACPI_DESC_TYPE_NAMED) {
131 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p Namespace Node: ", obj_desc));
132 ACPI_DUMP_ENTRY (obj_desc, ACPI_LV_EXEC);
136 if (ACPI_GET_DESCRIPTOR_TYPE (obj_desc) != ACPI_DESC_TYPE_OPERAND) {
137 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
138 "%p is not a node or operand object: [%s]\n",
139 obj_desc, acpi_ut_get_descriptor_name (obj_desc)));
140 ACPI_DUMP_BUFFER (obj_desc, sizeof (union acpi_operand_object));
144 /* obj_desc is a valid object */
147 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%*s[%u] %p ",
148 depth, " ", depth, obj_desc));
151 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%p ", obj_desc));
154 /* Decode object type */
156 switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
157 case ACPI_TYPE_LOCAL_REFERENCE:
159 switch (obj_desc->reference.opcode) {
162 acpi_os_printf ("Reference: Debug\n");
168 ACPI_DUMP_PATHNAME (obj_desc->reference.object,
169 "Reference: Name: ", ACPI_LV_INFO, _COMPONENT);
170 ACPI_DUMP_ENTRY (obj_desc->reference.object, ACPI_LV_INFO);
176 acpi_os_printf ("Reference: Index %p\n",
177 obj_desc->reference.object);
183 acpi_os_printf ("Reference: (ref_of) %p\n",
184 obj_desc->reference.object);
190 acpi_os_printf ("Reference: Arg%d",
191 obj_desc->reference.offset);
193 if (ACPI_GET_OBJECT_TYPE (obj_desc) == ACPI_TYPE_INTEGER) {
194 /* Value is an Integer */
196 acpi_os_printf (" value is [%8.8X%8.8x]",
197 ACPI_FORMAT_UINT64 (obj_desc->integer.value));
200 acpi_os_printf ("\n");
206 acpi_os_printf ("Reference: Local%d",
207 obj_desc->reference.offset);
209 if (ACPI_GET_OBJECT_TYPE (obj_desc) == ACPI_TYPE_INTEGER) {
211 /* Value is an Integer */
213 acpi_os_printf (" value is [%8.8X%8.8x]",
214 ACPI_FORMAT_UINT64 (obj_desc->integer.value));
217 acpi_os_printf ("\n");
221 case AML_INT_NAMEPATH_OP:
223 acpi_os_printf ("Reference.Node->Name %X\n",
224 obj_desc->reference.node->name.integer);
232 acpi_os_printf ("Unknown Reference opcode=%X\n",
233 obj_desc->reference.opcode);
240 case ACPI_TYPE_BUFFER:
242 acpi_os_printf ("Buffer len %X @ %p \n",
243 obj_desc->buffer.length, obj_desc->buffer.pointer);
245 length = obj_desc->buffer.length;
250 /* Debug only -- dump the buffer contents */
252 if (obj_desc->buffer.pointer) {
253 acpi_os_printf ("Buffer Contents: ");
255 for (index = 0; index < length; index++) {
256 acpi_os_printf (" %02x", obj_desc->buffer.pointer[index]);
258 acpi_os_printf ("\n");
263 case ACPI_TYPE_INTEGER:
265 acpi_os_printf ("Integer %8.8X%8.8X\n",
266 ACPI_FORMAT_UINT64 (obj_desc->integer.value));
270 case ACPI_TYPE_PACKAGE:
272 acpi_os_printf ("Package [Len %X] element_array %p\n",
273 obj_desc->package.count, obj_desc->package.elements);
276 * If elements exist, package element pointer is valid,
277 * and debug_level exceeds 1, dump package's elements.
279 if (obj_desc->package.count &&
280 obj_desc->package.elements &&
281 acpi_dbg_level > 1) {
282 for (index = 0; index < obj_desc->package.count; index++) {
283 acpi_ex_dump_operand (obj_desc->package.elements[index], depth+1);
289 case ACPI_TYPE_REGION:
291 acpi_os_printf ("Region %s (%X)",
292 acpi_ut_get_region_name (obj_desc->region.space_id),
293 obj_desc->region.space_id);
296 * If the address and length have not been evaluated,
299 if (!(obj_desc->region.flags & AOPOBJ_DATA_VALID)) {
300 acpi_os_printf ("\n");
303 acpi_os_printf (" base %8.8X%8.8X Length %X\n",
304 ACPI_FORMAT_UINT64 (obj_desc->region.address),
305 obj_desc->region.length);
310 case ACPI_TYPE_STRING:
312 acpi_os_printf ("String length %X @ %p ",
313 obj_desc->string.length,
314 obj_desc->string.pointer);
316 acpi_ut_print_string (obj_desc->string.pointer, ACPI_UINT8_MAX);
317 acpi_os_printf ("\n");
321 case ACPI_TYPE_LOCAL_BANK_FIELD:
323 acpi_os_printf ("bank_field\n");
327 case ACPI_TYPE_LOCAL_REGION_FIELD:
330 "region_field: Bits=%X acc_width=%X Lock=%X Update=%X at byte=%X bit=%X of below:\n",
331 obj_desc->field.bit_length,
332 obj_desc->field.access_byte_width,
333 obj_desc->field.field_flags & AML_FIELD_LOCK_RULE_MASK,
334 obj_desc->field.field_flags & AML_FIELD_UPDATE_RULE_MASK,
335 obj_desc->field.base_byte_offset,
336 obj_desc->field.start_field_bit_offset);
338 acpi_ex_dump_operand (obj_desc->field.region_obj, depth+1);
342 case ACPI_TYPE_LOCAL_INDEX_FIELD:
344 acpi_os_printf ("index_field\n");
348 case ACPI_TYPE_BUFFER_FIELD:
351 "buffer_field: %X bits at byte %X bit %X of \n",
352 obj_desc->buffer_field.bit_length,
353 obj_desc->buffer_field.base_byte_offset,
354 obj_desc->buffer_field.start_field_bit_offset);
356 if (!obj_desc->buffer_field.buffer_obj) {
357 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "*NULL* \n"));
359 else if (ACPI_GET_OBJECT_TYPE (obj_desc->buffer_field.buffer_obj) !=
361 acpi_os_printf ("*not a Buffer* \n");
364 acpi_ex_dump_operand (obj_desc->buffer_field.buffer_obj, depth+1);
369 case ACPI_TYPE_EVENT:
371 acpi_os_printf ("Event\n");
375 case ACPI_TYPE_METHOD:
377 acpi_os_printf ("Method(%X) @ %p:%X\n",
378 obj_desc->method.param_count,
379 obj_desc->method.aml_start,
380 obj_desc->method.aml_length);
384 case ACPI_TYPE_MUTEX:
386 acpi_os_printf ("Mutex\n");
390 case ACPI_TYPE_DEVICE:
392 acpi_os_printf ("Device\n");
396 case ACPI_TYPE_POWER:
398 acpi_os_printf ("Power\n");
402 case ACPI_TYPE_PROCESSOR:
404 acpi_os_printf ("Processor\n");
408 case ACPI_TYPE_THERMAL:
410 acpi_os_printf ("Thermal\n");
417 acpi_os_printf ("Unknown Type %X\n", ACPI_GET_OBJECT_TYPE (obj_desc));
425 /*******************************************************************************
427 * FUNCTION: acpi_ex_dump_operands
429 * PARAMETERS: Operands - Operand list
430 * interpreter_mode - Load or Exec
431 * Ident - Identification
432 * num_levels - # of stack entries to dump above line
433 * Note - Output notation
434 * module_name - Caller's module name
435 * line_number - Caller's invocation line number
437 * DESCRIPTION: Dump the object stack
439 ******************************************************************************/
442 acpi_ex_dump_operands (
443 union acpi_operand_object **operands,
444 acpi_interpreter_mode interpreter_mode,
454 ACPI_FUNCTION_NAME ("ex_dump_operands");
465 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
466 "************* Operand Stack Contents (Opcode [%s], %d Operands)\n",
469 if (num_levels == 0) {
473 /* Dump the operand stack starting at the top */
475 for (i = 0; num_levels > 0; i--, num_levels--) {
476 acpi_ex_dump_operand (operands[i], 0);
479 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC,
480 "************* Operand Stack dump from %s(%d), %s\n",
481 module_name, line_number, note));
486 #ifdef ACPI_FUTURE_USAGE
487 /*******************************************************************************
489 * FUNCTION: acpi_ex_out* functions
491 * PARAMETERS: Title - Descriptive text
492 * Value - Value to be displayed
494 * DESCRIPTION: Object dump output formatting functions. These functions
495 * reduce the number of format strings required and keeps them
496 * all in one place for easy modification.
498 ******************************************************************************/
505 acpi_os_printf ("%20s : %s\n", title, value);
509 acpi_ex_out_pointer (
513 acpi_os_printf ("%20s : %p\n", title, value);
517 acpi_ex_out_integer (
521 acpi_os_printf ("%20s : %.2X\n", title, value);
525 acpi_ex_out_address (
527 acpi_physical_address value)
530 #if ACPI_MACHINE_WIDTH == 16
531 acpi_os_printf ("%20s : %p\n", title, value);
533 acpi_os_printf ("%20s : %8.8X%8.8X\n", title, ACPI_FORMAT_UINT64 (value));
538 /*******************************************************************************
540 * FUNCTION: acpi_ex_dump_node
542 * PARAMETERS: *Node - Descriptor to dump
543 * Flags - Force display if TRUE
545 * DESCRIPTION: Dumps the members of the given.Node
547 ******************************************************************************/
551 struct acpi_namespace_node *node,
555 ACPI_FUNCTION_ENTRY ();
559 if (!((ACPI_LV_OBJECTS & acpi_dbg_level) && (_COMPONENT & acpi_dbg_layer))) {
564 acpi_os_printf ("%20s : %4.4s\n", "Name", acpi_ut_get_node_name (node));
565 acpi_ex_out_string ("Type", acpi_ut_get_type_name (node->type));
566 acpi_ex_out_integer ("Flags", node->flags);
567 acpi_ex_out_integer ("Owner Id", node->owner_id);
568 acpi_ex_out_integer ("Reference Count", node->reference_count);
569 acpi_ex_out_pointer ("Attached Object", acpi_ns_get_attached_object (node));
570 acpi_ex_out_pointer ("child_list", node->child);
571 acpi_ex_out_pointer ("next_peer", node->peer);
572 acpi_ex_out_pointer ("Parent", acpi_ns_get_parent_node (node));
576 /*******************************************************************************
578 * FUNCTION: acpi_ex_dump_reference
580 * PARAMETERS: Object - Descriptor to dump
582 * DESCRIPTION: Dumps a reference object
584 ******************************************************************************/
587 acpi_ex_dump_reference (
588 union acpi_operand_object *obj_desc)
590 struct acpi_buffer ret_buf;
594 if (obj_desc->reference.opcode == AML_INT_NAMEPATH_OP) {
595 acpi_os_printf ("Named Object %p ", obj_desc->reference.node);
596 ret_buf.length = ACPI_ALLOCATE_LOCAL_BUFFER;
597 status = acpi_ns_handle_to_pathname (obj_desc->reference.node, &ret_buf);
598 if (ACPI_FAILURE (status)) {
599 acpi_os_printf ("Could not convert name to pathname\n");
602 acpi_os_printf ("%s\n", ret_buf.pointer);
603 ACPI_MEM_FREE (ret_buf.pointer);
606 else if (obj_desc->reference.object) {
607 acpi_os_printf ("\nReferenced Object: %p\n", obj_desc->reference.object);
612 /*******************************************************************************
614 * FUNCTION: acpi_ex_dump_package
616 * PARAMETERS: Object - Descriptor to dump
617 * Level - Indentation Level
618 * Index - Package index for this object
620 * DESCRIPTION: Dumps the elements of the package
622 ******************************************************************************/
625 acpi_ex_dump_package (
626 union acpi_operand_object *obj_desc,
633 /* Indentation and index output */
636 for (i = 0; i < level; i++) {
637 acpi_os_printf (" ");
640 acpi_os_printf ("[%.2d] ", index);
643 acpi_os_printf ("%p ", obj_desc);
645 /* Null package elements are allowed */
648 acpi_os_printf ("[Null Object]\n");
652 /* Packages may only contain a few object types */
654 switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
655 case ACPI_TYPE_INTEGER:
657 acpi_os_printf ("[Integer] = %8.8X%8.8X\n",
658 ACPI_FORMAT_UINT64 (obj_desc->integer.value));
662 case ACPI_TYPE_STRING:
664 acpi_os_printf ("[String] Value: ");
665 for (i = 0; i < obj_desc->string.length; i++) {
666 acpi_os_printf ("%c", obj_desc->string.pointer[i]);
668 acpi_os_printf ("\n");
672 case ACPI_TYPE_BUFFER:
674 acpi_os_printf ("[Buffer] Length %.2X = ", obj_desc->buffer.length);
675 if (obj_desc->buffer.length) {
676 acpi_ut_dump_buffer ((u8 *) obj_desc->buffer.pointer,
677 obj_desc->buffer.length, DB_DWORD_DISPLAY, _COMPONENT);
680 acpi_os_printf ("\n");
685 case ACPI_TYPE_PACKAGE:
687 acpi_os_printf ("[Package] Contains %d Elements: \n",
688 obj_desc->package.count);
690 for (i = 0; i < obj_desc->package.count; i++) {
691 acpi_ex_dump_package (obj_desc->package.elements[i], level+1, i);
696 case ACPI_TYPE_LOCAL_REFERENCE:
698 acpi_os_printf ("[Object Reference] ");
699 acpi_ex_dump_reference (obj_desc);
705 acpi_os_printf ("[Unknown Type] %X\n", ACPI_GET_OBJECT_TYPE (obj_desc));
711 /*******************************************************************************
713 * FUNCTION: acpi_ex_dump_object_descriptor
715 * PARAMETERS: Object - Descriptor to dump
716 * Flags - Force display if TRUE
718 * DESCRIPTION: Dumps the members of the object descriptor given.
720 ******************************************************************************/
723 acpi_ex_dump_object_descriptor (
724 union acpi_operand_object *obj_desc,
727 ACPI_FUNCTION_TRACE ("ex_dump_object_descriptor");
735 if (!((ACPI_LV_OBJECTS & acpi_dbg_level) && (_COMPONENT & acpi_dbg_layer))) {
740 if (ACPI_GET_DESCRIPTOR_TYPE (obj_desc) == ACPI_DESC_TYPE_NAMED) {
741 acpi_ex_dump_node ((struct acpi_namespace_node *) obj_desc, flags);
742 acpi_os_printf ("\nAttached Object (%p):\n",
743 ((struct acpi_namespace_node *) obj_desc)->object);
744 acpi_ex_dump_object_descriptor (
745 ((struct acpi_namespace_node *) obj_desc)->object, flags);
749 if (ACPI_GET_DESCRIPTOR_TYPE (obj_desc) != ACPI_DESC_TYPE_OPERAND) {
751 "ex_dump_object_descriptor: %p is not an ACPI operand object: [%s]\n",
752 obj_desc, acpi_ut_get_descriptor_name (obj_desc));
758 acpi_ex_out_string ("Type", acpi_ut_get_object_type_name (obj_desc));
759 acpi_ex_out_integer ("Reference Count", obj_desc->common.reference_count);
760 acpi_ex_out_integer ("Flags", obj_desc->common.flags);
762 /* Object-specific Fields */
764 switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
765 case ACPI_TYPE_INTEGER:
767 acpi_os_printf ("%20s : %8.8X%8.8X\n", "Value",
768 ACPI_FORMAT_UINT64 (obj_desc->integer.value));
772 case ACPI_TYPE_STRING:
774 acpi_ex_out_integer ("Length", obj_desc->string.length);
776 acpi_os_printf ("%20s : %p ", "Pointer", obj_desc->string.pointer);
777 acpi_ut_print_string (obj_desc->string.pointer, ACPI_UINT8_MAX);
778 acpi_os_printf ("\n");
782 case ACPI_TYPE_BUFFER:
784 acpi_ex_out_integer ("Length", obj_desc->buffer.length);
785 acpi_ex_out_pointer ("Pointer", obj_desc->buffer.pointer);
786 ACPI_DUMP_BUFFER (obj_desc->buffer.pointer, obj_desc->buffer.length);
790 case ACPI_TYPE_PACKAGE:
792 acpi_ex_out_integer ("Flags", obj_desc->package.flags);
793 acpi_ex_out_integer ("Elements", obj_desc->package.count);
794 acpi_ex_out_pointer ("Element List", obj_desc->package.elements);
796 /* Dump the package contents */
798 acpi_os_printf ("\nPackage Contents:\n");
799 acpi_ex_dump_package (obj_desc, 0, 0);
803 case ACPI_TYPE_DEVICE:
805 acpi_ex_out_pointer ("Handler", obj_desc->device.handler);
806 acpi_ex_out_pointer ("system_notify", obj_desc->device.system_notify);
807 acpi_ex_out_pointer ("device_notify", obj_desc->device.device_notify);
811 case ACPI_TYPE_EVENT:
813 acpi_ex_out_pointer ("Semaphore", obj_desc->event.semaphore);
817 case ACPI_TYPE_METHOD:
819 acpi_ex_out_integer ("param_count", obj_desc->method.param_count);
820 acpi_ex_out_integer ("Concurrency", obj_desc->method.concurrency);
821 acpi_ex_out_pointer ("Semaphore", obj_desc->method.semaphore);
822 acpi_ex_out_integer ("owning_id", obj_desc->method.owning_id);
823 acpi_ex_out_integer ("aml_length", obj_desc->method.aml_length);
824 acpi_ex_out_pointer ("aml_start", obj_desc->method.aml_start);
828 case ACPI_TYPE_MUTEX:
830 acpi_ex_out_integer ("sync_level", obj_desc->mutex.sync_level);
831 acpi_ex_out_pointer ("owner_thread", obj_desc->mutex.owner_thread);
832 acpi_ex_out_integer ("acquire_depth", obj_desc->mutex.acquisition_depth);
833 acpi_ex_out_pointer ("Semaphore", obj_desc->mutex.semaphore);
837 case ACPI_TYPE_REGION:
839 acpi_ex_out_integer ("space_id", obj_desc->region.space_id);
840 acpi_ex_out_integer ("Flags", obj_desc->region.flags);
841 acpi_ex_out_address ("Address", obj_desc->region.address);
842 acpi_ex_out_integer ("Length", obj_desc->region.length);
843 acpi_ex_out_pointer ("Handler", obj_desc->region.handler);
844 acpi_ex_out_pointer ("Next", obj_desc->region.next);
848 case ACPI_TYPE_POWER:
850 acpi_ex_out_integer ("system_level", obj_desc->power_resource.system_level);
851 acpi_ex_out_integer ("resource_order", obj_desc->power_resource.resource_order);
852 acpi_ex_out_pointer ("system_notify", obj_desc->power_resource.system_notify);
853 acpi_ex_out_pointer ("device_notify", obj_desc->power_resource.device_notify);
857 case ACPI_TYPE_PROCESSOR:
859 acpi_ex_out_integer ("Processor ID", obj_desc->processor.proc_id);
860 acpi_ex_out_integer ("Length", obj_desc->processor.length);
861 acpi_ex_out_address ("Address", (acpi_physical_address) obj_desc->processor.address);
862 acpi_ex_out_pointer ("system_notify", obj_desc->processor.system_notify);
863 acpi_ex_out_pointer ("device_notify", obj_desc->processor.device_notify);
864 acpi_ex_out_pointer ("Handler", obj_desc->processor.handler);
868 case ACPI_TYPE_THERMAL:
870 acpi_ex_out_pointer ("system_notify", obj_desc->thermal_zone.system_notify);
871 acpi_ex_out_pointer ("device_notify", obj_desc->thermal_zone.device_notify);
872 acpi_ex_out_pointer ("Handler", obj_desc->thermal_zone.handler);
876 case ACPI_TYPE_BUFFER_FIELD:
877 case ACPI_TYPE_LOCAL_REGION_FIELD:
878 case ACPI_TYPE_LOCAL_BANK_FIELD:
879 case ACPI_TYPE_LOCAL_INDEX_FIELD:
881 acpi_ex_out_integer ("field_flags", obj_desc->common_field.field_flags);
882 acpi_ex_out_integer ("access_byte_width",obj_desc->common_field.access_byte_width);
883 acpi_ex_out_integer ("bit_length", obj_desc->common_field.bit_length);
884 acpi_ex_out_integer ("fld_bit_offset", obj_desc->common_field.start_field_bit_offset);
885 acpi_ex_out_integer ("base_byte_offset", obj_desc->common_field.base_byte_offset);
886 acpi_ex_out_pointer ("parent_node", obj_desc->common_field.node);
888 switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {
889 case ACPI_TYPE_BUFFER_FIELD:
890 acpi_ex_out_pointer ("buffer_obj", obj_desc->buffer_field.buffer_obj);
893 case ACPI_TYPE_LOCAL_REGION_FIELD:
894 acpi_ex_out_pointer ("region_obj", obj_desc->field.region_obj);
897 case ACPI_TYPE_LOCAL_BANK_FIELD:
898 acpi_ex_out_integer ("Value", obj_desc->bank_field.value);
899 acpi_ex_out_pointer ("region_obj", obj_desc->bank_field.region_obj);
900 acpi_ex_out_pointer ("bank_obj", obj_desc->bank_field.bank_obj);
903 case ACPI_TYPE_LOCAL_INDEX_FIELD:
904 acpi_ex_out_integer ("Value", obj_desc->index_field.value);
905 acpi_ex_out_pointer ("Index", obj_desc->index_field.index_obj);
906 acpi_ex_out_pointer ("Data", obj_desc->index_field.data_obj);
910 /* All object types covered above */
916 case ACPI_TYPE_LOCAL_REFERENCE:
918 acpi_ex_out_integer ("target_type", obj_desc->reference.target_type);
919 acpi_ex_out_string ("Opcode", (acpi_ps_get_opcode_info (
920 obj_desc->reference.opcode))->name);
921 acpi_ex_out_integer ("Offset", obj_desc->reference.offset);
922 acpi_ex_out_pointer ("obj_desc", obj_desc->reference.object);
923 acpi_ex_out_pointer ("Node", obj_desc->reference.node);
924 acpi_ex_out_pointer ("Where", obj_desc->reference.where);
926 acpi_ex_dump_reference (obj_desc);
930 case ACPI_TYPE_LOCAL_ADDRESS_HANDLER:
932 acpi_ex_out_integer ("space_id", obj_desc->address_space.space_id);
933 acpi_ex_out_pointer ("Next", obj_desc->address_space.next);
934 acpi_ex_out_pointer ("region_list", obj_desc->address_space.region_list);
935 acpi_ex_out_pointer ("Node", obj_desc->address_space.node);
936 acpi_ex_out_pointer ("Context", obj_desc->address_space.context);
940 case ACPI_TYPE_LOCAL_NOTIFY:
942 acpi_ex_out_pointer ("Node", obj_desc->notify.node);
943 acpi_ex_out_pointer ("Context", obj_desc->notify.context);
947 case ACPI_TYPE_LOCAL_ALIAS:
948 case ACPI_TYPE_LOCAL_METHOD_ALIAS:
949 case ACPI_TYPE_LOCAL_EXTRA:
950 case ACPI_TYPE_LOCAL_DATA:
954 "ex_dump_object_descriptor: Display not implemented for object type %s\n",
955 acpi_ut_get_object_type_name (obj_desc));
962 #endif /* ACPI_FUTURE_USAGE */