| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: acpi_debug.c,v 1.3 2010/06/30 07:42:36 jruoho Exp $ */ | | 1 | /* $NetBSD: acpi_debug.c,v 1.4 2010/10/27 14:39:26 gsutre Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi> | | 4 | * Copyright (c) 2010 Jukka Ruohonen <jruohonen@iki.fi> |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * | | 10 | * |
11 | * 1. Redistributions of source code must retain the above copyright | | 11 | * 1. Redistributions of source code must retain the above copyright |
12 | * notice, this list of conditions and the following disclaimer. | | 12 | * notice, this list of conditions and the following disclaimer. |
13 | * 2. Redistributions in binary form must reproduce the above copyright | | 13 | * 2. Redistributions in binary form must reproduce the above copyright |
14 | * notice, this list of conditions and the following disclaimer in the | | 14 | * notice, this list of conditions and the following disclaimer in the |
| @@ -17,27 +17,27 @@ | | | @@ -17,27 +17,27 @@ |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | | 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | | 20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 | * SUCH DAMAGE. | | 27 | * SUCH DAMAGE. |
28 | */ | | 28 | */ |
29 | #include <sys/cdefs.h> | | 29 | #include <sys/cdefs.h> |
30 | __KERNEL_RCSID(0, "$NetBSD: acpi_debug.c,v 1.3 2010/06/30 07:42:36 jruoho Exp $"); | | 30 | __KERNEL_RCSID(0, "$NetBSD: acpi_debug.c,v 1.4 2010/10/27 14:39:26 gsutre Exp $"); |
31 | | | 31 | |
32 | #include <sys/param.h> | | 32 | #include <sys/param.h> |
33 | #include <sys/sysctl.h> | | 33 | #include <sys/sysctl.h> |
34 | | | 34 | |
35 | #include <dev/acpi/acpireg.h> | | 35 | #include <dev/acpi/acpireg.h> |
36 | #include <dev/acpi/acpivar.h> | | 36 | #include <dev/acpi/acpivar.h> |
37 | | | 37 | |
38 | #include <prop/proplib.h> | | 38 | #include <prop/proplib.h> |
39 | | | 39 | |
40 | #ifdef ACPI_DEBUG | | 40 | #ifdef ACPI_DEBUG |
41 | | | 41 | |
42 | #define _COMPONENT ACPI_UTILITIES | | 42 | #define _COMPONENT ACPI_UTILITIES |
43 | ACPI_MODULE_NAME ("acpi_debug") | | 43 | ACPI_MODULE_NAME ("acpi_debug") |
| @@ -173,26 +173,27 @@ acpi_debug_create(void) | | | @@ -173,26 +173,27 @@ acpi_debug_create(void) |
173 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_ALL_COMPONENTS); | | 173 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_ALL_COMPONENTS); |
174 | | | 174 | |
175 | /* | | 175 | /* |
176 | * NetBSD specific components. | | 176 | * NetBSD specific components. |
177 | */ | | 177 | */ |
178 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_BUS_COMPONENT); | | 178 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_BUS_COMPONENT); |
179 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_ACAD_COMPONENT); | | 179 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_ACAD_COMPONENT); |
180 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_BAT_COMPONENT); | | 180 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_BAT_COMPONENT); |
181 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_BUTTON_COMPONENT); | | 181 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_BUTTON_COMPONENT); |
182 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_EC_COMPONENT); | | 182 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_EC_COMPONENT); |
183 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_LID_COMPONENT); | | 183 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_LID_COMPONENT); |
184 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_RESOURCE_COMPONENT); | | 184 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_RESOURCE_COMPONENT); |
185 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_TZ_COMPONENT); | | 185 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_TZ_COMPONENT); |
| | | 186 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_DISPLAY_COMPONENT); |
186 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_ALL_DRIVERS); | | 187 | ACPI_DEBUG_ADD(acpi_debug_layer_d, ACPI_ALL_DRIVERS); |
187 | | | 188 | |
188 | /* | | 189 | /* |
189 | * Debug levels. | | 190 | * Debug levels. |
190 | */ | | 191 | */ |
191 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_INIT); | | 192 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_INIT); |
192 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_DEBUG_OBJECT); | | 193 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_DEBUG_OBJECT); |
193 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_INFO); | | 194 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_INFO); |
194 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_ALL_EXCEPTIONS); | | 195 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_ALL_EXCEPTIONS); |
195 | | | 196 | |
196 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_INIT_NAMES); | | 197 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_INIT_NAMES); |
197 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_PARSE); | | 198 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_PARSE); |
198 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_LOAD); | | 199 | ACPI_DEBUG_ADD(acpi_debug_level_d, ACPI_LV_LOAD); |