|
ReactOS 0.4.17-dev-683-g0dafdc5
|


Go to the source code of this file.
Typedefs | |
| typedef enum uacpi_vendor_interface | uacpi_vendor_interface |
| typedef enum uacpi_interface_kind | uacpi_interface_kind |
| typedef enum uacpi_host_interface | uacpi_host_interface |
| typedef uacpi_bool(* | uacpi_interface_handler) (const uacpi_char *name, uacpi_bool supported) |
| typedef enum uacpi_interface_action | uacpi_interface_action |
| typedef uacpi_bool(* uacpi_interface_handler) (const uacpi_char *name, uacpi_bool supported) |
Definition at line 72 of file osi.h.
| Enumerator | |
|---|---|
| UACPI_INTERFACE_ACTION_DISABLE | |
| UACPI_INTERFACE_ACTION_ENABLE | |
| Enumerator | |
|---|---|
| UACPI_INTERFACE_KIND_VENDOR | |
| UACPI_INTERFACE_KIND_FEATURE | |
| UACPI_INTERFACE_KIND_ALL | |
Definition at line 52 of file osi.h.
Definition at line 12 of file osi.h.
| uacpi_status uacpi_bulk_configure_interfaces | ( | uacpi_interface_action | action, |
| uacpi_interface_kind | kind | ||
| ) |
Bulk interface configuration, used to disable or enable all interfaces that match 'kind'.
This is generally only needed to work around buggy hardware, for example if requested from the kernel command line.
By default, all vendor strings (like "Windows 2000") are enabled, and all host features (like "3.0 Thermal Model") are disabled.
Definition at line 337 of file osi.c.
| uacpi_status uacpi_disable_host_interface | ( | uacpi_host_interface | type | ) |
| uacpi_status uacpi_enable_host_interface | ( | uacpi_host_interface | type | ) |
| uacpi_status uacpi_install_interface | ( | const uacpi_char * | name, |
| uacpi_interface_kind | kind | ||
| ) |
Install or uninstall an interface.
The interface kind is used for matching during interface enumeration in uacpi_bulk_configure_interfaces().
After installing an interface, all _OSI queries report it as supported.
Definition at line 173 of file osi.c.
| uacpi_vendor_interface uacpi_latest_queried_vendor_interface | ( | void | ) |
Returns the "latest" AML-queried _OSI vendor interface.
E.g. for the following AML code: _OSI("Windows 2021") _OSI("Windows 2000")
This function will return UACPI_VENDOR_INTERFACE_WINDOWS_11, since this is the latest version of the interface the code queried, even though the "Windows 2000" query came after "Windows 2021".
Definition at line 136 of file osi.c.
| uacpi_status uacpi_set_interface_query_handler | ( | uacpi_interface_handler | handler | ) |
Set a custom interface query (_OSI) handler.
This callback will be invoked for each _OSI query with the value passed in the _OSI, as well as whether the interface was detected as supported. The callback is able to override the return value dynamically or leave it untouched if desired (e.g. if it simply wants to log something or do internal bookkeeping of some kind).
| uacpi_status uacpi_uninstall_interface | ( | const uacpi_char * | name | ) |
Definition at line 226 of file osi.c.