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§
- Acpi
Info - Parsed ACPI information, populated by
init(). - Madt
IoApic - I/O APIC entry from the MADT.
- MadtIso
- Interrupt Source Override entry from the MADT.
- Madt
Local Apic - Local APIC entry from the MADT.
- Mcfg
Entry - PCIe Enhanced Configuration Mechanism entry from MCFG.
Functions§
- dump
- Dump parsed ACPI information to the console (for the
acpishell 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.