ACPI / debugger: Add IO interface to access debugger functionalities
authorLv Zheng <lv.zheng@intel.com>
Thu, 3 Dec 2015 02:43:00 +0000 (10:43 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Dec 2015 23:17:44 +0000 (00:17 +0100)
commit8cfb0cdf07e2c260c4d1a102bfec35183907834f
treeddc430d68c4cbed66c9cd008812b8885a55cd13d
parent8a2a2501a893bfce65af7098a1b0a61f14f95626
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>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/acpi_dbg.c [new file with mode: 0644]
drivers/acpi/bus.c
drivers/acpi/osl.c
include/acpi/platform/aclinux.h
include/acpi/platform/aclinuxex.h
include/linux/acpi_dbg.h [new file with mode: 0644]