Skip to main content

acpi_lite/
lib.rs

1// Copyright 2026 The Fuchsia Authors
2//
3// Use of this source code is governed by a MIT-style
4// license that can be found in the LICENSE file or at
5// https://opensource.org/licenses/MIT
6
7#![no_std]
8
9#[cfg(any(test, fuzz))]
10extern crate std;
11
12#[cfg(fuzz)]
13pub mod fuzzers;
14#[cfg(any(test, fuzz))]
15pub mod test_data;
16#[cfg(any(test, fuzz))]
17pub mod test_util;
18#[cfg(test)]
19pub mod tests;
20
21#[macro_use]
22mod binary_reader;
23mod acpi_lite;
24mod apic;
25mod debug_port;
26mod numa;
27pub mod structures;
28
29pub use acpi_lite::{
30    AcpiParser, AcpiParserInterface, AcpiTable, PhysMemReader, acpi_checksum, acpi_checksum_valid,
31    get_table_by_signature, get_table_by_type, validate_rsdt, validate_xsdt,
32};
33pub use apic::{
34    enumerate_io_apic_isa_overrides, enumerate_io_apics, enumerate_processor_local_apics,
35};
36pub use binary_reader::BinaryReader;
37pub use debug_port::{
38    AcpiDebugPortDescriptor, AcpiDebugPortType, get_debug_port, parse_acpi_dbg2_table,
39};
40pub use numa::{
41    AcpiNumaDomain, AcpiNumaRegion, K_ACPI_MAX_NUMA_REGIONS, enumerate_cpu_numa_pairs,
42    enumerate_cpu_numa_pairs_from_srat,
43};