def AcpiExample.ssdt

bend-osdev-acpi@0.1.1.0 · example.bend:179

import bend-osdev-acpi@0.1.1.0/example.bend as Example
import Base
import bend-osdev-acpi@0.1.1.0/dsdt.bend as D
import bend-osdev-acpi@0.1.1.0/aml_term.bend as T

179# an SSDT that adds a device to a scope the DSDT defines
180def AcpiExample.ssdt() -> D.AcpiAml:
181  D.AcpiAml{ex.hdr("SSDT", 2), T.AmlT.encode([
182    T.AmlT.external("\\_SB.PCI0", 6, 0),
183    T.AmlT.scope("\\_SB.PCI0", [T.AmlT.device("GFX0", [T.AmlT.name("_ADR", ex.i(131072)), T.AmlT.method("_STA", 0n, False{}, [T.AmlT.ret(ex.i(15))])])])])}

Uses (12)

Used by (2)