git: kernel/acpi: Add acpi_eval_osc() as a general function for running _OSCs.
swildner at crater.dragonflybsd.org
Tue Sep 16 06:44:42 PDT 2014
Author: Sascha Wildner <saw at online.de>
Date: Tue Sep 16 15:20:37 2014 +0200
kernel/acpi: Add acpi_eval_osc() as a general function for running _OSCs.
This is a hopefully true-to-the-spec implementation, as described in
chapter "6.2.11 _OSC (Operating System Capabilities)" of the 5.1 spec.
Handling of the query support flag could be better (i.e., we could
pass the returned buffer back to the caller), but we don't need that
This also fixes bugs in the the error handling which in our acpi_cpu
specific previous implementation didn't work at all, due to my mistakes.
Summary of changes:
sys/dev/acpica/acpi.c | 69 +++++++++++++++++++++++++++++++++++++++++++++++
sys/dev/acpica/acpi_cpu.c | 39 +++++----------------------
sys/dev/acpica/acpivar.h | 5 ++++
3 files changed, 81 insertions(+), 32 deletions(-)
DragonFly BSD source repository
More information about the Commits