aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-12-02 21:43:00 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-12-14 18:17:44 -0500
commit8cfb0cdf07e2c260c4d1a102bfec35183907834f (patch)
treeddc430d68c4cbed66c9cd008812b8885a55cd13d /include/acpi
parent8a2a2501a893bfce65af7098a1b0a61f14f95626 (diff)
ACPI / debugger: Add IO interface to access debugger functionalities
This patch adds /sys/kernel/debug/acpi/acpidbg, which can be used by userspace programs to access ACPICA debugger functionalities. Known issue: 1. IO flush support acpi_os_notify_command_complete() and acpi_os_wait_command_ready() can be used by acpi_dbg module to implement .flush() filesystem operation. While this patch doesn't go that far. It then becomes userspace tool's duty now to flush old commands before executing new batch mode commands. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/platform/aclinux.h2
-rw-r--r--include/acpi/platform/aclinuxex.h10
2 files changed, 0 insertions, 12 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 69dbae61ab49..e21857d2ec05 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -152,8 +152,6 @@
152#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_writable 152#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_writable
153#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize_command_signals 153#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize_command_signals
154#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate_command_signals 154#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate_command_signals
155#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_wait_command_ready
156#define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_notify_command_complete
157 155
158/* 156/*
159 * OSL interfaces used by utilities 157 * OSL interfaces used by utilities
diff --git a/include/acpi/platform/aclinuxex.h b/include/acpi/platform/aclinuxex.h
index 673fdf4663fd..ceea026b2c0b 100644
--- a/include/acpi/platform/aclinuxex.h
+++ b/include/acpi/platform/aclinuxex.h
@@ -138,16 +138,6 @@ static inline void acpi_os_terminate_command_signals(void)
138{ 138{
139} 139}
140 140
141static inline acpi_status acpi_os_wait_command_ready(void)
142{
143 return AE_ERROR;
144}
145
146static inline acpi_status acpi_os_notify_command_complete(void)
147{
148 return AE_ERROR;
149}
150
151/* 141/*
152 * OSL interfaces added by Linux 142 * OSL interfaces added by Linux
153 */ 143 */