1a9f12690SJung-uk Kim /****************************************************************************** 2a9f12690SJung-uk Kim * 3a9f12690SJung-uk Kim * Name: acoutput.h -- debug output 4a9f12690SJung-uk Kim * 5a9f12690SJung-uk Kim *****************************************************************************/ 6a9f12690SJung-uk Kim 7*0d84335fSJung-uk Kim /****************************************************************************** 8*0d84335fSJung-uk Kim * 9*0d84335fSJung-uk Kim * 1. Copyright Notice 10*0d84335fSJung-uk Kim * 11*0d84335fSJung-uk Kim * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp. 12a9f12690SJung-uk Kim * All rights reserved. 13a9f12690SJung-uk Kim * 14*0d84335fSJung-uk Kim * 2. License 15*0d84335fSJung-uk Kim * 16*0d84335fSJung-uk Kim * 2.1. This is your license from Intel Corp. under its intellectual property 17*0d84335fSJung-uk Kim * rights. You may have additional license terms from the party that provided 18*0d84335fSJung-uk Kim * you this software, covering your right to use that party's intellectual 19*0d84335fSJung-uk Kim * property rights. 20*0d84335fSJung-uk Kim * 21*0d84335fSJung-uk Kim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22*0d84335fSJung-uk Kim * copy of the source code appearing in this file ("Covered Code") an 23*0d84335fSJung-uk Kim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24*0d84335fSJung-uk Kim * base code distributed originally by Intel ("Original Intel Code") to copy, 25*0d84335fSJung-uk Kim * make derivatives, distribute, use and display any portion of the Covered 26*0d84335fSJung-uk Kim * Code in any form, with the right to sublicense such rights; and 27*0d84335fSJung-uk Kim * 28*0d84335fSJung-uk Kim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29*0d84335fSJung-uk Kim * license (with the right to sublicense), under only those claims of Intel 30*0d84335fSJung-uk Kim * patents that are infringed by the Original Intel Code, to make, use, sell, 31*0d84335fSJung-uk Kim * offer to sell, and import the Covered Code and derivative works thereof 32*0d84335fSJung-uk Kim * solely to the minimum extent necessary to exercise the above copyright 33*0d84335fSJung-uk Kim * license, and in no event shall the patent license extend to any additions 34*0d84335fSJung-uk Kim * to or modifications of the Original Intel Code. No other license or right 35*0d84335fSJung-uk Kim * is granted directly or by implication, estoppel or otherwise; 36*0d84335fSJung-uk Kim * 37*0d84335fSJung-uk Kim * The above copyright and patent license is granted only if the following 38*0d84335fSJung-uk Kim * conditions are met: 39*0d84335fSJung-uk Kim * 40*0d84335fSJung-uk Kim * 3. Conditions 41*0d84335fSJung-uk Kim * 42*0d84335fSJung-uk Kim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 43*0d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 44*0d84335fSJung-uk Kim * Code or modification with rights to further distribute source must include 45*0d84335fSJung-uk Kim * the above Copyright Notice, the above License, this list of Conditions, 46*0d84335fSJung-uk Kim * and the following Disclaimer and Export Compliance provision. In addition, 47*0d84335fSJung-uk Kim * Licensee must cause all Covered Code to which Licensee contributes to 48*0d84335fSJung-uk Kim * contain a file documenting the changes Licensee made to create that Covered 49*0d84335fSJung-uk Kim * Code and the date of any change. Licensee must include in that file the 50*0d84335fSJung-uk Kim * documentation of any changes made by any predecessor Licensee. Licensee 51*0d84335fSJung-uk Kim * must include a prominent statement that the modification is derived, 52*0d84335fSJung-uk Kim * directly or indirectly, from Original Intel Code. 53*0d84335fSJung-uk Kim * 54*0d84335fSJung-uk Kim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 55*0d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 56*0d84335fSJung-uk Kim * Code or modification without rights to further distribute source must 57*0d84335fSJung-uk Kim * include the following Disclaimer and Export Compliance provision in the 58*0d84335fSJung-uk Kim * documentation and/or other materials provided with distribution. In 59*0d84335fSJung-uk Kim * addition, Licensee may not authorize further sublicense of source of any 60*0d84335fSJung-uk Kim * portion of the Covered Code, and must include terms to the effect that the 61*0d84335fSJung-uk Kim * license from Licensee to its licensee is limited to the intellectual 62*0d84335fSJung-uk Kim * property embodied in the software Licensee provides to its licensee, and 63*0d84335fSJung-uk Kim * not to intellectual property embodied in modifications its licensee may 64*0d84335fSJung-uk Kim * make. 65*0d84335fSJung-uk Kim * 66*0d84335fSJung-uk Kim * 3.3. Redistribution of Executable. Redistribution in executable form of any 67*0d84335fSJung-uk Kim * substantial portion of the Covered Code or modification must reproduce the 68*0d84335fSJung-uk Kim * above Copyright Notice, and the following Disclaimer and Export Compliance 69*0d84335fSJung-uk Kim * provision in the documentation and/or other materials provided with the 70*0d84335fSJung-uk Kim * distribution. 71*0d84335fSJung-uk Kim * 72*0d84335fSJung-uk Kim * 3.4. Intel retains all right, title, and interest in and to the Original 73*0d84335fSJung-uk Kim * Intel Code. 74*0d84335fSJung-uk Kim * 75*0d84335fSJung-uk Kim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 76*0d84335fSJung-uk Kim * Intel shall be used in advertising or otherwise to promote the sale, use or 77*0d84335fSJung-uk Kim * other dealings in products derived from or relating to the Covered Code 78*0d84335fSJung-uk Kim * without prior written authorization from Intel. 79*0d84335fSJung-uk Kim * 80*0d84335fSJung-uk Kim * 4. Disclaimer and Export Compliance 81*0d84335fSJung-uk Kim * 82*0d84335fSJung-uk Kim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 83*0d84335fSJung-uk Kim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 84*0d84335fSJung-uk Kim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 85*0d84335fSJung-uk Kim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 86*0d84335fSJung-uk Kim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 87*0d84335fSJung-uk Kim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 88*0d84335fSJung-uk Kim * PARTICULAR PURPOSE. 89*0d84335fSJung-uk Kim * 90*0d84335fSJung-uk Kim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 91*0d84335fSJung-uk Kim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92*0d84335fSJung-uk Kim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93*0d84335fSJung-uk Kim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94*0d84335fSJung-uk Kim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95*0d84335fSJung-uk Kim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96*0d84335fSJung-uk Kim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97*0d84335fSJung-uk Kim * LIMITED REMEDY. 98*0d84335fSJung-uk Kim * 99*0d84335fSJung-uk Kim * 4.3. Licensee shall not export, either directly or indirectly, any of this 100*0d84335fSJung-uk Kim * software or system incorporating such software without first obtaining any 101*0d84335fSJung-uk Kim * required license or other approval from the U. S. Department of Commerce or 102*0d84335fSJung-uk Kim * any other agency or department of the United States Government. In the 103*0d84335fSJung-uk Kim * event Licensee exports any such software from the United States or 104*0d84335fSJung-uk Kim * re-exports any such software from a foreign destination, Licensee shall 105*0d84335fSJung-uk Kim * ensure that the distribution and export/re-export of the software is in 106*0d84335fSJung-uk Kim * compliance with all laws, regulations, orders, or other restrictions of the 107*0d84335fSJung-uk Kim * U.S. Export Administration Regulations. Licensee agrees that neither it nor 108*0d84335fSJung-uk Kim * any of its subsidiaries will export/re-export any technical data, process, 109*0d84335fSJung-uk Kim * software, or service, directly or indirectly, to any country for which the 110*0d84335fSJung-uk Kim * United States government or any agency thereof requires an export license, 111*0d84335fSJung-uk Kim * other governmental approval, or letter of assurance, without first obtaining 112*0d84335fSJung-uk Kim * such license, approval or letter. 113*0d84335fSJung-uk Kim * 114*0d84335fSJung-uk Kim ***************************************************************************** 115*0d84335fSJung-uk Kim * 116*0d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 117*0d84335fSJung-uk Kim * following license: 118*0d84335fSJung-uk Kim * 119d244b227SJung-uk Kim * Redistribution and use in source and binary forms, with or without 120d244b227SJung-uk Kim * modification, are permitted provided that the following conditions 121d244b227SJung-uk Kim * are met: 122d244b227SJung-uk Kim * 1. Redistributions of source code must retain the above copyright 123d244b227SJung-uk Kim * notice, this list of conditions, and the following disclaimer, 124d244b227SJung-uk Kim * without modification. 125d244b227SJung-uk Kim * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126d244b227SJung-uk Kim * substantially similar to the "NO WARRANTY" disclaimer below 127d244b227SJung-uk Kim * ("Disclaimer") and any redistribution must be conditioned upon 128d244b227SJung-uk Kim * including a substantially similar Disclaimer requirement for further 129d244b227SJung-uk Kim * binary redistribution. 130d244b227SJung-uk Kim * 3. Neither the names of the above-listed copyright holders nor the names 131d244b227SJung-uk Kim * of any contributors may be used to endorse or promote products derived 132d244b227SJung-uk Kim * from this software without specific prior written permission. 133a9f12690SJung-uk Kim * 134*0d84335fSJung-uk Kim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 135*0d84335fSJung-uk Kim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 136*0d84335fSJung-uk Kim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 137*0d84335fSJung-uk Kim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 138*0d84335fSJung-uk Kim * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 139*0d84335fSJung-uk Kim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 140*0d84335fSJung-uk Kim * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 141*0d84335fSJung-uk Kim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 142*0d84335fSJung-uk Kim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 143*0d84335fSJung-uk Kim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 144*0d84335fSJung-uk Kim * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 145*0d84335fSJung-uk Kim * 146*0d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 147d244b227SJung-uk Kim * GNU General Public License ("GPL") version 2 as published by the Free 148d244b227SJung-uk Kim * Software Foundation. 149a9f12690SJung-uk Kim * 150*0d84335fSJung-uk Kim *****************************************************************************/ 151a9f12690SJung-uk Kim 152a9f12690SJung-uk Kim #ifndef __ACOUTPUT_H__ 153a9f12690SJung-uk Kim #define __ACOUTPUT_H__ 154a9f12690SJung-uk Kim 155a9f12690SJung-uk Kim /* 156a9f12690SJung-uk Kim * Debug levels and component IDs. These are used to control the 157a9f12690SJung-uk Kim * granularity of the output of the ACPI_DEBUG_PRINT macro -- on a 158a9f12690SJung-uk Kim * per-component basis and a per-exception-type basis. 159a9f12690SJung-uk Kim */ 160a9f12690SJung-uk Kim 161a9f12690SJung-uk Kim /* Component IDs are used in the global "DebugLayer" */ 162a9f12690SJung-uk Kim 163a9f12690SJung-uk Kim #define ACPI_UTILITIES 0x00000001 164a9f12690SJung-uk Kim #define ACPI_HARDWARE 0x00000002 165a9f12690SJung-uk Kim #define ACPI_EVENTS 0x00000004 166a9f12690SJung-uk Kim #define ACPI_TABLES 0x00000008 167a9f12690SJung-uk Kim #define ACPI_NAMESPACE 0x00000010 168a9f12690SJung-uk Kim #define ACPI_PARSER 0x00000020 169a9f12690SJung-uk Kim #define ACPI_DISPATCHER 0x00000040 170a9f12690SJung-uk Kim #define ACPI_EXECUTER 0x00000080 171a9f12690SJung-uk Kim #define ACPI_RESOURCES 0x00000100 172a9f12690SJung-uk Kim #define ACPI_CA_DEBUGGER 0x00000200 173a9f12690SJung-uk Kim #define ACPI_OS_SERVICES 0x00000400 174a9f12690SJung-uk Kim #define ACPI_CA_DISASSEMBLER 0x00000800 175a9f12690SJung-uk Kim 176a9f12690SJung-uk Kim /* Component IDs for ACPI tools and utilities */ 177a9f12690SJung-uk Kim 178a9f12690SJung-uk Kim #define ACPI_COMPILER 0x00001000 179a9f12690SJung-uk Kim #define ACPI_TOOLS 0x00002000 180a9f12690SJung-uk Kim #define ACPI_EXAMPLE 0x00004000 181a9f12690SJung-uk Kim #define ACPI_DRIVER 0x00008000 182a88e22b7SJung-uk Kim #define DT_COMPILER 0x00010000 1834c52cad2SJung-uk Kim #define ASL_PREPROCESSOR 0x00020000 184a9f12690SJung-uk Kim 185a88e22b7SJung-uk Kim #define ACPI_ALL_COMPONENTS 0x0001FFFF 186a9f12690SJung-uk Kim #define ACPI_COMPONENT_DEFAULT (ACPI_ALL_COMPONENTS) 187a9f12690SJung-uk Kim 188a9f12690SJung-uk Kim /* Component IDs reserved for ACPI drivers */ 189a9f12690SJung-uk Kim 190a9f12690SJung-uk Kim #define ACPI_ALL_DRIVERS 0xFFFF0000 191a9f12690SJung-uk Kim 192a9f12690SJung-uk Kim 193a9f12690SJung-uk Kim /* 194a9f12690SJung-uk Kim * Raw debug output levels, do not use these in the ACPI_DEBUG_PRINT macros 195a9f12690SJung-uk Kim */ 196a9f12690SJung-uk Kim #define ACPI_LV_INIT 0x00000001 197a9f12690SJung-uk Kim #define ACPI_LV_DEBUG_OBJECT 0x00000002 198a9f12690SJung-uk Kim #define ACPI_LV_INFO 0x00000004 199572c8255SJung-uk Kim #define ACPI_LV_REPAIR 0x00000008 200fe0f0bbbSJung-uk Kim #define ACPI_LV_TRACE_POINT 0x00000010 201fe0f0bbbSJung-uk Kim #define ACPI_LV_ALL_EXCEPTIONS 0x0000001F 202a9f12690SJung-uk Kim 203a9f12690SJung-uk Kim /* Trace verbosity level 1 [Standard Trace Level] */ 204a9f12690SJung-uk Kim 205a9f12690SJung-uk Kim #define ACPI_LV_INIT_NAMES 0x00000020 206a9f12690SJung-uk Kim #define ACPI_LV_PARSE 0x00000040 207a9f12690SJung-uk Kim #define ACPI_LV_LOAD 0x00000080 208a9f12690SJung-uk Kim #define ACPI_LV_DISPATCH 0x00000100 209a9f12690SJung-uk Kim #define ACPI_LV_EXEC 0x00000200 210a9f12690SJung-uk Kim #define ACPI_LV_NAMES 0x00000400 211a9f12690SJung-uk Kim #define ACPI_LV_OPREGION 0x00000800 212a9f12690SJung-uk Kim #define ACPI_LV_BFIELD 0x00001000 213a9f12690SJung-uk Kim #define ACPI_LV_TABLES 0x00002000 214a9f12690SJung-uk Kim #define ACPI_LV_VALUES 0x00004000 215a9f12690SJung-uk Kim #define ACPI_LV_OBJECTS 0x00008000 216a9f12690SJung-uk Kim #define ACPI_LV_RESOURCES 0x00010000 217a9f12690SJung-uk Kim #define ACPI_LV_USER_REQUESTS 0x00020000 218a9f12690SJung-uk Kim #define ACPI_LV_PACKAGE 0x00040000 219a9f12690SJung-uk Kim #define ACPI_LV_VERBOSITY1 0x0007FF40 | ACPI_LV_ALL_EXCEPTIONS 220a9f12690SJung-uk Kim 221a9f12690SJung-uk Kim /* Trace verbosity level 2 [Function tracing and memory allocation] */ 222a9f12690SJung-uk Kim 223a9f12690SJung-uk Kim #define ACPI_LV_ALLOCATIONS 0x00100000 224a9f12690SJung-uk Kim #define ACPI_LV_FUNCTIONS 0x00200000 225a9f12690SJung-uk Kim #define ACPI_LV_OPTIMIZATIONS 0x00400000 226a9f12690SJung-uk Kim #define ACPI_LV_VERBOSITY2 0x00700000 | ACPI_LV_VERBOSITY1 227a9f12690SJung-uk Kim #define ACPI_LV_ALL ACPI_LV_VERBOSITY2 228a9f12690SJung-uk Kim 229a9f12690SJung-uk Kim /* Trace verbosity level 3 [Threading, I/O, and Interrupts] */ 230a9f12690SJung-uk Kim 231a9f12690SJung-uk Kim #define ACPI_LV_MUTEX 0x01000000 232a9f12690SJung-uk Kim #define ACPI_LV_THREADS 0x02000000 233a9f12690SJung-uk Kim #define ACPI_LV_IO 0x04000000 234a9f12690SJung-uk Kim #define ACPI_LV_INTERRUPTS 0x08000000 235a9f12690SJung-uk Kim #define ACPI_LV_VERBOSITY3 0x0F000000 | ACPI_LV_VERBOSITY2 236a9f12690SJung-uk Kim 237a9f12690SJung-uk Kim /* Exceptionally verbose output -- also used in the global "DebugLevel" */ 238a9f12690SJung-uk Kim 239a9f12690SJung-uk Kim #define ACPI_LV_AML_DISASSEMBLE 0x10000000 240a9f12690SJung-uk Kim #define ACPI_LV_VERBOSE_INFO 0x20000000 241a9f12690SJung-uk Kim #define ACPI_LV_FULL_TABLES 0x40000000 242a9f12690SJung-uk Kim #define ACPI_LV_EVENTS 0x80000000 243a9f12690SJung-uk Kim #define ACPI_LV_VERBOSE 0xF0000000 244a9f12690SJung-uk Kim 245a9f12690SJung-uk Kim 246a9f12690SJung-uk Kim /* 247a9f12690SJung-uk Kim * Debug level macros that are used in the DEBUG_PRINT macros 248a9f12690SJung-uk Kim */ 249a9f12690SJung-uk Kim #define ACPI_DEBUG_LEVEL(dl) (UINT32) dl,ACPI_DEBUG_PARAMETERS 250a9f12690SJung-uk Kim 251a9f12690SJung-uk Kim /* 252a9f12690SJung-uk Kim * Exception level -- used in the global "DebugLevel" 253a9f12690SJung-uk Kim * 254a9f12690SJung-uk Kim * Note: For errors, use the ACPI_ERROR or ACPI_EXCEPTION interfaces. 255a9f12690SJung-uk Kim * For warnings, use ACPI_WARNING. 256a9f12690SJung-uk Kim */ 257a9f12690SJung-uk Kim #define ACPI_DB_INIT ACPI_DEBUG_LEVEL (ACPI_LV_INIT) 258a9f12690SJung-uk Kim #define ACPI_DB_DEBUG_OBJECT ACPI_DEBUG_LEVEL (ACPI_LV_DEBUG_OBJECT) 259a9f12690SJung-uk Kim #define ACPI_DB_INFO ACPI_DEBUG_LEVEL (ACPI_LV_INFO) 260572c8255SJung-uk Kim #define ACPI_DB_REPAIR ACPI_DEBUG_LEVEL (ACPI_LV_REPAIR) 261fe0f0bbbSJung-uk Kim #define ACPI_DB_TRACE_POINT ACPI_DEBUG_LEVEL (ACPI_LV_TRACE_POINT) 262a9f12690SJung-uk Kim #define ACPI_DB_ALL_EXCEPTIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALL_EXCEPTIONS) 263a9f12690SJung-uk Kim 264a9f12690SJung-uk Kim /* Trace level -- also used in the global "DebugLevel" */ 265a9f12690SJung-uk Kim 266a9f12690SJung-uk Kim #define ACPI_DB_INIT_NAMES ACPI_DEBUG_LEVEL (ACPI_LV_INIT_NAMES) 267a9f12690SJung-uk Kim #define ACPI_DB_THREADS ACPI_DEBUG_LEVEL (ACPI_LV_THREADS) 268a9f12690SJung-uk Kim #define ACPI_DB_PARSE ACPI_DEBUG_LEVEL (ACPI_LV_PARSE) 269a9f12690SJung-uk Kim #define ACPI_DB_DISPATCH ACPI_DEBUG_LEVEL (ACPI_LV_DISPATCH) 270a9f12690SJung-uk Kim #define ACPI_DB_LOAD ACPI_DEBUG_LEVEL (ACPI_LV_LOAD) 271a9f12690SJung-uk Kim #define ACPI_DB_EXEC ACPI_DEBUG_LEVEL (ACPI_LV_EXEC) 272a9f12690SJung-uk Kim #define ACPI_DB_NAMES ACPI_DEBUG_LEVEL (ACPI_LV_NAMES) 273a9f12690SJung-uk Kim #define ACPI_DB_OPREGION ACPI_DEBUG_LEVEL (ACPI_LV_OPREGION) 274a9f12690SJung-uk Kim #define ACPI_DB_BFIELD ACPI_DEBUG_LEVEL (ACPI_LV_BFIELD) 275a9f12690SJung-uk Kim #define ACPI_DB_TABLES ACPI_DEBUG_LEVEL (ACPI_LV_TABLES) 276a9f12690SJung-uk Kim #define ACPI_DB_FUNCTIONS ACPI_DEBUG_LEVEL (ACPI_LV_FUNCTIONS) 277a9f12690SJung-uk Kim #define ACPI_DB_OPTIMIZATIONS ACPI_DEBUG_LEVEL (ACPI_LV_OPTIMIZATIONS) 278a9f12690SJung-uk Kim #define ACPI_DB_VALUES ACPI_DEBUG_LEVEL (ACPI_LV_VALUES) 279a9f12690SJung-uk Kim #define ACPI_DB_OBJECTS ACPI_DEBUG_LEVEL (ACPI_LV_OBJECTS) 280a9f12690SJung-uk Kim #define ACPI_DB_ALLOCATIONS ACPI_DEBUG_LEVEL (ACPI_LV_ALLOCATIONS) 281a9f12690SJung-uk Kim #define ACPI_DB_RESOURCES ACPI_DEBUG_LEVEL (ACPI_LV_RESOURCES) 282a9f12690SJung-uk Kim #define ACPI_DB_IO ACPI_DEBUG_LEVEL (ACPI_LV_IO) 283a9f12690SJung-uk Kim #define ACPI_DB_INTERRUPTS ACPI_DEBUG_LEVEL (ACPI_LV_INTERRUPTS) 284a9f12690SJung-uk Kim #define ACPI_DB_USER_REQUESTS ACPI_DEBUG_LEVEL (ACPI_LV_USER_REQUESTS) 285a9f12690SJung-uk Kim #define ACPI_DB_PACKAGE ACPI_DEBUG_LEVEL (ACPI_LV_PACKAGE) 286a9f12690SJung-uk Kim #define ACPI_DB_MUTEX ACPI_DEBUG_LEVEL (ACPI_LV_MUTEX) 287a9f12690SJung-uk Kim #define ACPI_DB_EVENTS ACPI_DEBUG_LEVEL (ACPI_LV_EVENTS) 288a9f12690SJung-uk Kim 289a9f12690SJung-uk Kim #define ACPI_DB_ALL ACPI_DEBUG_LEVEL (ACPI_LV_ALL) 290a9f12690SJung-uk Kim 291a9f12690SJung-uk Kim /* Defaults for DebugLevel, debug and normal */ 292a9f12690SJung-uk Kim 293572c8255SJung-uk Kim #define ACPI_DEBUG_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR) 294572c8255SJung-uk Kim #define ACPI_NORMAL_DEFAULT (ACPI_LV_INIT | ACPI_LV_DEBUG_OBJECT | ACPI_LV_REPAIR) 295a9f12690SJung-uk Kim #define ACPI_DEBUG_ALL (ACPI_LV_AML_DISASSEMBLE | ACPI_LV_ALL_EXCEPTIONS | ACPI_LV_ALL) 296a9f12690SJung-uk Kim 297a9f12690SJung-uk Kim 298fe0f0bbbSJung-uk Kim /* 299fe0f0bbbSJung-uk Kim * Global trace flags 300fe0f0bbbSJung-uk Kim */ 301fe0f0bbbSJung-uk Kim #define ACPI_TRACE_ENABLED ((UINT32) 4) 302fe0f0bbbSJung-uk Kim #define ACPI_TRACE_ONESHOT ((UINT32) 2) 303fe0f0bbbSJung-uk Kim #define ACPI_TRACE_OPCODE ((UINT32) 1) 304fe0f0bbbSJung-uk Kim 305fe0f0bbbSJung-uk Kim /* Defaults for trace debugging level/layer */ 306fe0f0bbbSJung-uk Kim 307fe0f0bbbSJung-uk Kim #define ACPI_TRACE_LEVEL_ALL ACPI_LV_ALL 308fe0f0bbbSJung-uk Kim #define ACPI_TRACE_LAYER_ALL 0x000001FF 309fe0f0bbbSJung-uk Kim #define ACPI_TRACE_LEVEL_DEFAULT ACPI_LV_TRACE_POINT 310fe0f0bbbSJung-uk Kim #define ACPI_TRACE_LAYER_DEFAULT ACPI_EXECUTER 311fe0f0bbbSJung-uk Kim 312fe0f0bbbSJung-uk Kim 313a9f12690SJung-uk Kim #if defined (ACPI_DEBUG_OUTPUT) || !defined (ACPI_NO_ERROR_MESSAGES) 314a9f12690SJung-uk Kim /* 3150b94ba42SJung-uk Kim * The module name is used primarily for error and debug messages. 3160b94ba42SJung-uk Kim * The __FILE__ macro is not very useful for this, because it 3170b94ba42SJung-uk Kim * usually includes the entire pathname to the module making the 3180b94ba42SJung-uk Kim * debug output difficult to read. 319a9f12690SJung-uk Kim */ 320a9f12690SJung-uk Kim #define ACPI_MODULE_NAME(Name) static const char ACPI_UNUSED_VAR _AcpiModuleName[] = Name; 321a9f12690SJung-uk Kim #else 3220b94ba42SJung-uk Kim /* 3230b94ba42SJung-uk Kim * For the no-debug and no-error-msg cases, we must at least define 3240b94ba42SJung-uk Kim * a null module name. 3250b94ba42SJung-uk Kim */ 326a9f12690SJung-uk Kim #define ACPI_MODULE_NAME(Name) 3270b94ba42SJung-uk Kim #define _AcpiModuleName "" 328a9f12690SJung-uk Kim #endif 329a9f12690SJung-uk Kim 330a9f12690SJung-uk Kim /* 331a9f12690SJung-uk Kim * Ascii error messages can be configured out 332a9f12690SJung-uk Kim */ 333a9f12690SJung-uk Kim #ifndef ACPI_NO_ERROR_MESSAGES 334a9f12690SJung-uk Kim #define AE_INFO _AcpiModuleName, __LINE__ 335a9f12690SJung-uk Kim 336a9f12690SJung-uk Kim /* 337a9f12690SJung-uk Kim * Error reporting. Callers module and line number are inserted by AE_INFO, 338a9f12690SJung-uk Kim * the plist contains a set of parens to allow variable-length lists. 339a9f12690SJung-uk Kim * These macros are used for both the debug and non-debug versions of the code. 340a9f12690SJung-uk Kim */ 341a9f12690SJung-uk Kim #define ACPI_INFO(plist) AcpiInfo plist 342a9f12690SJung-uk Kim #define ACPI_WARNING(plist) AcpiWarning plist 343a9f12690SJung-uk Kim #define ACPI_EXCEPTION(plist) AcpiException plist 344a9f12690SJung-uk Kim #define ACPI_ERROR(plist) AcpiError plist 345e8241eabSJung-uk Kim #define ACPI_BIOS_WARNING(plist) AcpiBiosWarning plist 346e8241eabSJung-uk Kim #define ACPI_BIOS_ERROR(plist) AcpiBiosError plist 347ca3cf4faSJung-uk Kim #define ACPI_DEBUG_OBJECT(obj,l,i) AcpiExDoDebugObject(obj,l,i) 348a9f12690SJung-uk Kim 349a9f12690SJung-uk Kim #else 350a9f12690SJung-uk Kim 351a9f12690SJung-uk Kim /* No error messages */ 352a9f12690SJung-uk Kim 353a9f12690SJung-uk Kim #define ACPI_INFO(plist) 354a9f12690SJung-uk Kim #define ACPI_WARNING(plist) 355a9f12690SJung-uk Kim #define ACPI_EXCEPTION(plist) 356a9f12690SJung-uk Kim #define ACPI_ERROR(plist) 357e8241eabSJung-uk Kim #define ACPI_BIOS_WARNING(plist) 358e8241eabSJung-uk Kim #define ACPI_BIOS_ERROR(plist) 359ca3cf4faSJung-uk Kim #define ACPI_DEBUG_OBJECT(obj,l,i) 360a9f12690SJung-uk Kim 361a9f12690SJung-uk Kim #endif /* ACPI_NO_ERROR_MESSAGES */ 362a9f12690SJung-uk Kim 363a9f12690SJung-uk Kim 364a9f12690SJung-uk Kim /* 365a9f12690SJung-uk Kim * Debug macros that are conditionally compiled 366a9f12690SJung-uk Kim */ 367a9f12690SJung-uk Kim #ifdef ACPI_DEBUG_OUTPUT 368a9f12690SJung-uk Kim 369a9f12690SJung-uk Kim /* 370a9f12690SJung-uk Kim * If ACPI_GET_FUNCTION_NAME was not defined in the compiler-dependent header, 371a9f12690SJung-uk Kim * define it now. This is the case where there the compiler does not support 372a9f12690SJung-uk Kim * a __FUNCTION__ macro or equivalent. 373a9f12690SJung-uk Kim */ 374a9f12690SJung-uk Kim #ifndef ACPI_GET_FUNCTION_NAME 375a9f12690SJung-uk Kim #define ACPI_GET_FUNCTION_NAME _AcpiFunctionName 376a9f12690SJung-uk Kim 377a9f12690SJung-uk Kim /* 378f8146b88SJung-uk Kim * The Name parameter should be the procedure name as a non-quoted string. 379a9f12690SJung-uk Kim * The function name is also used by the function exit macros below. 380a9f12690SJung-uk Kim * Note: (const char) is used to be compatible with the debug interfaces 381a9f12690SJung-uk Kim * and macros such as __FUNCTION__. 382a9f12690SJung-uk Kim */ 383a9f12690SJung-uk Kim #define ACPI_FUNCTION_NAME(Name) static const char _AcpiFunctionName[] = #Name; 384a9f12690SJung-uk Kim 385a9f12690SJung-uk Kim #else 386a9f12690SJung-uk Kim /* Compiler supports __FUNCTION__ (or equivalent) -- Ignore this macro */ 387a9f12690SJung-uk Kim 388a9f12690SJung-uk Kim #define ACPI_FUNCTION_NAME(Name) 389a9f12690SJung-uk Kim #endif /* ACPI_GET_FUNCTION_NAME */ 390a9f12690SJung-uk Kim 391a9f12690SJung-uk Kim /* 392a9f12690SJung-uk Kim * Common parameters used for debug output functions: 393a9f12690SJung-uk Kim * line number, function name, module(file) name, component ID 394a9f12690SJung-uk Kim */ 395efcc2a30SJung-uk Kim #define ACPI_DEBUG_PARAMETERS \ 396efcc2a30SJung-uk Kim __LINE__, ACPI_GET_FUNCTION_NAME, _AcpiModuleName, _COMPONENT 397efcc2a30SJung-uk Kim 398efcc2a30SJung-uk Kim /* Check if debug output is currently dynamically enabled */ 399efcc2a30SJung-uk Kim 400efcc2a30SJung-uk Kim #define ACPI_IS_DEBUG_ENABLED(Level, Component) \ 401efcc2a30SJung-uk Kim ((Level & AcpiDbgLevel) && (Component & AcpiDbgLayer)) 402a9f12690SJung-uk Kim 403a9f12690SJung-uk Kim /* 404a9f12690SJung-uk Kim * Master debug print macros 405a9f12690SJung-uk Kim * Print message if and only if: 406a9f12690SJung-uk Kim * 1) Debug print for the current component is enabled 407a9f12690SJung-uk Kim * 2) Debug error level or trace level for the print statement is enabled 408efcc2a30SJung-uk Kim * 409efcc2a30SJung-uk Kim * November 2012: Moved the runtime check for whether to actually emit the 410efcc2a30SJung-uk Kim * debug message outside of the print function itself. This improves overall 411efcc2a30SJung-uk Kim * performance at a relatively small code cost. Implementation involves the 412efcc2a30SJung-uk Kim * use of variadic macros supported by C99. 413efcc2a30SJung-uk Kim * 414efcc2a30SJung-uk Kim * Note: the ACPI_DO_WHILE0 macro is used to prevent some compilers from 415efcc2a30SJung-uk Kim * complaining about these constructs. On other compilers the do...while 416efcc2a30SJung-uk Kim * adds some extra code, so this feature is optional. 417a9f12690SJung-uk Kim */ 418efcc2a30SJung-uk Kim #ifdef ACPI_USE_DO_WHILE_0 419efcc2a30SJung-uk Kim #define ACPI_DO_WHILE0(a) do a while(0) 420a9f12690SJung-uk Kim #else 421efcc2a30SJung-uk Kim #define ACPI_DO_WHILE0(a) a 422efcc2a30SJung-uk Kim #endif 423efcc2a30SJung-uk Kim 424efcc2a30SJung-uk Kim /* DEBUG_PRINT functions */ 425efcc2a30SJung-uk Kim 4265ef50723SJung-uk Kim #ifndef COMPILER_VA_MACRO 4275ef50723SJung-uk Kim 4285ef50723SJung-uk Kim #define ACPI_DEBUG_PRINT(plist) AcpiDebugPrint plist 4295ef50723SJung-uk Kim #define ACPI_DEBUG_PRINT_RAW(plist) AcpiDebugPrintRaw plist 4305ef50723SJung-uk Kim 4315ef50723SJung-uk Kim #else 432efcc2a30SJung-uk Kim 433efcc2a30SJung-uk Kim /* Helper macros for DEBUG_PRINT */ 434efcc2a30SJung-uk Kim 435efcc2a30SJung-uk Kim #define ACPI_DO_DEBUG_PRINT(Function, Level, Line, Filename, Modulename, Component, ...) \ 436efcc2a30SJung-uk Kim ACPI_DO_WHILE0 ({ \ 437efcc2a30SJung-uk Kim if (ACPI_IS_DEBUG_ENABLED (Level, Component)) \ 438efcc2a30SJung-uk Kim { \ 439efcc2a30SJung-uk Kim Function (Level, Line, Filename, Modulename, Component, __VA_ARGS__); \ 440efcc2a30SJung-uk Kim } \ 441efcc2a30SJung-uk Kim }) 442efcc2a30SJung-uk Kim 443efcc2a30SJung-uk Kim #define ACPI_ACTUAL_DEBUG(Level, Line, Filename, Modulename, Component, ...) \ 444efcc2a30SJung-uk Kim ACPI_DO_DEBUG_PRINT (AcpiDebugPrint, Level, Line, \ 445efcc2a30SJung-uk Kim Filename, Modulename, Component, __VA_ARGS__) 446efcc2a30SJung-uk Kim 447efcc2a30SJung-uk Kim #define ACPI_ACTUAL_DEBUG_RAW(Level, Line, Filename, Modulename, Component, ...) \ 448efcc2a30SJung-uk Kim ACPI_DO_DEBUG_PRINT (AcpiDebugPrintRaw, Level, Line, \ 449efcc2a30SJung-uk Kim Filename, Modulename, Component, __VA_ARGS__) 450efcc2a30SJung-uk Kim 4515ef50723SJung-uk Kim #define ACPI_DEBUG_PRINT(plist) ACPI_ACTUAL_DEBUG plist 4525ef50723SJung-uk Kim #define ACPI_DEBUG_PRINT_RAW(plist) ACPI_ACTUAL_DEBUG_RAW plist 4535ef50723SJung-uk Kim 4545ef50723SJung-uk Kim #endif 4555ef50723SJung-uk Kim 456efcc2a30SJung-uk Kim 457efcc2a30SJung-uk Kim /* 458efcc2a30SJung-uk Kim * Function entry tracing 459efcc2a30SJung-uk Kim * 460efcc2a30SJung-uk Kim * The name of the function is emitted as a local variable that is 461efcc2a30SJung-uk Kim * intended to be used by both the entry trace and the exit trace. 462efcc2a30SJung-uk Kim */ 463efcc2a30SJung-uk Kim 464efcc2a30SJung-uk Kim /* Helper macro */ 465efcc2a30SJung-uk Kim 4666f4860fcSJung-uk Kim #define ACPI_TRACE_ENTRY(Name, Function, Type, Param) \ 467efcc2a30SJung-uk Kim ACPI_FUNCTION_NAME (Name) \ 4686f4860fcSJung-uk Kim Function (ACPI_DEBUG_PARAMETERS, (Type) (Param)) 469efcc2a30SJung-uk Kim 470efcc2a30SJung-uk Kim /* The actual entry trace macros */ 471efcc2a30SJung-uk Kim 472efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE(Name) \ 473efcc2a30SJung-uk Kim ACPI_FUNCTION_NAME(Name) \ 474efcc2a30SJung-uk Kim AcpiUtTrace (ACPI_DEBUG_PARAMETERS) 475efcc2a30SJung-uk Kim 476efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE_PTR(Name, Pointer) \ 4776f4860fcSJung-uk Kim ACPI_TRACE_ENTRY (Name, AcpiUtTracePtr, void *, Pointer) 478efcc2a30SJung-uk Kim 479efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE_U32(Name, Value) \ 4806f4860fcSJung-uk Kim ACPI_TRACE_ENTRY (Name, AcpiUtTraceU32, UINT32, Value) 481efcc2a30SJung-uk Kim 482efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE_STR(Name, String) \ 483f8146b88SJung-uk Kim ACPI_TRACE_ENTRY (Name, AcpiUtTraceStr, const char *, String) 484efcc2a30SJung-uk Kim 485efcc2a30SJung-uk Kim #define ACPI_FUNCTION_ENTRY() \ 486efcc2a30SJung-uk Kim AcpiUtTrackStackPtr() 487efcc2a30SJung-uk Kim 488efcc2a30SJung-uk Kim 489efcc2a30SJung-uk Kim /* 490efcc2a30SJung-uk Kim * Function exit tracing 491efcc2a30SJung-uk Kim * 492efcc2a30SJung-uk Kim * These macros include a return statement. This is usually considered 493efcc2a30SJung-uk Kim * bad form, but having a separate exit macro before the actual return 494efcc2a30SJung-uk Kim * is very ugly and difficult to maintain. 495efcc2a30SJung-uk Kim * 496efcc2a30SJung-uk Kim * One of the FUNCTION_TRACE macros above must be used in conjunction 497efcc2a30SJung-uk Kim * with these macros so that "_AcpiFunctionName" is defined. 4986f4860fcSJung-uk Kim * 4996f4860fcSJung-uk Kim * There are two versions of most of the return macros. The default version is 5006f4860fcSJung-uk Kim * safer, since it avoids side-effects by guaranteeing that the argument will 5016f4860fcSJung-uk Kim * not be evaluated twice. 5026f4860fcSJung-uk Kim * 5036f4860fcSJung-uk Kim * A less-safe version of the macros is provided for optional use if the 5046f4860fcSJung-uk Kim * compiler uses excessive CPU stack (for example, this may happen in the 5056f4860fcSJung-uk Kim * debug case if code optimzation is disabled.) 506efcc2a30SJung-uk Kim */ 507efcc2a30SJung-uk Kim 508efcc2a30SJung-uk Kim /* Exit trace helper macro */ 509efcc2a30SJung-uk Kim 5106f4860fcSJung-uk Kim #ifndef ACPI_SIMPLE_RETURN_MACROS 5116f4860fcSJung-uk Kim 5126f4860fcSJung-uk Kim #define ACPI_TRACE_EXIT(Function, Type, Param) \ 513efcc2a30SJung-uk Kim ACPI_DO_WHILE0 ({ \ 5146f4860fcSJung-uk Kim register Type _Param = (Type) (Param); \ 5156f4860fcSJung-uk Kim Function (ACPI_DEBUG_PARAMETERS, _Param); \ 5166f4860fcSJung-uk Kim return (_Param); \ 517efcc2a30SJung-uk Kim }) 518efcc2a30SJung-uk Kim 5196f4860fcSJung-uk Kim #else /* Use original less-safe macros */ 5206f4860fcSJung-uk Kim 5216f4860fcSJung-uk Kim #define ACPI_TRACE_EXIT(Function, Type, Param) \ 5226f4860fcSJung-uk Kim ACPI_DO_WHILE0 ({ \ 5236f4860fcSJung-uk Kim Function (ACPI_DEBUG_PARAMETERS, (Type) (Param)); \ 5246f4860fcSJung-uk Kim return (Param); \ 5256f4860fcSJung-uk Kim }) 5266f4860fcSJung-uk Kim 5276f4860fcSJung-uk Kim #endif /* ACPI_SIMPLE_RETURN_MACROS */ 5286f4860fcSJung-uk Kim 529efcc2a30SJung-uk Kim /* The actual exit macros */ 530efcc2a30SJung-uk Kim 531efcc2a30SJung-uk Kim #define return_VOID \ 532efcc2a30SJung-uk Kim ACPI_DO_WHILE0 ({ \ 533efcc2a30SJung-uk Kim AcpiUtExit (ACPI_DEBUG_PARAMETERS); \ 534efcc2a30SJung-uk Kim return; \ 535efcc2a30SJung-uk Kim }) 536efcc2a30SJung-uk Kim 537efcc2a30SJung-uk Kim #define return_ACPI_STATUS(Status) \ 5386f4860fcSJung-uk Kim ACPI_TRACE_EXIT (AcpiUtStatusExit, ACPI_STATUS, Status) 539efcc2a30SJung-uk Kim 540efcc2a30SJung-uk Kim #define return_PTR(Pointer) \ 5416f4860fcSJung-uk Kim ACPI_TRACE_EXIT (AcpiUtPtrExit, void *, Pointer) 542efcc2a30SJung-uk Kim 543f8146b88SJung-uk Kim #define return_STR(String) \ 544f8146b88SJung-uk Kim ACPI_TRACE_EXIT (AcpiUtStrExit, const char *, String) 545f8146b88SJung-uk Kim 546efcc2a30SJung-uk Kim #define return_VALUE(Value) \ 5476f4860fcSJung-uk Kim ACPI_TRACE_EXIT (AcpiUtValueExit, UINT64, Value) 548efcc2a30SJung-uk Kim 5499c48c75eSJung-uk Kim #define return_UINT32(Value) \ 5509c48c75eSJung-uk Kim ACPI_TRACE_EXIT (AcpiUtValueExit, UINT32, Value) 5519c48c75eSJung-uk Kim 5529c48c75eSJung-uk Kim #define return_UINT8(Value) \ 5539c48c75eSJung-uk Kim ACPI_TRACE_EXIT (AcpiUtValueExit, UINT8, Value) 554efcc2a30SJung-uk Kim 555efcc2a30SJung-uk Kim /* Conditional execution */ 556efcc2a30SJung-uk Kim 557efcc2a30SJung-uk Kim #define ACPI_DEBUG_EXEC(a) a 558efcc2a30SJung-uk Kim #define ACPI_DEBUG_ONLY_MEMBERS(a) a; 559efcc2a30SJung-uk Kim #define _VERBOSE_STRUCTURES 560efcc2a30SJung-uk Kim 561efcc2a30SJung-uk Kim 562efcc2a30SJung-uk Kim /* Various object display routines for debug */ 563efcc2a30SJung-uk Kim 564efcc2a30SJung-uk Kim #define ACPI_DUMP_STACK_ENTRY(a) AcpiExDumpOperand((a), 0) 565efcc2a30SJung-uk Kim #define ACPI_DUMP_OPERANDS(a, b ,c) AcpiExDumpOperands(a, b, c) 566efcc2a30SJung-uk Kim #define ACPI_DUMP_ENTRY(a, b) AcpiNsDumpEntry (a, b) 567efcc2a30SJung-uk Kim #define ACPI_DUMP_PATHNAME(a, b, c, d) AcpiNsDumpPathname(a, b, c, d) 568efcc2a30SJung-uk Kim #define ACPI_DUMP_BUFFER(a, b) AcpiUtDebugDumpBuffer((UINT8 *) a, b, DB_BYTE_DISPLAY, _COMPONENT) 569efcc2a30SJung-uk Kim 570fe0f0bbbSJung-uk Kim #define ACPI_TRACE_POINT(a, b, c, d) AcpiTracePoint (a, b, c, d) 571fe0f0bbbSJung-uk Kim 572efcc2a30SJung-uk Kim #else /* ACPI_DEBUG_OUTPUT */ 573a9f12690SJung-uk Kim /* 574a9f12690SJung-uk Kim * This is the non-debug case -- make everything go away, 575a9f12690SJung-uk Kim * leaving no executable debug code! 576a9f12690SJung-uk Kim */ 577a9f12690SJung-uk Kim #define ACPI_DEBUG_PRINT(pl) 578a9f12690SJung-uk Kim #define ACPI_DEBUG_PRINT_RAW(pl) 579efcc2a30SJung-uk Kim #define ACPI_DEBUG_EXEC(a) 580efcc2a30SJung-uk Kim #define ACPI_DEBUG_ONLY_MEMBERS(a) 581895f26a9SJung-uk Kim #define ACPI_FUNCTION_NAME(a) 582efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE(a) 583efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE_PTR(a, b) 584efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE_U32(a, b) 585efcc2a30SJung-uk Kim #define ACPI_FUNCTION_TRACE_STR(a, b) 586efcc2a30SJung-uk Kim #define ACPI_FUNCTION_ENTRY() 587efcc2a30SJung-uk Kim #define ACPI_DUMP_STACK_ENTRY(a) 588efcc2a30SJung-uk Kim #define ACPI_DUMP_OPERANDS(a, b, c) 589efcc2a30SJung-uk Kim #define ACPI_DUMP_ENTRY(a, b) 590efcc2a30SJung-uk Kim #define ACPI_DUMP_PATHNAME(a, b, c, d) 591efcc2a30SJung-uk Kim #define ACPI_DUMP_BUFFER(a, b) 592efcc2a30SJung-uk Kim #define ACPI_IS_DEBUG_ENABLED(Level, Component) 0 593fe0f0bbbSJung-uk Kim #define ACPI_TRACE_POINT(a, b, c, d) 594efcc2a30SJung-uk Kim 595efcc2a30SJung-uk Kim /* Return macros must have a return statement at the minimum */ 596efcc2a30SJung-uk Kim 597efcc2a30SJung-uk Kim #define return_VOID return 598efcc2a30SJung-uk Kim #define return_ACPI_STATUS(s) return(s) 599efcc2a30SJung-uk Kim #define return_PTR(s) return(s) 600f8628d5bSJung-uk Kim #define return_STR(s) return(s) 6019c48c75eSJung-uk Kim #define return_VALUE(s) return(s) 6029c48c75eSJung-uk Kim #define return_UINT8(s) return(s) 6039c48c75eSJung-uk Kim #define return_UINT32(s) return(s) 604a9f12690SJung-uk Kim 605a9f12690SJung-uk Kim #endif /* ACPI_DEBUG_OUTPUT */ 606a9f12690SJung-uk Kim 607a9f12690SJung-uk Kim 608a9f12690SJung-uk Kim #endif /* __ACOUTPUT_H__ */ 609