nsdump.c (99679) | nsdump.c (100966) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: nsdump - table dumping routines for debug | 1/****************************************************************************** 2 * 3 * Module Name: nsdump - table dumping routines for debug |
4 * $Revision: 136 $ | 4 * $Revision: 137 $ |
5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp. --- 738 unchanged lines hidden (view full) --- 751 752 753 (void) AcpiNsWalkNamespace (Type, StartHandle, MaxDepth, 754 ACPI_NS_WALK_NO_UNLOCK, AcpiNsDumpOneObject, 755 (void *) &Info, NULL); 756} 757 758 | 5 * 6 *****************************************************************************/ 7 8/****************************************************************************** 9 * 10 * 1. Copyright Notice 11 * 12 * Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp. --- 738 unchanged lines hidden (view full) --- 751 752 753 (void) AcpiNsWalkNamespace (Type, StartHandle, MaxDepth, 754 ACPI_NS_WALK_NO_UNLOCK, AcpiNsDumpOneObject, 755 (void *) &Info, NULL); 756} 757 758 |
759#ifndef _ACPI_ASL_COMPILER | |
760/******************************************************************************* 761 * | 759/******************************************************************************* 760 * |
762 * FUNCTION: AcpiNsDumpOneDevice 763 * 764 * PARAMETERS: Handle - Node to be dumped 765 * Level - Nesting level of the handle 766 * Context - Passed into WalkNamespace 767 * 768 * DESCRIPTION: Dump a single Node that represents a device 769 * This procedure is a UserFunction called by AcpiNsWalkNamespace. 770 * 771 ******************************************************************************/ 772 773ACPI_STATUS 774AcpiNsDumpOneDevice ( 775 ACPI_HANDLE ObjHandle, 776 UINT32 Level, 777 void *Context, 778 void **ReturnValue) 779{ 780 ACPI_DEVICE_INFO Info; 781 ACPI_STATUS Status; 782 UINT32 i; 783 784 785 ACPI_FUNCTION_NAME ("NsDumpOneDevice"); 786 787 788 Status = AcpiNsDumpOneObject (ObjHandle, Level, Context, ReturnValue); 789 790 Status = AcpiGetObjectInfo (ObjHandle, &Info); 791 if (ACPI_SUCCESS (Status)) 792 { 793 for (i = 0; i < Level; i++) 794 { 795 ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, " ")); 796 } 797 798 ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, " HID: %s, ADR: %8.8X%8.8X, Status: %X\n", 799 Info.HardwareId, 800 ACPI_HIDWORD (Info.Address), ACPI_LODWORD (Info.Address), 801 Info.CurrentStatus)); 802 } 803 804 return (Status); 805} 806 807 808/******************************************************************************* 809 * 810 * FUNCTION: AcpiNsDumpRootDevices 811 * 812 * PARAMETERS: None 813 * 814 * DESCRIPTION: Dump all objects of type "device" 815 * 816 ******************************************************************************/ 817 818void 819AcpiNsDumpRootDevices (void) 820{ 821 ACPI_HANDLE SysBusHandle; 822 ACPI_STATUS Status; 823 824 825 ACPI_FUNCTION_NAME ("NsDumpRootDevices"); 826 827 828 /* Only dump the table if tracing is enabled */ 829 830 if (!(ACPI_LV_TABLES & AcpiDbgLevel)) 831 { 832 return; 833 } 834 835 Status = AcpiGetHandle (0, ACPI_NS_SYSTEM_BUS, &SysBusHandle); 836 if (ACPI_FAILURE (Status)) 837 { 838 return; 839 } 840 841 ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, "Display of all devices in the namespace:\n")); 842 843 Status = AcpiNsWalkNamespace (ACPI_TYPE_DEVICE, SysBusHandle, 844 ACPI_UINT32_MAX, ACPI_NS_WALK_NO_UNLOCK, 845 AcpiNsDumpOneDevice, NULL, NULL); 846} 847 848#endif 849 850/******************************************************************************* 851 * | |
852 * FUNCTION: AcpiNsDumpTables 853 * 854 * PARAMETERS: SearchBase - Root of subtree to be dumped, or 855 * NS_ALL to dump the entire namespace 856 * MaxDepth - Maximum depth of dump. Use INT_MAX 857 * for an effectively unlimited depth. 858 * 859 * DESCRIPTION: Dump the name space, or a portion of it. --- 70 unchanged lines hidden --- | 761 * FUNCTION: AcpiNsDumpTables 762 * 763 * PARAMETERS: SearchBase - Root of subtree to be dumped, or 764 * NS_ALL to dump the entire namespace 765 * MaxDepth - Maximum depth of dump. Use INT_MAX 766 * for an effectively unlimited depth. 767 * 768 * DESCRIPTION: Dump the name space, or a portion of it. --- 70 unchanged lines hidden --- |