acoutput.h revision 70243
1314564Sdim/****************************************************************************** 2314564Sdim * 3293116Semaste * Name: acoutput.h -- debug output 4293116Semaste * $Revision: 67 $ 5293116Semaste * 6293116Semaste *****************************************************************************/ 7293116Semaste 8293116Semaste/****************************************************************************** 9293116Semaste * 10293116Semaste * 1. Copyright Notice 11293116Semaste * 12293116Semaste * Some or all of this work - Copyright (c) 1999, 2000, Intel Corp. 13293116Semaste * All rights reserved. 14293116Semaste * 15293116Semaste * 2. License 16293116Semaste * 17309124Sdim * 2.1. This is your license from Intel Corp. under its intellectual property 18309124Sdim * rights. You may have additional license terms from the party that provided 19293116Semaste * you this software, covering your right to use that party's intellectual 20293116Semaste * property rights. 21293116Semaste * 22293116Semaste * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 23309124Sdim * copy of the source code appearing in this file ("Covered Code") an 24309124Sdim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 25293116Semaste * base code distributed originally by Intel ("Original Intel Code") to copy, 26293116Semaste * make derivatives, distribute, use and display any portion of the Covered 27293116Semaste * Code in any form, with the right to sublicense such rights; and 28293116Semaste * 29293116Semaste * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 30293116Semaste * license (with the right to sublicense), under only those claims of Intel 31293116Semaste * patents that are infringed by the Original Intel Code, to make, use, sell, 32293116Semaste * offer to sell, and import the Covered Code and derivative works thereof 33293116Semaste * solely to the minimum extent necessary to exercise the above copyright 34314564Sdim * license, and in no event shall the patent license extend to any additions 35314564Sdim * to or modifications of the Original Intel Code. No other license or right 36314564Sdim * is granted directly or by implication, estoppel or otherwise; 37314564Sdim * 38314564Sdim * The above copyright and patent license is granted only if the following 39314564Sdim * conditions are met: 40314564Sdim * 41314564Sdim * 3. Conditions 42314564Sdim * 43314564Sdim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 44314564Sdim * Redistribution of source code of any substantial portion of the Covered 45314564Sdim * Code or modification with rights to further distribute source must include 46293116Semaste * the above Copyright Notice, the above License, this list of Conditions, 47293116Semaste * and the following Disclaimer and Export Compliance provision. In addition, 48293116Semaste * Licensee must cause all Covered Code to which Licensee contributes to 49293116Semaste * contain a file documenting the changes Licensee made to create that Covered 50314564Sdim * Code and the date of any change. Licensee must include in that file the 51314564Sdim * documentation of any changes made by any predecessor Licensee. Licensee 52293116Semaste * must include a prominent statement that the modification is derived, 53314564Sdim * directly or indirectly, from Original Intel Code. 54314564Sdim * 55314564Sdim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 56314564Sdim * Redistribution of source code of any substantial portion of the Covered 57314564Sdim * Code or modification without rights to further distribute source must 58314564Sdim * include the following Disclaimer and Export Compliance provision in the 59293116Semaste * documentation and/or other materials provided with distribution. In 60293116Semaste * addition, Licensee may not authorize further sublicense of source of any 61314564Sdim * portion of the Covered Code, and must include terms to the effect that the 62314564Sdim * license from Licensee to its licensee is limited to the intellectual 63314564Sdim * property embodied in the software Licensee provides to its licensee, and 64314564Sdim * not to intellectual property embodied in modifications its licensee may 65314564Sdim * make. 66309124Sdim * 67314564Sdim * 3.3. Redistribution of Executable. Redistribution in executable form of any 68314564Sdim * substantial portion of the Covered Code or modification must reproduce the 69293116Semaste * above Copyright Notice, and the following Disclaimer and Export Compliance 70314564Sdim * provision in the documentation and/or other materials provided with the 71314564Sdim * distribution. 72314564Sdim * 73314564Sdim * 3.4. Intel retains all right, title, and interest in and to the Original 74314564Sdim * Intel Code. 75314564Sdim * 76314564Sdim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 77314564Sdim * Intel shall be used in advertising or otherwise to promote the sale, use or 78314564Sdim * other dealings in products derived from or relating to the Covered Code 79314564Sdim * without prior written authorization from Intel. 80314564Sdim * 81314564Sdim * 4. Disclaimer and Export Compliance 82314564Sdim * 83314564Sdim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 84293116Semaste * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 85293116Semaste * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 86314564Sdim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 87314564Sdim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 88314564Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 89314564Sdim * PARTICULAR PURPOSE. 90314564Sdim * 91293116Semaste * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 92293116Semaste * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 93314564Sdim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 94314564Sdim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 95314564Sdim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 96314564Sdim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 97314564Sdim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 98314564Sdim * LIMITED REMEDY. 99314564Sdim * 100314564Sdim * 4.3. Licensee shall not export, either directly or indirectly, any of this 101314564Sdim * software or system incorporating such software without first obtaining any 102314564Sdim * required license or other approval from the U. S. Department of Commerce or 103293116Semaste * any other agency or department of the United States Government. In the 104314564Sdim * event Licensee exports any such software from the United States or 105314564Sdim * re-exports any such software from a foreign destination, Licensee shall 106314564Sdim * ensure that the distribution and export/re-export of the software is in 107293116Semaste * compliance with all laws, regulations, orders, or other restrictions of the 108293116Semaste * U.S. Export Administration Regulations. Licensee agrees that neither it nor 109314564Sdim * any of its subsidiaries will export/re-export any technical data, process, 110314564Sdim * software, or service, directly or indirectly, to any country for which the 111314564Sdim * United States government or any agency thereof requires an export license, 112314564Sdim * other governmental approval, or letter of assurance, without first obtaining 113314564Sdim * such license, approval or letter. 114314564Sdim * 115314564Sdim *****************************************************************************/ 116293116Semaste 117293116Semaste#ifndef __ACOUTPUT_H__ 118314564Sdim#define __ACOUTPUT_H__ 119314564Sdim 120293116Semaste/* 121293116Semaste * Debug levels and component IDs. These are used to control the 122314564Sdim * granularity of the output of the DEBUG_PRINT macro -- on a per- 123314564Sdim * component basis and a per-exception-type basis. 124314564Sdim */ 125314564Sdim 126314564Sdim/* Component IDs -- used in the global "DebugLayer" */ 127314564Sdim 128314564Sdim#define GLOBAL 0x00000001 129314564Sdim#define COMMON 0x00000002 130314564Sdim#define PARSER 0x00000004 131314564Sdim#define DISPATCHER 0x00000008 132314564Sdim#define INTERPRETER 0x00000010 133314564Sdim#define NAMESPACE 0x00000020 134293116Semaste#define RESOURCE_MANAGER 0x00000040 135314564Sdim#define TABLE_MANAGER 0x00000080 136293116Semaste#define EVENT_HANDLING 0x00000100 137314564Sdim#define HARDWARE 0x00000200 138314564Sdim#define MISCELLANEOUS 0x00000400 139314564Sdim#define OS_DEPENDENT 0x00000800 140314564Sdim 141314564Sdim#define BUS_MANAGER 0x00001000 142314564Sdim 143314564Sdim#define PROCESSOR_CONTROL 0x00002000 144314564Sdim#define SYSTEM_CONTROL 0x00004000 145314564Sdim#define THERMAL_CONTROL 0x00008000 146314564Sdim#define POWER_CONTROL 0x00010000 147314564Sdim 148314564Sdim#define EMBEDDED_CONTROLLER 0x00020000 149314564Sdim#define BATTERY 0x00040000 150314564Sdim 151314564Sdim#define DEBUGGER 0x00100000 152314564Sdim#define ALL_COMPONENTS 0x001FFFFF 153314564Sdim 154314564Sdim#define COMPONENT_DEFAULT (ALL_COMPONENTS) 155314564Sdim 156314564Sdim 157314564Sdim/* Exception level -- used in the global "DebugLevel" */ 158314564Sdim 159314564Sdim#define ACPI_OK 0x00000001 160314564Sdim#define ACPI_INFO 0x00000002 161314564Sdim#define ACPI_WARN 0x00000004 162314564Sdim#define ACPI_ERROR 0x00000008 163293116Semaste#define ACPI_FATAL 0x00000010 164314564Sdim#define ACPI_DEBUG_OBJECT 0x00000020 165314564Sdim#define ACPI_ALL 0x0000003F 166314564Sdim 167314564Sdim 168314564Sdim/* Trace level -- also used in the global "DebugLevel" */ 169314564Sdim 170314564Sdim#define TRACE_PARSE 0x00000100 171314564Sdim#define TRACE_DISPATCH 0x00000200 172314564Sdim#define TRACE_LOAD 0x00000400 173314564Sdim#define TRACE_EXEC 0x00000800 174293116Semaste#define TRACE_NAMES 0x00001000 175314564Sdim#define TRACE_OPREGION 0x00002000 176314564Sdim#define TRACE_BFIELD 0x00004000 177314564Sdim#define TRACE_TRASH 0x00008000 178314564Sdim#define TRACE_TABLES 0x00010000 179314564Sdim#define TRACE_FUNCTIONS 0x00020000 180314564Sdim#define TRACE_VALUES 0x00040000 181314564Sdim#define TRACE_OBJECTS 0x00080000 182314564Sdim#define TRACE_ALLOCATIONS 0x00100000 183314564Sdim#define TRACE_RESOURCES 0x00200000 184314564Sdim#define TRACE_IO 0x00400000 185314564Sdim#define TRACE_INTERRUPTS 0x00800000 186314564Sdim#define TRACE_USER_REQUESTS 0x01000000 187314564Sdim#define TRACE_PACKAGE 0x02000000 188314564Sdim#define TRACE_MUTEX 0x04000000 189314564Sdim 190314564Sdim#define TRACE_ALL 0x0FFFFF00 191314564Sdim 192314564Sdim 193314564Sdim/* Exceptionally verbose output -- also used in the global "DebugLevel" */ 194314564Sdim 195293116Semaste#define VERBOSE_AML_DISASSEMBLE 0x10000000 196314564Sdim#define VERBOSE_INFO 0x20000000 197314564Sdim#define VERBOSE_TABLES 0x40000000 198314564Sdim#define VERBOSE_EVENTS 0x80000000 199314564Sdim 200314564Sdim#define VERBOSE_ALL 0xF0000000 201314564Sdim 202293116Semaste 203293116Semaste/* Defaults for DebugLevel, debug and normal */ 204293116Semaste 205293116Semaste#define DEBUG_DEFAULT (ACPI_OK | ACPI_WARN | ACPI_ERROR | ACPI_DEBUG_OBJECT) 206314564Sdim#define NORMAL_DEFAULT (ACPI_OK | ACPI_WARN | ACPI_ERROR | ACPI_DEBUG_OBJECT) 207314564Sdim#define DEBUG_ALL (VERBOSE_AML_DISASSEMBLE | TRACE_ALL | ACPI_ALL) 208314564Sdim 209314564Sdim/* Misc defines */ 210314564Sdim 211293116Semaste#define HEX 0x01 212293116Semaste#define ASCII 0x02 213314564Sdim#define FULL_ADDRESS 0x04 214#define CHARS_PER_LINE 16 /* used in DumpBuf function */ 215 216 217#endif /* __ACOUTPUT_H__ */ 218