def AmlSystem.new

bend-osdev-acpi@0.1.1.0 · aml.bend:59

import bend-osdev-acpi@0.1.1.0/aml.bend as Aml
import Base
import bend-osdev-acpi@0.1.1.0/aml_ns.bend as S
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as I

59# a system with the initial namespace (\_SB_, \_OSI, ...) and this host
60def AmlSystem.new(-H: Data, opts: I.AmlOptions, +wide: Bool, host: H) -> AmlSystem<H>:
61  match opts:
62    case I.AmlOptions{+osi, +os, +rev}:
63      AmlSystem{I.AmlOptions{osi, os, rev}, wide, S.AmlNs.initial(os, rev), host}

Uses (4)

Used by (2)