def ex.osys

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

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

145def ex.osys() -> T.AmlTerm:
146  T.AmlT.method("OSYS", 0n, False{}, [
147    T.AmlT.store(ex.i(2000), T.AmlT.local(0)),
148    T.AmlT.if_(T.AmlT.call("\\_OSI", [T.AmlT.str("Windows 2015")]), [T.AmlT.store(ex.i(2015), T.AmlT.local(0))]),
149    T.AmlT.if_(T.AmlT.call("\\_OSI", [T.AmlT.str("Linux")]), [T.AmlT.store(ex.i(1), T.AmlT.local(0))]),
150    T.AmlT.ret(T.AmlT.local(0))])

Uses (11)

Used by (1)