git: kernel/acpica: Add tunables for editing the _OSI string list.

Sascha Wildner swildner at crater.dragonflybsd.org
Mon Jun 30 20:11:33 PDT 2014


commit fa21302b0af829c8b2e952570346c75518468a1b
Author: Sascha Wildner <saw at online.de>
Date:   Tue Jul 1 05:09:17 2014 +0200

    kernel/acpica: Add tunables for editing the _OSI string list.
    
    ACPICA has a built-in list of supported _OSI strings. A query on any of
    those strings returns TRUE. It is meant to help the ASL code determine
    which OS it is dealing with. See AcpiDefaultSupportedInterfaces[] in
    utosi.c for the full list.
    
    This commit adds two tunables, hw.acpi.{install,remove}_interface,
    for adding to and removing from that list. Their contents are comma
    separated and leading white space is ignored.
    
    Examples:
    
    # Add "FreeBSD" to the list of supported _OSI strings,
    # i.e. _OSI("FreeBSD") from ASL will return TRUE.
    #
    hw.acpi.install_interface="FreeBSD"
    
    # Remove "Windows 2000" and "Windows 2001" from the list
    # of supported _OSI strings, i.e. _OSI("Windows 2000") and
    # _OSI("Windows 2001") from ASL will return FALSE.
    #
    hw.acpi.remove_interface="Windows 2000, Windows 2001"
    
    Taken-from: FreeBSD

Summary of changes:
 share/man/man4/acpi.4 |  26 ++++++++++++-
 sys/dev/acpica/acpi.c | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 131 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fa21302b0af829c8b2e952570346c75518468a1b


-- 
DragonFly BSD source repository


More information about the Commits mailing list