kernel/acpica: Add tunables for editing the _OSI string list.
authorSascha Wildner <saw@online.de>
Tue, 1 Jul 2014 03:09:17 +0000 (05:09 +0200)
committerSascha Wildner <saw@online.de>
Tue, 1 Jul 2014 03:10:03 +0000 (05:10 +0200)
commitfa21302b0af829c8b2e952570346c75518468a1b
tree41d6e6892c605eb4f0734cb9a13fea3d883b04ea
parentcc694a4adfe3bad609fd893fc883e5e1f25d3bd6
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
share/man/man4/acpi.4
sys/dev/acpica/acpi.c