Skip to content

stdlib/acpiView source ↗

acpi

17 items · generated by scribe fromstdlib/acpi.fd· synced 2026-11-15

stdlib/acpi17 items

Contents

acpi_u8

pub fn acpi_u8(b: Vec<i64>, o: i64) -> i64 {

Parameters:

  • b: Vec<i64>
  • o: i64

Returns: i64

Defined at line 7


acpi_u16

pub fn acpi_u16(b: Vec<i64>, o: i64) -> i64 {

Parameters:

  • b: Vec<i64>
  • o: i64

Returns: i64

Defined at line 10


acpi_u32

pub fn acpi_u32(b: Vec<i64>, o: i64) -> i64 {

Parameters:

  • b: Vec<i64>
  • o: i64

Returns: i64

Defined at line 13


acpi_checksum

Checksum over b[o .. o+n): valid when the byte sum mod 256 is 0.

pub fn acpi_checksum(b: Vec<i64>, o: i64, n: i64) -> bool {

Parameters:

  • b: Vec<i64>
  • o: i64
  • n: i64

Returns: bool

Defined at line 21


Rsdp

pub struct Rsdp {

Fields:

NameType
validbool
revisioni64
rsdti64
xsdti64

Defined at line 33


rsdp_at

Validate an RSDP at offset o (“RSD PTR ” signature + checksum).

pub fn rsdp_at(b: Vec<i64>, o: i64) -> Rsdp {

Parameters:

  • b: Vec<i64>
  • o: i64

Returns: Rsdp

Defined at line 41


rsdp_find

Scan the BIOS search areas — 0x40E EBDA pointer then the 0xE0000 and legacy 0xF0000 ranges — for an RSDP. mem is the low 1 MiB of physical memory; returns the offset or -1.

pub fn rsdp_find(mem: Vec<i64>) -> i64 {

Parameters:

  • mem: Vec<i64>

Returns: i64

Defined at line 67


SdtHeader

pub struct SdtHeader {

Fields:

NameType
validbool
lengthi64
revisioni64
oemstr
oem_tablestr

Defined at line 96


sdt_at

SDT header at offset o; expected is the 4-char signature (“APIC”, “MCFG”, …). Returns valid=false on mismatch, bad checksum, or overrun of the byte buffer.

pub fn sdt_at(b: Vec<i64>, o: i64, expected: str) -> SdtHeader {

Parameters:

  • b: Vec<i64>
  • o: i64
  • expected: str

Returns: SdtHeader

Defined at line 117


sdt_entry_count

Number of 4-byte (rsdt) or 8-byte (xsdt) table pointers in the SDT whose header is at o. Entries sit after the 36-byte header.

pub fn sdt_entry_count(b: Vec<i64>, o: i64, xsdt: bool) -> i64 {

Parameters:

  • b: Vec<i64>
  • o: i64
  • xsdt: bool

Returns: i64

Defined at line 162


madt_entry_count

Number of interrupt-controller structure entries in a MADT at o.

pub fn madt_entry_count(madt: Vec<i64>) -> i64 {

Parameters:

  • madt: Vec<i64>

Returns: i64

Defined at line 184


madt_entry

Offset of MADT entry i (type at +0, length at +1), or -1.

pub fn madt_entry(madt: Vec<i64>, i: i64) -> i64 {

Parameters:

  • madt: Vec<i64>
  • i: i64

Returns: i64

Defined at line 196


madt_entries_of

Offsets of all MADT entries of a given type (0 = LAPIC, 1 = IOAPIC, 2 = ISO, 9 = x2APIC).

pub fn madt_entries_of(madt: Vec<i64>, want_type: i64) -> Vec<i64> {

Parameters:

  • madt: Vec<i64>
  • want_type: i64

Returns: Vec<i64>

Defined at line 212


McfgEntry

pub struct McfgEntry {

Fields:

NameType
basei64
segmenti64
bus_starti64
bus_endi64

Defined at line 228


mcfg_entry

ECAM window i of the MCFG table at o.

pub fn mcfg_entry(mcfg: Vec<i64>, i: i64) -> McfgEntry {

Parameters:

  • mcfg: Vec<i64>
  • i: i64

Returns: McfgEntry

Defined at line 236


mcfg_entry_count

Number of ECAM windows in a MCFG at o.

pub fn mcfg_entry_count(mcfg: Vec<i64>) -> i64 {

Parameters:

  • mcfg: Vec<i64>

Returns: i64

Defined at line 244


Generated by scribe, the Fides documentation generator