:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / drivers / bus / acpi / include / acoutput.h
1 /******************************************************************************
2  *
3  * Name: acoutput.h -- debug output
4  *       $Revision$
5  *
6  *****************************************************************************/
7
8 /*
9  *  Copyright (C) 2000, 2001 R. Byron Moore
10  *
11  *  This program is free software; you can redistribute it and/or modify
12  *  it under the terms of the GNU General Public License as published by
13  *  the Free Software Foundation; either version 2 of the License, or
14  *  (at your option) any later version.
15  *
16  *  This program is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *  GNU General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with this program; if not, write to the Free Software
23  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
24  */
25
26 #ifndef __ACOUTPUT_H__
27 #define __ACOUTPUT_H__
28
29 /*
30  * Debug levels and component IDs.  These are used to control the
31  * granularity of the output of the DEBUG_PRINT macro -- on a per-
32  * component basis and a per-exception-type basis.
33  */
34
35 /* Component IDs -- used in the global "Debug_layer" */
36
37 #define ACPI_UTILITIES              0x00000001
38 #define ACPI_HARDWARE               0x00000002
39 #define ACPI_EVENTS                 0x00000003
40 #define ACPI_TABLES                 0x00000008
41 #define ACPI_NAMESPACE              0x00000010
42 #define ACPI_PARSER                 0x00000020
43 #define ACPI_DISPATCHER             0x00000040
44 #define ACPI_EXECUTER               0x00000080
45 #define ACPI_RESOURCES              0x00000100
46 #define ACPI_DEVICES                0x00000200
47 #define ACPI_POWER                  0x00000400
48
49
50 #define ACPI_BUS_MANAGER            0x00001000
51 #define ACPI_POWER_CONTROL          0x00002000
52 #define ACPI_EMBEDDED_CONTROLLER    0x00004000
53 #define ACPI_PROCESSOR_CONTROL      0x00008000
54 #define ACPI_AC_ADAPTER             0x00010000
55 #define ACPI_BATTERY                0x00020000
56 #define ACPI_BUTTON                 0x00040000
57 #define ACPI_SYSTEM                 0x00080000
58 #define ACPI_THERMAL_ZONE           0x00100000
59
60 #define ACPI_DEBUGGER               0x01000000
61 #define ACPI_OS_SERVICES            0x02000000
62 #define ACPI_ALL_COMPONENTS         0x01FFFFFF
63
64 #define ACPI_COMPONENT_DEFAULT      (ACPI_ALL_COMPONENTS)
65
66
67 #define ACPI_COMPILER               0x10000000
68 #define ACPI_TOOLS                  0x20000000
69
70
71 /* Exception level -- used in the global "Debug_level" */
72
73 #define ACPI_OK                     0x00000001
74 #define ACPI_INFO                   0x00000002
75 #define ACPI_WARN                   0x00000004
76 #define ACPI_ERROR                  0x00000008
77 #define ACPI_FATAL                  0x00000010
78 #define ACPI_DEBUG_OBJECT           0x00000020
79 #define ACPI_ALL                    0x0000003F
80
81
82 /* Trace level -- also used in the global "Debug_level" */
83
84 #define TRACE_PARSE                 0x00000100
85 #define TRACE_DISPATCH              0x00000200
86 #define TRACE_LOAD                  0x00000400
87 #define TRACE_EXEC                  0x00000800
88 #define TRACE_NAMES                 0x00001000
89 #define TRACE_OPREGION              0x00002000
90 #define TRACE_BFIELD                0x00004000
91 #define TRACE_TRASH                 0x00008000
92 #define TRACE_TABLES                0x00010000
93 #define TRACE_FUNCTIONS             0x00020000
94 #define TRACE_VALUES                0x00040000
95 #define TRACE_OBJECTS               0x00080000
96 #define TRACE_ALLOCATIONS           0x00100000
97 #define TRACE_RESOURCES             0x00200000
98 #define TRACE_IO                    0x00400000
99 #define TRACE_INTERRUPTS            0x00800000
100 #define TRACE_USER_REQUESTS         0x01000000
101 #define TRACE_PACKAGE               0x02000000
102 #define TRACE_MUTEX                 0x04000000
103 #define TRACE_INIT                  0x08000000
104
105 #define TRACE_ALL                   0x0FFFFF00
106
107
108 /* Exceptionally verbose output -- also used in the global "Debug_level" */
109
110 #define VERBOSE_AML_DISASSEMBLE     0x10000000
111 #define VERBOSE_INFO                0x20000000
112 #define VERBOSE_TABLES              0x40000000
113 #define VERBOSE_EVENTS              0x80000000
114
115 #define VERBOSE_ALL                 0xF0000000
116
117
118 /* Defaults for Debug_level, debug and normal */
119
120 #define DEBUG_DEFAULT               (ACPI_OK | ACPI_WARN | ACPI_ERROR | ACPI_DEBUG_OBJECT)
121 #define NORMAL_DEFAULT              (ACPI_OK | ACPI_WARN | ACPI_ERROR | ACPI_DEBUG_OBJECT)
122 #define DEBUG_ALL                   (VERBOSE_AML_DISASSEMBLE | TRACE_ALL | ACPI_ALL)
123
124 /* Misc defines */
125
126 #define HEX                         0x01
127 #define ASCII                       0x02
128 #define FULL_ADDRESS                0x04
129 #define CHARS_PER_LINE              16          /* used in Dump_buf function */
130
131
132 #endif /* __ACOUTPUT_H__ */