blob: 84f35dd270338fc099f98ca9823fe20ec8e3085e [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/******************************************************************************
2 *
3 * Module Name: nsdump - table dumping routines for debug
4 *
5 *****************************************************************************/
6
7/*
Bob Moorec8100dc2016-01-15 08:17:03 +08008 * Copyright (C) 2000 - 2016, Intel Corp.
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
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.
25 *
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.
29 *
30 * NO WARRANTY
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.
42 */
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#include <acpi/acpi.h>
Len Browne2f7a772009-01-09 00:30:03 -050045#include "accommon.h"
46#include "acnamesp.h"
Bob Mooree81a52b2012-12-31 00:06:50 +000047#include <acpi/acoutput.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
Linus Torvalds1da177e2005-04-16 15:20:36 -070049#define _COMPONENT ACPI_NAMESPACE
Len Brown4be44fc2005-08-05 00:44:28 -040050ACPI_MODULE_NAME("nsdump")
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
Robert Moore44f6c012005-04-18 22:49:35 -040052/* Local prototypes */
Robert Moore44f6c012005-04-18 22:49:35 -040053#ifdef ACPI_OBSOLETE_FUNCTIONS
Len Brown4be44fc2005-08-05 00:44:28 -040054void acpi_ns_dump_root_devices(void);
Robert Moore44f6c012005-04-18 22:49:35 -040055
56static acpi_status
Len Brown4be44fc2005-08-05 00:44:28 -040057acpi_ns_dump_one_device(acpi_handle obj_handle,
58 u32 level, void *context, void **return_value);
Robert Moore44f6c012005-04-18 22:49:35 -040059#endif
60
Linus Torvalds1da177e2005-04-16 15:20:36 -070061#if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
Bob Moore424deb32013-09-23 09:52:19 +080062
Bob Moore424deb32013-09-23 09:52:19 +080063static acpi_status
64acpi_ns_dump_one_object_path(acpi_handle obj_handle,
65 u32 level, void *context, void **return_value);
66
67static acpi_status
68acpi_ns_get_max_depth(acpi_handle obj_handle,
69 u32 level, void *context, void **return_value);
Bob Moore424deb32013-09-23 09:52:19 +080070
Linus Torvalds1da177e2005-04-16 15:20:36 -070071/*******************************************************************************
72 *
73 * FUNCTION: acpi_ns_print_pathname
74 *
Robert Moore44f6c012005-04-18 22:49:35 -040075 * PARAMETERS: num_segments - Number of ACPI name segments
Bob Mooreba494be2012-07-12 09:40:10 +080076 * pathname - The compressed (internal) path
Linus Torvalds1da177e2005-04-16 15:20:36 -070077 *
Robert Moore44f6c012005-04-18 22:49:35 -040078 * RETURN: None
79 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070080 * DESCRIPTION: Print an object's full namespace pathname
81 *
82 ******************************************************************************/
83
Bob Moore0dfaaa32016-03-24 09:40:40 +080084void acpi_ns_print_pathname(u32 num_segments, const char *pathname)
Linus Torvalds1da177e2005-04-16 15:20:36 -070085{
Bob Moore67a119f2008-06-10 13:42:13 +080086 u32 i;
Robert Moore0c9938c2005-07-29 15:15:00 -070087
Bob Mooreb229cf92006-04-21 17:15:00 -040088 ACPI_FUNCTION_NAME(ns_print_pathname);
Robert Moore0c9938c2005-07-29 15:15:00 -070089
Bob Moore10e9e752012-12-31 00:06:27 +000090 /* Check if debug output enabled */
91
92 if (!ACPI_IS_DEBUG_ENABLED(ACPI_LV_NAMES, ACPI_NAMESPACE)) {
Linus Torvalds1da177e2005-04-16 15:20:36 -070093 return;
94 }
95
96 /* Print the entire name */
97
Len Brown4be44fc2005-08-05 00:44:28 -040098 ACPI_DEBUG_PRINT((ACPI_DB_NAMES, "["));
Linus Torvalds1da177e2005-04-16 15:20:36 -070099
100 while (num_segments) {
Robert Moore0c9938c2005-07-29 15:15:00 -0700101 for (i = 0; i < 4; i++) {
Bob Moore4fa46162015-07-01 14:45:11 +0800102 isprint((int)pathname[i]) ?
Len Brown4be44fc2005-08-05 00:44:28 -0400103 acpi_os_printf("%c", pathname[i]) :
104 acpi_os_printf("?");
Robert Moore0c9938c2005-07-29 15:15:00 -0700105 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106
Robert Moore0c9938c2005-07-29 15:15:00 -0700107 pathname += ACPI_NAME_SIZE;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108 num_segments--;
109 if (num_segments) {
Len Brown4be44fc2005-08-05 00:44:28 -0400110 acpi_os_printf(".");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111 }
112 }
113
Len Brown4be44fc2005-08-05 00:44:28 -0400114 acpi_os_printf("]\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115}
116
Bob Moore0dfaaa32016-03-24 09:40:40 +0800117#ifdef ACPI_OBSOLETE_FUNCTIONS
118/* Not used at this time, perhaps later */
119
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120/*******************************************************************************
121 *
122 * FUNCTION: acpi_ns_dump_pathname
123 *
Bob Mooreba494be2012-07-12 09:40:10 +0800124 * PARAMETERS: handle - Object
125 * msg - Prefix message
126 * level - Desired debug level
127 * component - Caller's component ID
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 *
Robert Moore44f6c012005-04-18 22:49:35 -0400129 * RETURN: None
130 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 * DESCRIPTION: Print an object's full namespace pathname
132 * Manages allocation/freeing of a pathname buffer
133 *
134 ******************************************************************************/
135
136void
Bob Moore0dfaaa32016-03-24 09:40:40 +0800137acpi_ns_dump_pathname(acpi_handle handle,
138 const char *msg, u32 level, u32 component)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139{
140
Bob Mooreb229cf92006-04-21 17:15:00 -0400141 ACPI_FUNCTION_TRACE(ns_dump_pathname);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142
143 /* Do this only if the requested debug level and component are enabled */
144
Bob Moore10e9e752012-12-31 00:06:27 +0000145 if (!ACPI_IS_DEBUG_ENABLED(level, component)) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146 return_VOID;
147 }
148
149 /* Convert handle to a full pathname and print it (with supplied message) */
150
Len Brown4be44fc2005-08-05 00:44:28 -0400151 acpi_ns_print_node_pathname(handle, msg);
152 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700153 return_VOID;
154}
Bob Moore0dfaaa32016-03-24 09:40:40 +0800155#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157/*******************************************************************************
158 *
159 * FUNCTION: acpi_ns_dump_one_object
160 *
Robert Moore44f6c012005-04-18 22:49:35 -0400161 * PARAMETERS: obj_handle - Node to be dumped
Bob Mooreba494be2012-07-12 09:40:10 +0800162 * level - Nesting level of the handle
163 * context - Passed into walk_namespace
Robert Moore44f6c012005-04-18 22:49:35 -0400164 * return_value - Not used
165 *
166 * RETURN: Status
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167 *
168 * DESCRIPTION: Dump a single Node
169 * This procedure is a user_function called by acpi_ns_walk_namespace.
170 *
171 ******************************************************************************/
172
173acpi_status
Len Brown4be44fc2005-08-05 00:44:28 -0400174acpi_ns_dump_one_object(acpi_handle obj_handle,
175 u32 level, void *context, void **return_value)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700176{
Len Brown4be44fc2005-08-05 00:44:28 -0400177 struct acpi_walk_info *info = (struct acpi_walk_info *)context;
178 struct acpi_namespace_node *this_node;
179 union acpi_operand_object *obj_desc = NULL;
180 acpi_object_type obj_type;
181 acpi_object_type type;
182 u32 bytes_to_dump;
183 u32 dbg_level;
184 u32 i;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185
Bob Mooreb229cf92006-04-21 17:15:00 -0400186 ACPI_FUNCTION_NAME(ns_dump_one_object);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700187
188 /* Is output enabled? */
189
190 if (!(acpi_dbg_level & info->debug_level)) {
191 return (AE_OK);
192 }
193
194 if (!obj_handle) {
Len Brown4be44fc2005-08-05 00:44:28 -0400195 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Null object handle\n"));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196 return (AE_OK);
197 }
198
Bob Mooref24b6642009-12-11 14:57:00 +0800199 this_node = acpi_ns_validate_handle(obj_handle);
Bob Moore4bbfb852009-02-03 14:17:29 +0800200 if (!this_node) {
201 ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Invalid object handle %p\n",
202 obj_handle));
203 return (AE_OK);
204 }
205
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206 type = this_node->type;
207
208 /* Check if the owner matches */
209
Robert Mooref9f46012005-07-08 00:00:00 -0400210 if ((info->owner_id != ACPI_OWNER_ID_MAX) &&
Len Brown4be44fc2005-08-05 00:44:28 -0400211 (info->owner_id != this_node->owner_id)) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700212 return (AE_OK);
213 }
214
Robert Moore73459f72005-06-24 00:00:00 -0400215 if (!(info->display_type & ACPI_DISPLAY_SHORT)) {
Bob Moore52fc0b02006-10-02 00:00:00 -0400216
Robert Moore73459f72005-06-24 00:00:00 -0400217 /* Indent the object according to the level */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700218
Len Brown4be44fc2005-08-05 00:44:28 -0400219 acpi_os_printf("%2d%*s", (u32) level - 1, (int)level * 2, " ");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220
Robert Moore73459f72005-06-24 00:00:00 -0400221 /* Check the node type and name */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700222
Robert Moore73459f72005-06-24 00:00:00 -0400223 if (type > ACPI_TYPE_LOCAL_MAX) {
Bob Mooref6a22b02010-03-05 17:56:40 +0800224 ACPI_WARNING((AE_INFO,
225 "Invalid ACPI Object Type 0x%08X", type));
Robert Moore73459f72005-06-24 00:00:00 -0400226 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227
Len Brown4be44fc2005-08-05 00:44:28 -0400228 acpi_os_printf("%4.4s", acpi_ut_get_node_name(this_node));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700229 }
230
Bob Moored4913dc2009-03-06 10:05:18 +0800231 /* Now we can print out the pertinent information */
232
Bob Moore28f55eb2005-12-02 18:27:00 -0500233 acpi_os_printf(" %-12s %p %2.2X ",
234 acpi_ut_get_type_name(type), this_node,
235 this_node->owner_id);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700236
237 dbg_level = acpi_dbg_level;
238 acpi_dbg_level = 0;
Len Brown4be44fc2005-08-05 00:44:28 -0400239 obj_desc = acpi_ns_get_attached_object(this_node);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240 acpi_dbg_level = dbg_level;
241
Bob Moored1fdda832007-02-02 19:48:21 +0300242 /* Temp nodes are those nodes created by a control method */
243
244 if (this_node->flags & ANOBJ_TEMPORARY) {
245 acpi_os_printf("(T) ");
246 }
247
Robert Moore73459f72005-06-24 00:00:00 -0400248 switch (info->display_type & ACPI_DISPLAY_MASK) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249 case ACPI_DISPLAY_SUMMARY:
250
251 if (!obj_desc) {
Bob Moore52fc0b02006-10-02 00:00:00 -0400252
Bob Moore4acb6882012-03-21 09:46:47 +0800253 /* No attached object. Some types should always have an object */
254
255 switch (type) {
256 case ACPI_TYPE_INTEGER:
257 case ACPI_TYPE_PACKAGE:
258 case ACPI_TYPE_BUFFER:
259 case ACPI_TYPE_STRING:
260 case ACPI_TYPE_METHOD:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000261
Bob Moore4acb6882012-03-21 09:46:47 +0800262 acpi_os_printf("<No attached object>");
263 break;
264
265 default:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000266
Bob Moore4acb6882012-03-21 09:46:47 +0800267 break;
268 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269
Len Brown4be44fc2005-08-05 00:44:28 -0400270 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700271 return (AE_OK);
272 }
273
274 switch (type) {
275 case ACPI_TYPE_PROCESSOR:
276
Lv Zhengcc2080b2015-04-13 11:48:46 +0800277 acpi_os_printf("ID %02X Len %02X Addr %8.8X%8.8X\n",
Len Brown4be44fc2005-08-05 00:44:28 -0400278 obj_desc->processor.proc_id,
279 obj_desc->processor.length,
Lv Zhengcc2080b2015-04-13 11:48:46 +0800280 ACPI_FORMAT_UINT64(obj_desc->processor.
281 address));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282 break;
283
Linus Torvalds1da177e2005-04-16 15:20:36 -0700284 case ACPI_TYPE_DEVICE:
285
Len Brown4be44fc2005-08-05 00:44:28 -0400286 acpi_os_printf("Notify Object: %p\n", obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287 break;
288
Linus Torvalds1da177e2005-04-16 15:20:36 -0700289 case ACPI_TYPE_METHOD:
290
Len Brown4be44fc2005-08-05 00:44:28 -0400291 acpi_os_printf("Args %X Len %.4X Aml %p\n",
292 (u32) obj_desc->method.param_count,
293 obj_desc->method.aml_length,
294 obj_desc->method.aml_start);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700295 break;
296
Linus Torvalds1da177e2005-04-16 15:20:36 -0700297 case ACPI_TYPE_INTEGER:
298
Len Brown4be44fc2005-08-05 00:44:28 -0400299 acpi_os_printf("= %8.8X%8.8X\n",
300 ACPI_FORMAT_UINT64(obj_desc->integer.
301 value));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700302 break;
303
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304 case ACPI_TYPE_PACKAGE:
305
306 if (obj_desc->common.flags & AOPOBJ_DATA_VALID) {
Len Brown4be44fc2005-08-05 00:44:28 -0400307 acpi_os_printf("Elements %.2X\n",
308 obj_desc->package.count);
309 } else {
310 acpi_os_printf("[Length not yet evaluated]\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311 }
312 break;
313
Linus Torvalds1da177e2005-04-16 15:20:36 -0700314 case ACPI_TYPE_BUFFER:
315
316 if (obj_desc->common.flags & AOPOBJ_DATA_VALID) {
Len Brown4be44fc2005-08-05 00:44:28 -0400317 acpi_os_printf("Len %.2X",
318 obj_desc->buffer.length);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319
320 /* Dump some of the buffer */
321
322 if (obj_desc->buffer.length > 0) {
Len Brown4be44fc2005-08-05 00:44:28 -0400323 acpi_os_printf(" =");
324 for (i = 0;
325 (i < obj_desc->buffer.length
326 && i < 12); i++) {
327 acpi_os_printf(" %.2hX",
328 obj_desc->buffer.
329 pointer[i]);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330 }
331 }
Len Brown4be44fc2005-08-05 00:44:28 -0400332 acpi_os_printf("\n");
333 } else {
334 acpi_os_printf("[Length not yet evaluated]\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700335 }
336 break;
337
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338 case ACPI_TYPE_STRING:
339
Len Brown4be44fc2005-08-05 00:44:28 -0400340 acpi_os_printf("Len %.2X ", obj_desc->string.length);
Bob Moore60d836f2016-08-04 16:42:55 +0800341 acpi_ut_print_string(obj_desc->string.pointer, 80);
Len Brown4be44fc2005-08-05 00:44:28 -0400342 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700343 break;
344
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345 case ACPI_TYPE_REGION:
346
Len Brown4be44fc2005-08-05 00:44:28 -0400347 acpi_os_printf("[%s]",
348 acpi_ut_get_region_name(obj_desc->region.
349 space_id));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700350 if (obj_desc->region.flags & AOPOBJ_DATA_VALID) {
Len Brown4be44fc2005-08-05 00:44:28 -0400351 acpi_os_printf(" Addr %8.8X%8.8X Len %.4X\n",
Lv Zheng1d0a0b22015-04-13 11:48:52 +0800352 ACPI_FORMAT_UINT64(obj_desc->
353 region.
354 address),
Len Brown4be44fc2005-08-05 00:44:28 -0400355 obj_desc->region.length);
356 } else {
357 acpi_os_printf
358 (" [Address/Length not yet evaluated]\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700359 }
360 break;
361
Linus Torvalds1da177e2005-04-16 15:20:36 -0700362 case ACPI_TYPE_LOCAL_REFERENCE:
363
Len Brown4be44fc2005-08-05 00:44:28 -0400364 acpi_os_printf("[%s]\n",
Bob Moore1044f1f2008-09-27 11:08:41 +0800365 acpi_ut_get_reference_name(obj_desc));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700366 break;
367
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368 case ACPI_TYPE_BUFFER_FIELD:
369
370 if (obj_desc->buffer_field.buffer_obj &&
Len Brown4be44fc2005-08-05 00:44:28 -0400371 obj_desc->buffer_field.buffer_obj->buffer.node) {
372 acpi_os_printf("Buf [%4.4s]",
373 acpi_ut_get_node_name(obj_desc->
374 buffer_field.
375 buffer_obj->
376 buffer.
377 node));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700378 }
379 break;
380
Linus Torvalds1da177e2005-04-16 15:20:36 -0700381 case ACPI_TYPE_LOCAL_REGION_FIELD:
382
Len Brown4be44fc2005-08-05 00:44:28 -0400383 acpi_os_printf("Rgn [%4.4s]",
384 acpi_ut_get_node_name(obj_desc->
385 common_field.
386 region_obj->region.
387 node));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700388 break;
389
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390 case ACPI_TYPE_LOCAL_BANK_FIELD:
391
Len Brown4be44fc2005-08-05 00:44:28 -0400392 acpi_os_printf("Rgn [%4.4s] Bnk [%4.4s]",
393 acpi_ut_get_node_name(obj_desc->
394 common_field.
395 region_obj->region.
396 node),
397 acpi_ut_get_node_name(obj_desc->
398 bank_field.
399 bank_obj->
400 common_field.
401 node));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700402 break;
403
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404 case ACPI_TYPE_LOCAL_INDEX_FIELD:
405
Len Brown4be44fc2005-08-05 00:44:28 -0400406 acpi_os_printf("Idx [%4.4s] Dat [%4.4s]",
407 acpi_ut_get_node_name(obj_desc->
408 index_field.
409 index_obj->
410 common_field.node),
411 acpi_ut_get_node_name(obj_desc->
412 index_field.
413 data_obj->
414 common_field.
415 node));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416 break;
417
Linus Torvalds1da177e2005-04-16 15:20:36 -0700418 case ACPI_TYPE_LOCAL_ALIAS:
419 case ACPI_TYPE_LOCAL_METHOD_ALIAS:
420
Len Brown4be44fc2005-08-05 00:44:28 -0400421 acpi_os_printf("Target %4.4s (%p)\n",
422 acpi_ut_get_node_name(obj_desc),
423 obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700424 break;
425
426 default:
427
Len Brown4be44fc2005-08-05 00:44:28 -0400428 acpi_os_printf("Object %p\n", obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700429 break;
430 }
431
432 /* Common field handling */
433
434 switch (type) {
435 case ACPI_TYPE_BUFFER_FIELD:
436 case ACPI_TYPE_LOCAL_REGION_FIELD:
437 case ACPI_TYPE_LOCAL_BANK_FIELD:
438 case ACPI_TYPE_LOCAL_INDEX_FIELD:
439
Len Brown4be44fc2005-08-05 00:44:28 -0400440 acpi_os_printf(" Off %.3X Len %.2X Acc %.2hd\n",
441 (obj_desc->common_field.
442 base_byte_offset * 8)
443 +
444 obj_desc->common_field.
445 start_field_bit_offset,
446 obj_desc->common_field.bit_length,
447 obj_desc->common_field.
448 access_byte_width);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700449 break;
450
451 default:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000452
Linus Torvalds1da177e2005-04-16 15:20:36 -0700453 break;
454 }
455 break;
456
Linus Torvalds1da177e2005-04-16 15:20:36 -0700457 case ACPI_DISPLAY_OBJECTS:
458
Len Brown4be44fc2005-08-05 00:44:28 -0400459 acpi_os_printf("O:%p", obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700460 if (!obj_desc) {
Bob Moore52fc0b02006-10-02 00:00:00 -0400461
Linus Torvalds1da177e2005-04-16 15:20:36 -0700462 /* No attached object, we are done */
463
Len Brown4be44fc2005-08-05 00:44:28 -0400464 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700465 return (AE_OK);
466 }
467
Bob Mooreb27d6592010-05-26 11:47:13 +0800468 acpi_os_printf("(R%u)", obj_desc->common.reference_count);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700469
470 switch (type) {
471 case ACPI_TYPE_METHOD:
472
473 /* Name is a Method and its AML offset/length are set */
474
Len Brown4be44fc2005-08-05 00:44:28 -0400475 acpi_os_printf(" M:%p-%X\n", obj_desc->method.aml_start,
476 obj_desc->method.aml_length);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700477 break;
478
479 case ACPI_TYPE_INTEGER:
480
Len Brown4be44fc2005-08-05 00:44:28 -0400481 acpi_os_printf(" I:%8.8X8.8%X\n",
482 ACPI_FORMAT_UINT64(obj_desc->integer.
483 value));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484 break;
485
486 case ACPI_TYPE_STRING:
487
Len Brown4be44fc2005-08-05 00:44:28 -0400488 acpi_os_printf(" S:%p-%X\n", obj_desc->string.pointer,
489 obj_desc->string.length);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700490 break;
491
492 case ACPI_TYPE_BUFFER:
493
Len Brown4be44fc2005-08-05 00:44:28 -0400494 acpi_os_printf(" B:%p-%X\n", obj_desc->buffer.pointer,
495 obj_desc->buffer.length);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700496 break;
497
498 default:
499
Len Brown4be44fc2005-08-05 00:44:28 -0400500 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700501 break;
502 }
503 break;
504
Linus Torvalds1da177e2005-04-16 15:20:36 -0700505 default:
Len Brown4be44fc2005-08-05 00:44:28 -0400506 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700507 break;
508 }
509
510 /* If debug turned off, done */
511
512 if (!(acpi_dbg_level & ACPI_LV_VALUES)) {
513 return (AE_OK);
514 }
515
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516 /* If there is an attached object, display it */
517
Len Brown4be44fc2005-08-05 00:44:28 -0400518 dbg_level = acpi_dbg_level;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700519 acpi_dbg_level = 0;
Len Brown4be44fc2005-08-05 00:44:28 -0400520 obj_desc = acpi_ns_get_attached_object(this_node);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700521 acpi_dbg_level = dbg_level;
522
523 /* Dump attached objects */
524
525 while (obj_desc) {
526 obj_type = ACPI_TYPE_INVALID;
Len Brown4be44fc2005-08-05 00:44:28 -0400527 acpi_os_printf("Attached Object %p: ", obj_desc);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528
529 /* Decode the type of attached object and dump the contents */
530
Len Brown4be44fc2005-08-05 00:44:28 -0400531 switch (ACPI_GET_DESCRIPTOR_TYPE(obj_desc)) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700532 case ACPI_DESC_TYPE_NAMED:
533
Len Brown4be44fc2005-08-05 00:44:28 -0400534 acpi_os_printf("(Ptr to Node)\n");
535 bytes_to_dump = sizeof(struct acpi_namespace_node);
536 ACPI_DUMP_BUFFER(obj_desc, bytes_to_dump);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700537 break;
538
Linus Torvalds1da177e2005-04-16 15:20:36 -0700539 case ACPI_DESC_TYPE_OPERAND:
540
Bob Moore3371c192009-02-18 14:44:03 +0800541 obj_type = obj_desc->common.type;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700542
543 if (obj_type > ACPI_TYPE_LOCAL_MAX) {
Len Brown4be44fc2005-08-05 00:44:28 -0400544 acpi_os_printf
Bob Moore71d993e2008-06-10 14:25:05 +0800545 ("(Pointer to ACPI Object type %.2X [UNKNOWN])\n",
Len Brown4be44fc2005-08-05 00:44:28 -0400546 obj_type);
Bob Moore1fad8732015-12-29 13:54:36 +0800547
Linus Torvalds1da177e2005-04-16 15:20:36 -0700548 bytes_to_dump = 32;
Len Brown4be44fc2005-08-05 00:44:28 -0400549 } else {
550 acpi_os_printf
Bob Moore71d993e2008-06-10 14:25:05 +0800551 ("(Pointer to ACPI Object type %.2X [%s])\n",
Len Brown4be44fc2005-08-05 00:44:28 -0400552 obj_type, acpi_ut_get_type_name(obj_type));
Bob Moore1fad8732015-12-29 13:54:36 +0800553
Len Brown4be44fc2005-08-05 00:44:28 -0400554 bytes_to_dump =
555 sizeof(union acpi_operand_object);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700556 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557
Len Brown4be44fc2005-08-05 00:44:28 -0400558 ACPI_DUMP_BUFFER(obj_desc, bytes_to_dump);
Robert Moore6f42ccf2005-05-13 00:00:00 -0400559 break;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560
561 default:
562
Linus Torvalds1da177e2005-04-16 15:20:36 -0700563 break;
564 }
565
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566 /* If value is NOT an internal object, we are done */
567
Len Brown4be44fc2005-08-05 00:44:28 -0400568 if (ACPI_GET_DESCRIPTOR_TYPE(obj_desc) !=
569 ACPI_DESC_TYPE_OPERAND) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700570 goto cleanup;
571 }
572
Bob Moored4913dc2009-03-06 10:05:18 +0800573 /* Valid object, get the pointer to next level, if any */
574
Linus Torvalds1da177e2005-04-16 15:20:36 -0700575 switch (obj_type) {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700576 case ACPI_TYPE_BUFFER:
Robert Moore6f42ccf2005-05-13 00:00:00 -0400577 case ACPI_TYPE_STRING:
578 /*
579 * NOTE: takes advantage of common fields between string/buffer
580 */
581 bytes_to_dump = obj_desc->string.length;
Len Brown4be44fc2005-08-05 00:44:28 -0400582 obj_desc = (void *)obj_desc->string.pointer;
Bob Moore1fad8732015-12-29 13:54:36 +0800583
Len Brown4be44fc2005-08-05 00:44:28 -0400584 acpi_os_printf("(Buffer/String pointer %p length %X)\n",
585 obj_desc, bytes_to_dump);
586 ACPI_DUMP_BUFFER(obj_desc, bytes_to_dump);
Robert Moore6f42ccf2005-05-13 00:00:00 -0400587 goto cleanup;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700588
589 case ACPI_TYPE_BUFFER_FIELD:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000590
Len Brown4be44fc2005-08-05 00:44:28 -0400591 obj_desc =
592 (union acpi_operand_object *)obj_desc->buffer_field.
593 buffer_obj;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700594 break;
595
596 case ACPI_TYPE_PACKAGE:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000597
Len Brown4be44fc2005-08-05 00:44:28 -0400598 obj_desc = (void *)obj_desc->package.elements;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700599 break;
600
601 case ACPI_TYPE_METHOD:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000602
Len Brown4be44fc2005-08-05 00:44:28 -0400603 obj_desc = (void *)obj_desc->method.aml_start;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604 break;
605
606 case ACPI_TYPE_LOCAL_REGION_FIELD:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000607
Len Brown4be44fc2005-08-05 00:44:28 -0400608 obj_desc = (void *)obj_desc->field.region_obj;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700609 break;
610
611 case ACPI_TYPE_LOCAL_BANK_FIELD:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000612
Len Brown4be44fc2005-08-05 00:44:28 -0400613 obj_desc = (void *)obj_desc->bank_field.region_obj;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700614 break;
615
616 case ACPI_TYPE_LOCAL_INDEX_FIELD:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000617
Len Brown4be44fc2005-08-05 00:44:28 -0400618 obj_desc = (void *)obj_desc->index_field.index_obj;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700619 break;
620
621 default:
Chao Guan1d1ea1b2013-06-08 00:58:14 +0000622
Linus Torvalds1da177e2005-04-16 15:20:36 -0700623 goto cleanup;
624 }
625
Len Brown4be44fc2005-08-05 00:44:28 -0400626 obj_type = ACPI_TYPE_INVALID; /* Terminate loop after next pass */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700627 }
628
Lv Zheng10622bf2013-10-29 09:30:02 +0800629cleanup:
Len Brown4be44fc2005-08-05 00:44:28 -0400630 acpi_os_printf("\n");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700631 return (AE_OK);
632}
633
Linus Torvalds1da177e2005-04-16 15:20:36 -0700634/*******************************************************************************
635 *
636 * FUNCTION: acpi_ns_dump_objects
637 *
Bob Mooreba494be2012-07-12 09:40:10 +0800638 * PARAMETERS: type - Object type to be dumped
Robert Moore44f6c012005-04-18 22:49:35 -0400639 * display_type - 0 or ACPI_DISPLAY_SUMMARY
Linus Torvalds1da177e2005-04-16 15:20:36 -0700640 * max_depth - Maximum depth of dump. Use ACPI_UINT32_MAX
641 * for an effectively unlimited depth.
Bob Moored4913dc2009-03-06 10:05:18 +0800642 * owner_id - Dump only objects owned by this ID. Use
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643 * ACPI_UINT32_MAX to match all owners.
644 * start_handle - Where in namespace to start/end search
645 *
Robert Moore44f6c012005-04-18 22:49:35 -0400646 * RETURN: None
647 *
Bob Moored4913dc2009-03-06 10:05:18 +0800648 * DESCRIPTION: Dump typed objects within the loaded namespace. Uses
649 * acpi_ns_walk_namespace in conjunction with acpi_ns_dump_one_object.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700650 *
651 ******************************************************************************/
652
653void
Len Brown4be44fc2005-08-05 00:44:28 -0400654acpi_ns_dump_objects(acpi_object_type type,
655 u8 display_type,
656 u32 max_depth,
657 acpi_owner_id owner_id, acpi_handle start_handle)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700658{
Len Brown4be44fc2005-08-05 00:44:28 -0400659 struct acpi_walk_info info;
Bob Moore672af842011-01-12 09:13:31 +0800660 acpi_status status;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700661
Len Brown4be44fc2005-08-05 00:44:28 -0400662 ACPI_FUNCTION_ENTRY();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700663
Bob Moore672af842011-01-12 09:13:31 +0800664 /*
665 * Just lock the entire namespace for the duration of the dump.
666 * We don't want any changes to the namespace during this time,
667 * especially the temporary nodes since we are going to display
668 * them also.
669 */
670 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
671 if (ACPI_FAILURE(status)) {
672 acpi_os_printf("Could not acquire namespace mutex\n");
673 return;
674 }
675
Linus Torvalds1da177e2005-04-16 15:20:36 -0700676 info.debug_level = ACPI_LV_TABLES;
677 info.owner_id = owner_id;
678 info.display_type = display_type;
679
Len Brown4be44fc2005-08-05 00:44:28 -0400680 (void)acpi_ns_walk_namespace(type, start_handle, max_depth,
Bob Moored1fdda832007-02-02 19:48:21 +0300681 ACPI_NS_WALK_NO_UNLOCK |
682 ACPI_NS_WALK_TEMP_NODES,
Lin Ming22635762009-11-13 10:06:08 +0800683 acpi_ns_dump_one_object, NULL,
684 (void *)&info, NULL);
Bob Moore672af842011-01-12 09:13:31 +0800685
686 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700687}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700688
Bob Moore424deb32013-09-23 09:52:19 +0800689/*******************************************************************************
690 *
691 * FUNCTION: acpi_ns_dump_one_object_path, acpi_ns_get_max_depth
692 *
693 * PARAMETERS: obj_handle - Node to be dumped
694 * level - Nesting level of the handle
695 * context - Passed into walk_namespace
696 * return_value - Not used
697 *
698 * RETURN: Status
699 *
700 * DESCRIPTION: Dump the full pathname to a namespace object. acp_ns_get_max_depth
701 * computes the maximum nesting depth in the namespace tree, in
702 * order to simplify formatting in acpi_ns_dump_one_object_path.
703 * These procedures are user_functions called by acpi_ns_walk_namespace.
704 *
705 ******************************************************************************/
706
707static acpi_status
708acpi_ns_dump_one_object_path(acpi_handle obj_handle,
709 u32 level, void *context, void **return_value)
710{
711 u32 max_level = *((u32 *)context);
712 char *pathname;
713 struct acpi_namespace_node *node;
714 int path_indent;
715
716 if (!obj_handle) {
717 return (AE_OK);
718 }
719
720 node = acpi_ns_validate_handle(obj_handle);
Bob Moore48961ce2013-10-29 09:29:04 +0800721 if (!node) {
722
723 /* Ignore bad node during namespace walk */
724
725 return (AE_OK);
726 }
727
Lv Zheng0e166e42015-12-29 13:53:50 +0800728 pathname = acpi_ns_get_normalized_pathname(node, TRUE);
Bob Moore424deb32013-09-23 09:52:19 +0800729
730 path_indent = 1;
731 if (level <= max_level) {
732 path_indent = max_level - level + 1;
733 }
734
735 acpi_os_printf("%2d%*s%-12s%*s",
736 level, level, " ", acpi_ut_get_type_name(node->type),
737 path_indent, " ");
738
739 acpi_os_printf("%s\n", &pathname[1]);
740 ACPI_FREE(pathname);
741 return (AE_OK);
742}
743
744static acpi_status
745acpi_ns_get_max_depth(acpi_handle obj_handle,
746 u32 level, void *context, void **return_value)
747{
748 u32 *max_level = (u32 *)context;
749
750 if (level > *max_level) {
751 *max_level = level;
752 }
753 return (AE_OK);
754}
755
756/*******************************************************************************
757 *
758 * FUNCTION: acpi_ns_dump_object_paths
759 *
760 * PARAMETERS: type - Object type to be dumped
761 * display_type - 0 or ACPI_DISPLAY_SUMMARY
762 * max_depth - Maximum depth of dump. Use ACPI_UINT32_MAX
763 * for an effectively unlimited depth.
764 * owner_id - Dump only objects owned by this ID. Use
765 * ACPI_UINT32_MAX to match all owners.
766 * start_handle - Where in namespace to start/end search
767 *
768 * RETURN: None
769 *
770 * DESCRIPTION: Dump full object pathnames within the loaded namespace. Uses
771 * acpi_ns_walk_namespace in conjunction with acpi_ns_dump_one_object_path.
772 *
773 ******************************************************************************/
774
775void
776acpi_ns_dump_object_paths(acpi_object_type type,
777 u8 display_type,
778 u32 max_depth,
779 acpi_owner_id owner_id, acpi_handle start_handle)
780{
781 acpi_status status;
782 u32 max_level = 0;
783
784 ACPI_FUNCTION_ENTRY();
785
786 /*
787 * Just lock the entire namespace for the duration of the dump.
788 * We don't want any changes to the namespace during this time,
789 * especially the temporary nodes since we are going to display
790 * them also.
791 */
792 status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE);
793 if (ACPI_FAILURE(status)) {
794 acpi_os_printf("Could not acquire namespace mutex\n");
795 return;
796 }
797
798 /* Get the max depth of the namespace tree, for formatting later */
799
800 (void)acpi_ns_walk_namespace(type, start_handle, max_depth,
801 ACPI_NS_WALK_NO_UNLOCK |
802 ACPI_NS_WALK_TEMP_NODES,
803 acpi_ns_get_max_depth, NULL,
804 (void *)&max_level, NULL);
805
806 /* Now dump the entire namespace */
807
808 (void)acpi_ns_walk_namespace(type, start_handle, max_depth,
809 ACPI_NS_WALK_NO_UNLOCK |
810 ACPI_NS_WALK_TEMP_NODES,
811 acpi_ns_dump_one_object_path, NULL,
812 (void *)&max_level, NULL);
813
814 (void)acpi_ut_release_mutex(ACPI_MTX_NAMESPACE);
815}
Bob Moore424deb32013-09-23 09:52:19 +0800816
Linus Torvalds1da177e2005-04-16 15:20:36 -0700817/*******************************************************************************
818 *
Robert Moore44f6c012005-04-18 22:49:35 -0400819 * FUNCTION: acpi_ns_dump_entry
820 *
Bob Mooreba494be2012-07-12 09:40:10 +0800821 * PARAMETERS: handle - Node to be dumped
Robert Moore44f6c012005-04-18 22:49:35 -0400822 * debug_level - Output level
823 *
824 * RETURN: None
825 *
826 * DESCRIPTION: Dump a single Node
827 *
828 ******************************************************************************/
829
Len Brown4be44fc2005-08-05 00:44:28 -0400830void acpi_ns_dump_entry(acpi_handle handle, u32 debug_level)
Robert Moore44f6c012005-04-18 22:49:35 -0400831{
Len Brown4be44fc2005-08-05 00:44:28 -0400832 struct acpi_walk_info info;
Robert Moore44f6c012005-04-18 22:49:35 -0400833
Len Brown4be44fc2005-08-05 00:44:28 -0400834 ACPI_FUNCTION_ENTRY();
Robert Moore44f6c012005-04-18 22:49:35 -0400835
836 info.debug_level = debug_level;
Robert Mooref9f46012005-07-08 00:00:00 -0400837 info.owner_id = ACPI_OWNER_ID_MAX;
Robert Moore44f6c012005-04-18 22:49:35 -0400838 info.display_type = ACPI_DISPLAY_SUMMARY;
839
Len Brown4be44fc2005-08-05 00:44:28 -0400840 (void)acpi_ns_dump_one_object(handle, 1, &info, NULL);
Robert Moore44f6c012005-04-18 22:49:35 -0400841}
842
Robert Moore73459f72005-06-24 00:00:00 -0400843#ifdef ACPI_ASL_COMPILER
Robert Moore44f6c012005-04-18 22:49:35 -0400844/*******************************************************************************
845 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700846 * FUNCTION: acpi_ns_dump_tables
847 *
848 * PARAMETERS: search_base - Root of subtree to be dumped, or
849 * NS_ALL to dump the entire namespace
Bob Moore73a30902012-10-31 02:26:55 +0000850 * max_depth - Maximum depth of dump. Use INT_MAX
Linus Torvalds1da177e2005-04-16 15:20:36 -0700851 * for an effectively unlimited depth.
852 *
Robert Moore44f6c012005-04-18 22:49:35 -0400853 * RETURN: None
854 *
Linus Torvalds1da177e2005-04-16 15:20:36 -0700855 * DESCRIPTION: Dump the name space, or a portion of it.
856 *
857 ******************************************************************************/
858
Len Brown4be44fc2005-08-05 00:44:28 -0400859void acpi_ns_dump_tables(acpi_handle search_base, u32 max_depth)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700860{
Len Brown4be44fc2005-08-05 00:44:28 -0400861 acpi_handle search_handle = search_base;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700862
Bob Mooreb229cf92006-04-21 17:15:00 -0400863 ACPI_FUNCTION_TRACE(ns_dump_tables);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700864
865 if (!acpi_gbl_root_node) {
866 /*
867 * If the name space has not been initialized,
868 * there is nothing to dump.
869 */
Len Brown4be44fc2005-08-05 00:44:28 -0400870 ACPI_DEBUG_PRINT((ACPI_DB_TABLES,
871 "namespace not initialized!\n"));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700872 return_VOID;
873 }
874
875 if (ACPI_NS_ALL == search_base) {
Bob Moore52fc0b02006-10-02 00:00:00 -0400876
Robert Moore44f6c012005-04-18 22:49:35 -0400877 /* Entire namespace */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700878
879 search_handle = acpi_gbl_root_node;
Len Brown4be44fc2005-08-05 00:44:28 -0400880 ACPI_DEBUG_PRINT((ACPI_DB_TABLES, "\\\n"));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700881 }
882
Len Brown4be44fc2005-08-05 00:44:28 -0400883 acpi_ns_dump_objects(ACPI_TYPE_ANY, ACPI_DISPLAY_OBJECTS, max_depth,
884 ACPI_OWNER_ID_MAX, search_handle);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700885 return_VOID;
886}
Lv Zheng75c80442012-12-19 05:36:49 +0000887#endif
888#endif