• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

patches/25-Apr-2025-243240

src/25-Apr-2025-3,0362,103

.cargo-checksum.jsonD25-Apr-20251.3 KiB11

Android.bpD25-Apr-2025584 2117

Cargo.tomlD25-Apr-2025954 3934

LICENSED25-Apr-202512.1 KiB223185

METADATAD25-Apr-2025386 2019

MODULE_LICENSE_APACHE2D25-Apr-20250

README.mdD25-Apr-20252.3 KiB4031

cargo_embargo.jsonD25-Apr-2025232 1515

rules.mkD25-Apr-2025775 2618

README.md

1# Acpi
2![Build Status](https://github.com/rust-osdev/acpi/actions/workflows/build.yml/badge.svg)
3[![Version](https://img.shields.io/crates/v/rsdp.svg?style=rounded-square)](https://crates.io/crates/rsdp/)
4[![Version](https://img.shields.io/crates/v/acpi.svg?style=rounded-square)](https://crates.io/crates/acpi/)
5[![Version](https://img.shields.io/crates/v/aml.svg?style=rounded-square)](https://crates.io/crates/aml/)
6
7### [Documentation (`rsdp`)](https://docs.rs/rsdp)
8### [Documentation (`acpi`)](https://docs.rs/acpi)
9### [Documentation (`aml`)](https://docs.rs/aml)
10
11A library to parse ACPI tables and AML, written in pure Rust. Designed to be easy to use from Rust bootloaders and kernels. The library is split into three crates:
12- `rsdp` parses the RSDP and can locate it on BIOS platforms. It does not depend on `alloc`, so is suitable to use from bootloaders without heap alloctors. All of its
13  functionality is reexported by `acpi`.
14- `acpi` parses the static tables (useful but not feature-complete). It can be used from environments that have allocators, and ones that don't (but with reduced functionality).
15- `aml` parses the AML tables (can be useful, far from feature-complete).
16
17There is also the `acpi-dumper` utility to easily dump a platform's ACPI tables (this currently only works on Linux).
18
19## Contributing
20Contributions are more than welcome! You can:
21- Write code - the ACPI spec is huge and there are bound to be things we don't support yet!
22- Improve our documentation!
23- Use the crates within your kernel and file bug reports and feature requests!
24
25Useful resources for contributing are:
26- [The ACPI specification](https://uefi.org/specifications)
27- [OSDev Wiki](https://wiki.osdev.org/ACPI)
28
29You can run the AML test suite with `cargo run --bin aml_tester -- -p tests`.
30You can run fuzz the AML parser with `cd aml && cargo fuzz run fuzz_target_1` (you may need to `cargo install cargo-fuzz`).
31
32## Licence
33This project is dual-licenced under:
34- Apache Licence, Version 2.0 ([LICENCE-APACHE](LICENCE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
35- MIT license ([LICENCE-MIT](LICENCE-MIT) or http://opensource.org/licenses/MIT)
36
37Unless you explicitly state otherwise, any contribution submitted for inclusion in this work by you,
38as defined in the Apache-2.0 licence, shall be dual licenced as above, without additional terms or
39conditions.
40