• Home
Name Date Size #Lines LOC

..--

src/06-Sep-2024-3,0362,103

.cargo_vcs_info.jsonD06-Sep-202498 66

Cargo.tomlD06-Sep-2024954 3934

Cargo.toml.origD06-Sep-2024436 2017

LICENSED06-Sep-202412.1 KiB223185

METADATAD06-Sep-2024386 2019

MODULE_LICENSE_APACHE2D06-Sep-20240

OWNERSD06-Sep-202445 21

README.mdD06-Sep-20242.3 KiB4031

rules.mkD06-Sep-2024537 2215

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