acpi-rs (vendored fork): - _REG opregion connect (ACPICA evrgnini.c): run \_SB._REG(space, 1) per installed handler after \_INI — firmware gates EC access behind this. Device-level _REG for each device holding an OpRegion of an installed space. Fills the last big TODO in initialize_namespace. - RegionSpace: add From<RegionSpace> for u8 (region-space ID for _REG). acpid: - LPIT parser BUG FIX: GAS (Generic Address Structure) is 12 bytes (4-byte header + 8-byte address); the parser previously read entry_trigger/residency/latency/counter_frequency 4 bytes early and required length>=48 instead of 56. Fixed offsets, added entry_trigger_space_id, and mwait_hint()/best_mwait_hint() for the FFH MWAIT hint. Tests rewritten with correct 56-byte layout. - Thermal active cooling: /scheme/acpi/thermal/<zone>/active evaluates _AC0.._AC9 and returns defined trip points (tenths of K). - ACPI PM timer: pm_timer_read() from FADT pm_timer_block; /scheme/acpi/pmtimer endpoint (3.579545 MHz). - HW-reduced ACPI: Fadt::is_hardware_reduced() (FADT bit 20); skip PM1/GPE setup on such platforms. - General GPE dispatch: enabled_active_gpes() + \_GPE._Lxx/_Exx method evaluation (evgpe.c acpi_ev_gpe_detect).
Acpi
Documentation
acpi is a Rust library for interacting with the Advanced Configuration and Power Interface, a
complex framework for power management and device discovery and configuration. ACPI is used on
modern x64, as well as some ARM and RISC-V platforms. An operating system needs to interact with
ACPI to correctly set up a platform's interrupt controllers, perform power management, and fully
support many other platform capabilities.
This crate provides a limited API that can be used without an allocator, for example for use
from a bootloader. This API will allow you to search for the RSDP, enumerate over the available
tables, and interact with the tables using their raw structures. All other functionality is
behind an alloc feature (enabled by default) and requires an allocator.
With an allocator, this crate provides a richer higher-level interfaces to the static tables, as well as a dynamic interpreter for AML - the bytecode format encoded in the DSDT and SSDT tables.
See the library documentation for example usage. You will almost certainly need to read portions of the ACPI Specification too (however, be aware that firmware often ships with ACPI tables that are not spec-compliant).
Licence
This project is dual-licenced under:
- Apache Licence, Version 2.0 (LICENCE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENCE-MIT or http://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution submitted for inclusion in this work by you, as defined in the Apache-2.0 licence, shall be dual licenced as above, without additional terms or conditions.