~/bend-docscommunity

dsdt.bend checks

raw source on the hub · import bend-osdev-acpi@0.1.1.0/dsdt.bend as Dsdt

bend-osdev-acpi, dsdt.bend: the Differentiated and Secondary System Description Tables, "DSDT" and "SSDT" (ACPI 6.5, sections 5.2.11.1 and 5.2.11.2): a header, then a definition block of AML byte code (chapter 20), kept here as its bytes; aml_*.bend read and run it. A definition block whose header revision is below 2 uses 32-bit integers (chapter 19, DefinitionBlock: ComplianceRevision), 64-bit otherwise.

4 imports
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import ./error.bend as E
import ./header.bend as H

Types

type AcpiAml source · line 12 · raw

Data

Definitions

def AcpiAml.header source · line 15 · raw

@t:AcpiAml -> 0x62173b4e9e82dde7465c7018262f0baa/header.AcpiHeader

def AcpiAml.aml source · line 20 · raw

@t:AcpiAml -> 0xe0217e1ab38629fddf738452c1f2a82e/bytes.Octets

def AcpiAml.wide source · line 26 · raw

@t:AcpiAml -> Bool

true when the block's integers are 64 bits wide

def AcpiAml.of_sdt source · line 29 · raw

@t:0x62173b4e9e82dde7465c7018262f0baa/header.AcpiSdt -> Result<&2, &2, 0x62173b4e9e82dde7465c7018262f0baa/error.AcpiError, AcpiAml>

def aml.parse source · line 34 · raw

@r:Result<&2, &2, 0x62173b4e9e82dde7465c7018262f0baa/error.AcpiError, 0x62173b4e9e82dde7465c7018262f0baa/header.AcpiSdt> -> Result<&2, &2, 0x62173b4e9e82dde7465c7018262f0baa/error.AcpiError, AcpiAml>

def AcpiAml.parse source · line 42 · raw

@+o:0xe0217e1ab38629fddf738452c1f2a82e/bytes.Octets -> Result<&2, &2, 0x62173b4e9e82dde7465c7018262f0baa/error.AcpiError, AcpiAml>

a DSDT or SSDT at the front of o (checked; either signature)

def AcpiAml.parse_dsdt source · line 45 · raw

@+o:0xe0217e1ab38629fddf738452c1f2a82e/bytes.Octets -> Result<&2, &2, 0x62173b4e9e82dde7465c7018262f0baa/error.AcpiError, AcpiAml>

def AcpiAml.build source · line 50 · raw

@t:AcpiAml -> 0xe0217e1ab38629fddf738452c1f2a82e/bytes.Octets

the table: the header's signature as given (DSDT or SSDT), length and checksum computed