Files
RedBear-OS/drivers/acpi-rs
Red Bear OS 3ba37444a0 acpi-rs: add connect_op_regions() + repair initialize_namespace
Add public connect_op_regions() (ACPICA evrgnini.c): \_SB._REG(space, 1)
per installed handler space plus <device>._REG(space, 1) per device holding
an OpRegion of that space. initialize_namespace() now delegates to it and
its ACPICA-order opening (_INI, _SB._INI) is restored after 0c11c2b5
captured a broken intermediate edit. Completes the _REG wiring begun in
c3a27717 (which delivered the acpid-side call).
2026-07-24 10:01:12 +09:00
..

Acpi

Build Status Version

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:

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.