|
||||
Warning, cross-references for /kernel/drivers/acpica/nsdumpdv.c need to be fixed.
0001 /****************************************************************************** 0002 * 0003 * Module Name: nsdump - table dumping routines for debug 0004 * 0005 *****************************************************************************/ 0006 0007 /****************************************************************************** 0008 * 0009 * 1. Copyright Notice 0010 * 0011 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp. 0012 * All rights reserved. 0013 * 0014 * 2. License 0015 * 0016 * 2.1. This is your license from Intel Corp. under its intellectual property 0017 * rights. You may have additional license terms from the party that provided 0018 * you this software, covering your right to use that party's intellectual 0019 * property rights. 0020 * 0021 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 0022 * copy of the source code appearing in this file ("Covered Code") an 0023 * irrevocable, perpetual, worldwide license under Intel's copyrights in the 0024 * base code distributed originally by Intel ("Original Intel Code") to copy, 0025 0026 * make derivatives, distribute, use and display any portion of the Covered 0027 * Code in any form, with the right to sublicense such rights; and 0028 * 0029 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 0030 * license (with the right to sublicense), under only those claims of Intel 0031 * patents that are infringed by the Original Intel Code, to make, use, sell, 0032 * offer to sell, and import the Covered Code and derivative works thereof 0033 * solely to the minimum extent necessary to exercise the above copyright 0034 * license, and in no event shall the patent license extend to any additions 0035 * to or modifications of the Original Intel Code. No other license or right 0036 * is granted directly or by implication, estoppel or otherwise; 0037 * 0038 * The above copyright and patent license is granted only if the following 0039 * conditions are met: 0040 * 0041 * 3. Conditions 0042 * 0043 * 3.1. Redistribution of Source with Rights to Further Distribute Source. 0044 * Redistribution of source code of any substantial portion of the Covered 0045 * Code or modification with rights to further distribute source must include 0046 * the above Copyright Notice, the above License, this list of Conditions, 0047 * and the following Disclaimer and Export Compliance provision. In addition, 0048 * Licensee must cause all Covered Code to which Licensee contributes to 0049 * contain a file documenting the changes Licensee made to create that Covered 0050 * Code and the date of any change. Licensee must include in that file the 0051 * documentation of any changes made by any predecessor Licensee. Licensee 0052 * must include a prominent statement that the modification is derived, 0053 * directly or indirectly, from Original Intel Code. 0054 * 0055 * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 0056 * Redistribution of source code of any substantial portion of the Covered 0057 * Code or modification without rights to further distribute source must 0058 * include the following Disclaimer and Export Compliance provision in the 0059 * documentation and/or other materials provided with distribution. In 0060 * addition, Licensee may not authorize further sublicense of source of any 0061 * portion of the Covered Code, and must include terms to the effect that the 0062 * license from Licensee to its licensee is limited to the intellectual 0063 * property embodied in the software Licensee provides to its licensee, and 0064 * not to intellectual property embodied in modifications its licensee may 0065 * make. 0066 * 0067 * 3.3. Redistribution of Executable. Redistribution in executable form of any 0068 * substantial portion of the Covered Code or modification must reproduce the 0069 * above Copyright Notice, and the following Disclaimer and Export Compliance 0070 * provision in the documentation and/or other materials provided with the 0071 * distribution. 0072 * 0073 * 3.4. Intel retains all right, title, and interest in and to the Original 0074 * Intel Code. 0075 * 0076 * 3.5. Neither the name Intel nor any other trademark owned or controlled by 0077 * Intel shall be used in advertising or otherwise to promote the sale, use or 0078 * other dealings in products derived from or relating to the Covered Code 0079 * without prior written authorization from Intel. 0080 * 0081 * 4. Disclaimer and Export Compliance 0082 * 0083 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 0084 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 0085 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 0086 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 0087 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 0088 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 0089 * PARTICULAR PURPOSE. 0090 * 0091 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 0092 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 0093 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 0094 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 0095 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 0096 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 0097 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 0098 * LIMITED REMEDY. 0099 * 0100 * 4.3. Licensee shall not export, either directly or indirectly, any of this 0101 * software or system incorporating such software without first obtaining any 0102 * required license or other approval from the U. S. Department of Commerce or 0103 * any other agency or department of the United States Government. In the 0104 * event Licensee exports any such software from the United States or 0105 * re-exports any such software from a foreign destination, Licensee shall 0106 * ensure that the distribution and export/re-export of the software is in 0107 * compliance with all laws, regulations, orders, or other restrictions of the 0108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor 0109 * any of its subsidiaries will export/re-export any technical data, process, 0110 * software, or service, directly or indirectly, to any country for which the 0111 * United States government or any agency thereof requires an export license, 0112 * other governmental approval, or letter of assurance, without first obtaining 0113 * such license, approval or letter. 0114 * 0115 *****************************************************************************/ 0116 0117 #define __NSDUMPDV_C__ 0118 0119 #include "acpi.h" 0120 0121 0122 /* TBD: This entire module is apparently obsolete and should be removed */ 0123 0124 #define _COMPONENT ACPI_NAMESPACE 0125 ACPI_MODULE_NAME ("nsdumpdv") 0126 0127 #ifdef ACPI_OBSOLETE_FUNCTIONS 0128 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER) 0129 0130 #include "acnamesp.h" 0131 0132 /******************************************************************************* 0133 * 0134 * FUNCTION: AcpiNsDumpOneDevice 0135 * 0136 * PARAMETERS: Handle - Node to be dumped 0137 * Level - Nesting level of the handle 0138 * Context - Passed into WalkNamespace 0139 * ReturnValue - Not used 0140 * 0141 * RETURN: Status 0142 * 0143 * DESCRIPTION: Dump a single Node that represents a device 0144 * This procedure is a UserFunction called by AcpiNsWalkNamespace. 0145 * 0146 ******************************************************************************/ 0147 0148 static ACPI_STATUS 0149 AcpiNsDumpOneDevice ( 0150 ACPI_HANDLE ObjHandle, 0151 UINT32 Level, 0152 void *Context, 0153 void **ReturnValue) 0154 { 0155 ACPI_BUFFER Buffer; 0156 ACPI_DEVICE_INFO *Info; 0157 ACPI_STATUS Status; 0158 UINT32 i; 0159 0160 0161 ACPI_FUNCTION_NAME (NsDumpOneDevice); 0162 0163 0164 Status = AcpiNsDumpOneObject (ObjHandle, Level, Context, ReturnValue); 0165 0166 Buffer.Length = ACPI_ALLOCATE_LOCAL_BUFFER; 0167 Status = AcpiGetObjectInfo (ObjHandle, &Buffer); 0168 if (ACPI_SUCCESS (Status)) 0169 { 0170 Info = Buffer.Pointer; 0171 for (i = 0; i < Level; i++) 0172 { 0173 ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, " ")); 0174 } 0175 0176 ACPI_DEBUG_PRINT_RAW ((ACPI_DB_TABLES, 0177 " HID: %s, ADR: %8.8X%8.8X, Status: %X\n", 0178 Info->HardwareId.Value, ACPI_FORMAT_UINT64 (Info->Address), 0179 Info->CurrentStatus)); 0180 ACPI_FREE (Info); 0181 } 0182 0183 return (Status); 0184 } 0185 0186 0187 /******************************************************************************* 0188 * 0189 * FUNCTION: AcpiNsDumpRootDevices 0190 * 0191 * PARAMETERS: None 0192 * 0193 * RETURN: None 0194 * 0195 * DESCRIPTION: Dump all objects of type "device" 0196 * 0197 ******************************************************************************/ 0198 0199 void 0200 AcpiNsDumpRootDevices ( 0201 void) 0202 { 0203 ACPI_HANDLE SysBusHandle; 0204 ACPI_STATUS Status; 0205 0206 0207 ACPI_FUNCTION_NAME (NsDumpRootDevices); 0208 0209 0210 /* Only dump the table if tracing is enabled */ 0211 0212 if (!(ACPI_LV_TABLES & AcpiDbgLevel)) 0213 { 0214 return; 0215 } 0216 0217 Status = AcpiGetHandle (NULL, ACPI_NS_SYSTEM_BUS, &SysBusHandle); 0218 if (ACPI_FAILURE (Status)) 0219 { 0220 return; 0221 } 0222 0223 ACPI_DEBUG_PRINT ((ACPI_DB_TABLES, 0224 "Display of all devices in the namespace:\n")); 0225 0226 Status = AcpiNsWalkNamespace (ACPI_TYPE_DEVICE, SysBusHandle, 0227 ACPI_UINT32_MAX, ACPI_NS_WALK_NO_UNLOCK, 0228 AcpiNsDumpOneDevice, NULL, NULL); 0229 } 0230 0231 #endif 0232 #endif 0233 0234
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 1.2.0 LXR engine. |