Struct acpi::sdt::SdtHeader[][src]

#[repr(C, packed)]pub struct SdtHeader {
    pub signature: Signature,
    pub length: u32,
    pub revision: u8,
    pub checksum: u8,
    pub oem_id: [u8; 6],
    pub oem_table_id: [u8; 8],
    pub oem_revision: u32,
    pub creator_id: u32,
    pub creator_revision: u32,
}

All SDTs share the same header, and are length bytes long. The signature tells us which SDT this is.

The ACPI Spec (Version 6.2) defines the following SDT signatures: “APIC” - Multiple APIC Descriptor Table (MADT) “BGRT” - Boot Graphics Resource Table “BERT” - Boot Error Record Table “CPEP” - Corrected Platform Error Polling Table “DSDT” - Differentiated System Descriptor Table “ECDT” - Embedded Controller Boot Resources Table “EINJ” - Error Injection Table “ERST” - Error Record Serialization Table “FACP” - Fixed ACPI Description Table (FADT) “FACS” - Firmware ACPI Control Structure “FPDT” - Firmware Performance Data Table “GTDT” - Generic Timer Description Table “HEST” - Hardware Error Source Table “HMAT” - Heterogeneous Memory Attributes Table “MSCT” - Maximum System Characteristics Table “MPST” - Memory Power State Table “NFIT” - NVDIMM Firmware Interface Table “OEMx” - Various OEM-specific tables “PDTT” - Platform Debug Trigger Table “PMTT” - Platform Memory Topology Table “PPTT” - Processor Properties Topology Table “PSDT” - Persistent System Description Table “RASF” - ACPI RAS Feature Table “RSDT” - Root System Descriptor Table “SBST” - Smart Battery Specification Table “SLIT” - System Locality Information Table “SRAT” - System Resource Affinity Table “SSDT” - Secondary System Description Table “XSDT” - eXtended System Descriptor Table

We’ve come across some more ACPI tables in the wild: “WAET” - Windows ACPI Emulated device Table

Fields

signature: Signaturelength: u32revision: u8checksum: u8oem_id: [u8; 6]oem_table_id: [u8; 8]oem_revision: u32creator_id: u32creator_revision: u32

Implementations

impl SdtHeader[src]

pub fn validate(&self, signature: Signature) -> Result<(), AcpiError>[src]

Check that: a) The signature matches the one given b) The checksum of the SDT

This assumes that the whole SDT is mapped.

pub fn oem_id<'a>(&'a self) -> &'a str[src]

pub fn oem_table_id<'a>(&'a self) -> &'a str[src]

Trait Implementations

impl Clone for SdtHeader[src]

impl Copy for SdtHeader[src]

Auto Trait Implementations

impl Send for SdtHeader

impl Sync for SdtHeader

impl Unpin for SdtHeader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.