Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
patches/ | 25-Apr-2025 | - | 243 | 240 | ||
src/ | 25-Apr-2025 | - | 3,036 | 2,103 | ||
.cargo-checksum.json | D | 25-Apr-2025 | 1.3 KiB | 1 | 1 | |
Android.bp | D | 25-Apr-2025 | 584 | 21 | 17 | |
Cargo.toml | D | 25-Apr-2025 | 954 | 39 | 34 | |
LICENSE | D | 25-Apr-2025 | 12.1 KiB | 223 | 185 | |
METADATA | D | 25-Apr-2025 | 386 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 25-Apr-2025 | 0 | |||
README.md | D | 25-Apr-2025 | 2.3 KiB | 40 | 31 | |
cargo_embargo.json | D | 25-Apr-2025 | 232 | 15 | 15 | |
rules.mk | D | 25-Apr-2025 | 775 | 26 | 18 |
README.md
1# Acpi 2 3[](https://crates.io/crates/rsdp/) 4[](https://crates.io/crates/acpi/) 5[](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