dsdt.bend checks
raw source on the hub · import bend-osdev-acpi@0.1.0.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.0.0/bytes.bend as B import ./error.bend as E import ./header.bend as H
Types
type AcpiAml source · line 12 · raw
Data
AcpiAml@header:0x29fa0aa629b7afe02bc50bfd713bc39b/header.AcpiHeader -> @aml:0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets -> AcpiAml
Definitions
def AcpiAml.header source · line 15 · raw
@t:AcpiAml -> 0x29fa0aa629b7afe02bc50bfd713bc39b/header.AcpiHeader
def AcpiAml.aml source · line 20 · raw
@t:AcpiAml -> 0x9df7f91779a4a1c215bfa96cd0864601/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:0x29fa0aa629b7afe02bc50bfd713bc39b/header.AcpiSdt -> Result<&2, &2, 0x29fa0aa629b7afe02bc50bfd713bc39b/error.AcpiError, AcpiAml>
def aml.parse source · line 34 · raw
@r:Result<&2, &2, 0x29fa0aa629b7afe02bc50bfd713bc39b/error.AcpiError, 0x29fa0aa629b7afe02bc50bfd713bc39b/header.AcpiSdt> -> Result<&2, &2, 0x29fa0aa629b7afe02bc50bfd713bc39b/error.AcpiError, AcpiAml>
def AcpiAml.parse source · line 42 · raw
@+o:0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets -> Result<&2, &2, 0x29fa0aa629b7afe02bc50bfd713bc39b/error.AcpiError, AcpiAml>
a DSDT or SSDT at the front of o (checked; either signature)
def AcpiAml.parse_dsdt source · line 45 · raw
@+o:0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets -> Result<&2, &2, 0x29fa0aa629b7afe02bc50bfd713bc39b/error.AcpiError, AcpiAml>
def AcpiAml.build source · line 50 · raw
@t:AcpiAml -> 0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets
the table: the header's signature as given (DSDT or SSDT), length and checksum computed