⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module acpi

Module acpi 

Source
Expand description

ACPI table parser for x86_64.

Parses ACPI tables from UEFI firmware to discover hardware topology:

  • MADT (Multiple APIC Description Table): CPU enumeration, I/O APIC, ISA overrides
  • MCFG (PCI Express config space base addresses)

Not in scope: Full AML interpreter, ACPI namespace, runtime ACPI methods.

Structs§

AcpiInfo
Parsed ACPI information, populated by init().
MadtIoApic
I/O APIC entry from the MADT.
MadtIso
Interrupt Source Override entry from the MADT.
MadtLocalApic
Local APIC entry from the MADT.
McfgEntry
PCIe Enhanced Configuration Mechanism entry from MCFG.

Functions§

dump
Dump parsed ACPI information to the console (for the acpi shell command).
find_madt_cpus
Find MADT CPU topology data.
find_slit
Find SLIT table data. Returns a slice of the raw SLIT table if present.
find_srat
Find SRAT table data. Returns a slice of the raw SRAT table if present.
init
Initialize the ACPI subsystem by parsing tables from the RSDP address provided by the UEFI bootloader.
is_initialized
Check whether ACPI tables have been parsed.
with_acpi_info
Access the parsed ACPI info. Returns None if not initialized.