git: kernel/acpi: Add acpi_eval_osc() as a general function for running _OSCs.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Sep 16 06:44:42 PDT 2014


commit 5ca62c87746f34c2ef6f42d90ea577a1de1ad43a
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
    yet.
    
    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.
    
    In-discussion-with: sephe

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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ca62c87746f34c2ef6f42d90ea577a1de1ad43a


-- 
DragonFly BSD source repository



More information about the Commits mailing list