type AmlValue
import bend-osdev-acpi@0.1.1.0/aml_value.bend as AmlValueimport Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
24type AmlValue is Data:
25 AmlUninit{}
26 AmlInt{v: W.W64}
27 # a String (without its NUL)
28 AmlStr{s: B.Octets}
29 AmlBuf{b: B.Octets}
30 AmlPkg{xs: List<&2, AmlValue>}
31 # an object reference: RefOf, Index, or a name inside a package
32 AmlRef{loc: AmlLoc}
33 # a named object that holds no data (a device, a method, a region, ...)
34 # used as an operand: its path and ObjectType code
35 AmlObj{path: String, kind: U32}