ACPI / tools: Introduce ec_access.c - tool to access the EC
authorThomas Renninger <trenn@suse.de>
Mon, 7 Apr 2014 13:16:57 +0000 (15:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Apr 2014 10:36:56 +0000 (12:36 +0200)
commitd7cddbb07b18cc45e57420005850ca0326b9e074
tree7d640a12341524d0227c7829e5ec990dd378ad13
parentd1db0eea852497762cab43b905b879dfcd3b8987
ACPI / tools: Introduce ec_access.c - tool to access the EC

This userspace tool accesses the EC through the ec_sys debug driver
(through /sys/kernel/debug/ec/ec0/io).

The EC command/data registers cannot be accessed directly, because they
may be manipulated by the AML interpreter in parallel.

The ec_sys driver synchronizes user space (debug) access with the AML
interpreter.

Signed-off-by: Thomas Renninger <trenn@suse.de>
[rjw: Changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/acpi/Makefile
tools/power/acpi/tools/ec/Makefile [new file with mode: 0644]
tools/power/acpi/tools/ec/ec_access.c [new file with mode: 0644]
This page took 0.024778 seconds and 5 git commands to generate.