aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/thinkpad_acpi.h
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2007-04-21 10:08:30 -0400
committerLen Brown <len.brown@intel.com>2007-04-21 23:30:33 -0400
commit132ce09123755ec5e3d3a8ae22f4f753c3baac97 (patch)
treed5ed5b7216cf0743efe6659da74877fffbda866d /drivers/misc/thinkpad_acpi.h
parentf51d1a39840ae5e8678d702ab57377c611fc3826 (diff)
ACPI: thinkpad-acpi: add debug mode
Add a debug mode parameter and verbose debug mode Kconfig option. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/thinkpad_acpi.h')
-rw-r--r--drivers/misc/thinkpad_acpi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h
index 02a297e0525f..b2348d7a07c4 100644
--- a/drivers/misc/thinkpad_acpi.h
+++ b/drivers/misc/thinkpad_acpi.h
@@ -74,6 +74,18 @@
74#define enabled(status,bit) ((status) & (1 << (bit)) ? "enabled" : "disabled") 74#define enabled(status,bit) ((status) & (1 << (bit)) ? "enabled" : "disabled")
75#define strlencmp(a,b) (strncmp((a), (b), strlen(b))) 75#define strlencmp(a,b) (strncmp((a), (b), strlen(b)))
76 76
77/* Debugging */
78#define TPACPI_DBG_ALL 0xffff
79#define dbg_printk(a_dbg_level, format, arg...) \
80 do { if (dbg_level & a_dbg_level) \
81 printk(IBM_DEBUG "%s: " format, __func__ , ## arg); } while (0)
82#ifdef CONFIG_THINKPAD_ACPI_DEBUG
83#define vdbg_printk(a_dbg_level, format, arg...) \
84 dbg_printk(a_dbg_level, format, ## arg)
85#else
86#define vdbg_printk(a_dbg_level, format, arg...)
87#endif
88
77/* ACPI HIDs */ 89/* ACPI HIDs */
78#define IBM_HKEY_HID "IBM0068" 90#define IBM_HKEY_HID "IBM0068"
79#define IBM_PCI_HID "PNP0A03" 91#define IBM_PCI_HID "PNP0A03"
@@ -112,6 +124,7 @@ static char *next_cmd(char **cmds);
112 124
113/* Module */ 125/* Module */
114static int experimental; 126static int experimental;
127static u32 dbg_level;
115static char *ibm_thinkpad_ec_found; 128static char *ibm_thinkpad_ec_found;
116 129
117static char* check_dmi_for_ec(void); 130static char* check_dmi_for_ec(void);