1 /*******************************************************************************
3 * Module Name: dbnames - Debugger commands for the acpi namespace
5 ******************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
118 #include "accommon.h"
119 #include "acnamesp.h"
125 #define _COMPONENT ACPI_CA_DEBUGGER
126 ACPI_MODULE_NAME ("dbnames")
129 /* Local prototypes */
132 AcpiDbWalkAndMatchName (
133 ACPI_HANDLE ObjHandle,
139 AcpiDbWalkForPredefinedNames (
140 ACPI_HANDLE ObjHandle,
146 AcpiDbWalkForSpecificObjects (
147 ACPI_HANDLE ObjHandle,
153 AcpiDbIntegrityWalk (
154 ACPI_HANDLE ObjHandle,
160 AcpiDbWalkForReferences (
161 ACPI_HANDLE ObjHandle,
168 ACPI_HANDLE ObjHandle,
174 * Arguments for the Objects command
175 * These object types map directly to the ACPI_TYPES
177 static ARGUMENT_INFO AcpiDbObjectTypes [] =
201 {NULL} /* Must be null terminated */
205 /*******************************************************************************
207 * FUNCTION: AcpiDbSetScope
209 * PARAMETERS: Name - New scope path
213 * DESCRIPTION: Set the "current scope" as maintained by this utility.
214 * The scope is used as a prefix to ACPI paths.
216 ******************************************************************************/
223 ACPI_NAMESPACE_NODE *Node;
226 if (!Name || Name[0] == 0)
228 AcpiOsPrintf ("Current scope: %s\n", AcpiGbl_DbScopeBuf);
232 AcpiDbPrepNamestring (Name);
236 /* Validate new scope from the root */
238 Status = AcpiNsGetNode (AcpiGbl_RootNode, Name, ACPI_NS_NO_UPSEARCH,
240 if (ACPI_FAILURE (Status))
245 ACPI_STRCPY (AcpiGbl_DbScopeBuf, Name);
246 ACPI_STRCAT (AcpiGbl_DbScopeBuf, "\\");
250 /* Validate new scope relative to old scope */
252 Status = AcpiNsGetNode (AcpiGbl_DbScopeNode, Name, ACPI_NS_NO_UPSEARCH,
254 if (ACPI_FAILURE (Status))
259 ACPI_STRCAT (AcpiGbl_DbScopeBuf, Name);
260 ACPI_STRCAT (AcpiGbl_DbScopeBuf, "\\");
263 AcpiGbl_DbScopeNode = Node;
264 AcpiOsPrintf ("New scope: %s\n", AcpiGbl_DbScopeBuf);
269 AcpiOsPrintf ("Could not attach scope: %s, %s\n",
270 Name, AcpiFormatException (Status));
274 /*******************************************************************************
276 * FUNCTION: AcpiDbDumpNamespace
278 * PARAMETERS: StartArg - Node to begin namespace dump
279 * DepthArg - Maximum tree depth to be dumped
283 * DESCRIPTION: Dump entire namespace or a subtree. Each node is displayed
284 * with type and other information.
286 ******************************************************************************/
289 AcpiDbDumpNamespace (
293 ACPI_HANDLE SubtreeEntry = AcpiGbl_RootNode;
294 UINT32 MaxDepth = ACPI_UINT32_MAX;
297 /* No argument given, just start at the root and dump entire namespace */
301 SubtreeEntry = AcpiDbConvertToNode (StartArg);
307 /* Now we can check for the depth argument */
311 MaxDepth = ACPI_STRTOUL (DepthArg, NULL, 0);
315 AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT);
316 AcpiOsPrintf ("ACPI Namespace (from %4.4s (%p) subtree):\n",
317 ((ACPI_NAMESPACE_NODE *) SubtreeEntry)->Name.Ascii, SubtreeEntry);
319 /* Display the subtree */
321 AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT);
322 AcpiNsDumpObjects (ACPI_TYPE_ANY, ACPI_DISPLAY_SUMMARY, MaxDepth,
323 ACPI_OWNER_ID_MAX, SubtreeEntry);
324 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
328 /*******************************************************************************
330 * FUNCTION: AcpiDbDumpNamespaceByOwner
332 * PARAMETERS: OwnerArg - Owner ID whose nodes will be displayed
333 * DepthArg - Maximum tree depth to be dumped
337 * DESCRIPTION: Dump elements of the namespace that are owned by the OwnerId.
339 ******************************************************************************/
342 AcpiDbDumpNamespaceByOwner (
346 ACPI_HANDLE SubtreeEntry = AcpiGbl_RootNode;
347 UINT32 MaxDepth = ACPI_UINT32_MAX;
348 ACPI_OWNER_ID OwnerId;
351 OwnerId = (ACPI_OWNER_ID) ACPI_STRTOUL (OwnerArg, NULL, 0);
353 /* Now we can check for the depth argument */
357 MaxDepth = ACPI_STRTOUL (DepthArg, NULL, 0);
360 AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT);
361 AcpiOsPrintf ("ACPI Namespace by owner %X:\n", OwnerId);
363 /* Display the subtree */
365 AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT);
366 AcpiNsDumpObjects (ACPI_TYPE_ANY, ACPI_DISPLAY_SUMMARY, MaxDepth, OwnerId,
368 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
372 /*******************************************************************************
374 * FUNCTION: AcpiDbWalkAndMatchName
376 * PARAMETERS: Callback from WalkNamespace
380 * DESCRIPTION: Find a particular name/names within the namespace. Wildcards
381 * are supported -- '?' matches any character.
383 ******************************************************************************/
386 AcpiDbWalkAndMatchName (
387 ACPI_HANDLE ObjHandle,
393 char *RequestedName = (char *) Context;
399 /* Check for a name match */
401 for (i = 0; i < 4; i++)
403 /* Wildcard support */
405 if ((RequestedName[i] != '?') &&
406 (RequestedName[i] != ((ACPI_NAMESPACE_NODE *) ObjHandle)->Name.Ascii[i]))
408 /* No match, just exit */
414 /* Get the full pathname to this object */
416 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
417 Status = AcpiNsHandleToPathname (ObjHandle, &Buffer);
418 if (ACPI_FAILURE (Status))
420 AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle);
424 Info.OwnerId = ACPI_OWNER_ID_MAX;
425 Info.DebugLevel = ACPI_UINT32_MAX;
426 Info.DisplayType = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT;
428 AcpiOsPrintf ("%32s", (char *) Buffer.Pointer);
429 (void) AcpiNsDumpOneObject (ObjHandle, NestingLevel, &Info, NULL);
430 ACPI_FREE (Buffer.Pointer);
437 /*******************************************************************************
439 * FUNCTION: AcpiDbFindNameInNamespace
441 * PARAMETERS: NameArg - The 4-character ACPI name to find.
442 * wildcards are supported.
446 * DESCRIPTION: Search the namespace for a given name (with wildcards)
448 ******************************************************************************/
451 AcpiDbFindNameInNamespace (
454 char AcpiName[5] = "____";
455 char *AcpiNamePtr = AcpiName;
458 if (ACPI_STRLEN (NameArg) > 4)
460 AcpiOsPrintf ("Name must be no longer than 4 characters\n");
464 /* Pad out name with underscores as necessary to create a 4-char name */
466 AcpiUtStrupr (NameArg);
469 *AcpiNamePtr = *NameArg;
474 /* Walk the namespace from the root */
476 (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
477 AcpiDbWalkAndMatchName, NULL, AcpiName, NULL);
479 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
484 /*******************************************************************************
486 * FUNCTION: AcpiDbWalkForPredefinedNames
488 * PARAMETERS: Callback from WalkNamespace
492 * DESCRIPTION: Detect and display predefined ACPI names (names that start with
495 ******************************************************************************/
498 AcpiDbWalkForPredefinedNames (
499 ACPI_HANDLE ObjHandle,
504 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
505 UINT32 *Count = (UINT32 *) Context;
506 const ACPI_PREDEFINED_INFO *Predefined;
507 const ACPI_PREDEFINED_INFO *Package = NULL;
511 Predefined = AcpiNsCheckForPredefinedName (Node);
517 Pathname = AcpiNsGetExternalPathname (Node);
523 /* If method returns a package, the info is in the next table entry */
525 if (Predefined->Info.ExpectedBtypes & ACPI_BTYPE_PACKAGE)
527 Package = Predefined + 1;
530 AcpiOsPrintf ("%-32s arg %X ret %2.2X", Pathname,
531 Predefined->Info.ParamCount, Predefined->Info.ExpectedBtypes);
535 AcpiOsPrintf (" PkgType %2.2X ObjType %2.2X Count %2.2X",
536 Package->RetInfo.Type, Package->RetInfo.ObjectType1,
537 Package->RetInfo.Count1);
542 AcpiNsCheckParameterCount (Pathname, Node, ACPI_UINT32_MAX, Predefined);
543 ACPI_FREE (Pathname);
550 /*******************************************************************************
552 * FUNCTION: AcpiDbCheckPredefinedNames
558 * DESCRIPTION: Validate all predefined names in the namespace
560 ******************************************************************************/
563 AcpiDbCheckPredefinedNames (
569 /* Search all nodes in namespace */
571 (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
572 AcpiDbWalkForPredefinedNames, NULL, (void *) &Count, NULL);
574 AcpiOsPrintf ("Found %u predefined names in the namespace\n", Count);
578 /*******************************************************************************
580 * FUNCTION: AcpiDbWalkForSpecificObjects
582 * PARAMETERS: Callback from WalkNamespace
586 * DESCRIPTION: Display short info about objects in the namespace
588 ******************************************************************************/
591 AcpiDbWalkForSpecificObjects (
592 ACPI_HANDLE ObjHandle,
597 ACPI_WALK_INFO *Info = (ACPI_WALK_INFO *) Context;
604 /* Get and display the full pathname to this object */
606 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
607 Status = AcpiNsHandleToPathname (ObjHandle, &Buffer);
608 if (ACPI_FAILURE (Status))
610 AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle);
614 AcpiOsPrintf ("%32s", (char *) Buffer.Pointer);
615 ACPI_FREE (Buffer.Pointer);
617 /* Dump short info about the object */
619 (void) AcpiNsDumpOneObject (ObjHandle, NestingLevel, Info, NULL);
624 /*******************************************************************************
626 * FUNCTION: AcpiDbDisplayObjects
628 * PARAMETERS: ObjTypeArg - Type of object to display
629 * DisplayCountArg - Max depth to display
633 * DESCRIPTION: Display objects in the namespace of the requested type
635 ******************************************************************************/
638 AcpiDbDisplayObjects (
640 char *DisplayCountArg)
643 ACPI_OBJECT_TYPE Type;
646 /* Get the object type */
648 Type = AcpiDbMatchArgument (ObjTypeArg, AcpiDbObjectTypes);
649 if (Type == ACPI_TYPE_NOT_FOUND)
651 AcpiOsPrintf ("Invalid or unsupported argument\n");
655 AcpiDbSetOutputDestination (ACPI_DB_DUPLICATE_OUTPUT);
657 "Objects of type [%s] defined in the current ACPI Namespace:\n",
658 AcpiUtGetTypeName (Type));
660 AcpiDbSetOutputDestination (ACPI_DB_REDIRECTABLE_OUTPUT);
663 Info.OwnerId = ACPI_OWNER_ID_MAX;
664 Info.DebugLevel = ACPI_UINT32_MAX;
665 Info.DisplayType = ACPI_DISPLAY_SUMMARY | ACPI_DISPLAY_SHORT;
667 /* Walk the namespace from the root */
669 (void) AcpiWalkNamespace (Type, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
670 AcpiDbWalkForSpecificObjects, NULL, (void *) &Info, NULL);
673 "\nFound %u objects of type [%s] in the current ACPI Namespace\n",
674 Info.Count, AcpiUtGetTypeName (Type));
676 AcpiDbSetOutputDestination (ACPI_DB_CONSOLE_OUTPUT);
681 /*******************************************************************************
683 * FUNCTION: AcpiDbIntegrityWalk
685 * PARAMETERS: Callback from WalkNamespace
689 * DESCRIPTION: Examine one NS node for valid values.
691 ******************************************************************************/
694 AcpiDbIntegrityWalk (
695 ACPI_HANDLE ObjHandle,
700 ACPI_INTEGRITY_INFO *Info = (ACPI_INTEGRITY_INFO *) Context;
701 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
702 ACPI_OPERAND_OBJECT *Object;
703 BOOLEAN Alias = TRUE;
708 /* Verify the NS node, and dereference aliases */
712 if (ACPI_GET_DESCRIPTOR_TYPE (Node) != ACPI_DESC_TYPE_NAMED)
714 AcpiOsPrintf ("Invalid Descriptor Type for Node %p [%s] - is %2.2X should be %2.2X\n",
715 Node, AcpiUtGetDescriptorName (Node), ACPI_GET_DESCRIPTOR_TYPE (Node),
716 ACPI_DESC_TYPE_NAMED);
720 if ((Node->Type == ACPI_TYPE_LOCAL_ALIAS) ||
721 (Node->Type == ACPI_TYPE_LOCAL_METHOD_ALIAS))
723 Node = (ACPI_NAMESPACE_NODE *) Node->Object;
731 if (Node->Type > ACPI_TYPE_LOCAL_MAX)
733 AcpiOsPrintf ("Invalid Object Type for Node %p, Type = %X\n",
738 if (!AcpiUtValidAcpiName (Node->Name.Integer))
740 AcpiOsPrintf ("Invalid AcpiName for Node %p\n", Node);
744 Object = AcpiNsGetAttachedObject (Node);
748 if (ACPI_GET_DESCRIPTOR_TYPE (Object) != ACPI_DESC_TYPE_OPERAND)
750 AcpiOsPrintf ("Invalid Descriptor Type for Object %p [%s]\n",
751 Object, AcpiUtGetDescriptorName (Object));
759 /*******************************************************************************
761 * FUNCTION: AcpiDbCheckIntegrity
767 * DESCRIPTION: Check entire namespace for data structure integrity
769 ******************************************************************************/
772 AcpiDbCheckIntegrity (
775 ACPI_INTEGRITY_INFO Info = {0,0};
777 /* Search all nodes in namespace */
779 (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
780 AcpiDbIntegrityWalk, NULL, (void *) &Info, NULL);
782 AcpiOsPrintf ("Verified %u namespace nodes with %u Objects\n",
783 Info.Nodes, Info.Objects);
787 /*******************************************************************************
789 * FUNCTION: AcpiDbWalkForReferences
791 * PARAMETERS: Callback from WalkNamespace
795 * DESCRIPTION: Check if this namespace object refers to the target object
796 * that is passed in as the context value.
798 * Note: Currently doesn't check subobjects within the Node's object
800 ******************************************************************************/
803 AcpiDbWalkForReferences (
804 ACPI_HANDLE ObjHandle,
809 ACPI_OPERAND_OBJECT *ObjDesc = (ACPI_OPERAND_OBJECT *) Context;
810 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
813 /* Check for match against the namespace node itself */
815 if (Node == (void *) ObjDesc)
817 AcpiOsPrintf ("Object is a Node [%4.4s]\n",
818 AcpiUtGetNodeName (Node));
821 /* Check for match against the object attached to the node */
823 if (AcpiNsGetAttachedObject (Node) == ObjDesc)
825 AcpiOsPrintf ("Reference at Node->Object %p [%4.4s]\n",
826 Node, AcpiUtGetNodeName (Node));
833 /*******************************************************************************
835 * FUNCTION: AcpiDbFindReferences
837 * PARAMETERS: ObjectArg - String with hex value of the object
841 * DESCRIPTION: Search namespace for all references to the input object
843 ******************************************************************************/
846 AcpiDbFindReferences (
849 ACPI_OPERAND_OBJECT *ObjDesc;
852 /* Convert string to object pointer */
854 ObjDesc = ACPI_TO_POINTER (ACPI_STRTOUL (ObjectArg, NULL, 16));
856 /* Search all nodes in namespace */
858 (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
859 AcpiDbWalkForReferences, NULL, (void *) ObjDesc, NULL);
863 /*******************************************************************************
865 * FUNCTION: AcpiDbBusWalk
867 * PARAMETERS: Callback from WalkNamespace
871 * DESCRIPTION: Display info about device objects that have a corresponding
874 ******************************************************************************/
878 ACPI_HANDLE ObjHandle,
883 ACPI_NAMESPACE_NODE *Node = (ACPI_NAMESPACE_NODE *) ObjHandle;
886 ACPI_NAMESPACE_NODE *TempNode;
887 ACPI_DEVICE_INFO *Info;
891 if ((Node->Type != ACPI_TYPE_DEVICE) &&
892 (Node->Type != ACPI_TYPE_PROCESSOR))
897 /* Exit if there is no _PRT under this device */
899 Status = AcpiGetHandle (Node, METHOD_NAME__PRT,
900 ACPI_CAST_PTR (ACPI_HANDLE, &TempNode));
901 if (ACPI_FAILURE (Status))
906 /* Get the full path to this device object */
908 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
909 Status = AcpiNsHandleToPathname (ObjHandle, &Buffer);
910 if (ACPI_FAILURE (Status))
912 AcpiOsPrintf ("Could Not get pathname for object %p\n", ObjHandle);
916 Status = AcpiGetObjectInfo (ObjHandle, &Info);
917 if (ACPI_FAILURE (Status))
922 /* Display the full path */
924 AcpiOsPrintf ("%-32s Type %X", (char *) Buffer.Pointer, Node->Type);
925 ACPI_FREE (Buffer.Pointer);
927 if (Info->Flags & ACPI_PCI_ROOT_BRIDGE)
929 AcpiOsPrintf (" - Is PCI Root Bridge");
935 AcpiOsPrintf ("_PRT: %p\n", TempNode);
937 /* Dump _ADR, _HID, _UID, _CID */
939 if (Info->Valid & ACPI_VALID_ADR)
941 AcpiOsPrintf ("_ADR: %8.8X%8.8X\n", ACPI_FORMAT_UINT64 (Info->Address));
945 AcpiOsPrintf ("_ADR: <Not Present>\n");
948 if (Info->Valid & ACPI_VALID_HID)
950 AcpiOsPrintf ("_HID: %s\n", Info->HardwareId.String);
954 AcpiOsPrintf ("_HID: <Not Present>\n");
957 if (Info->Valid & ACPI_VALID_UID)
959 AcpiOsPrintf ("_UID: %s\n", Info->UniqueId.String);
963 AcpiOsPrintf ("_UID: <Not Present>\n");
966 if (Info->Valid & ACPI_VALID_CID)
968 for (i = 0; i < Info->CompatibleIdList.Count; i++)
970 AcpiOsPrintf ("_CID: %s\n",
971 Info->CompatibleIdList.Ids[i].String);
976 AcpiOsPrintf ("_CID: <Not Present>\n");
984 /*******************************************************************************
986 * FUNCTION: AcpiDbGetBusInfo
992 * DESCRIPTION: Display info about system busses.
994 ******************************************************************************/
1000 /* Search all nodes in namespace */
1002 (void) AcpiWalkNamespace (ACPI_TYPE_ANY, ACPI_ROOT_OBJECT, ACPI_UINT32_MAX,
1003 AcpiDbBusWalk, NULL, NULL, NULL);
1006 #endif /* ACPI_DEBUGGER */