type AmlUnit
import bend-osdev-acpi@0.1.1.0/aml_field.bend as AmlFieldimport Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
58# one unit: its address, and the part of the field it holds
59type AmlUnit is Data:
60 # addr: the unit's address; s: the field's first bit in it; n: how many
61 # field bits it holds; d: where they go in the field's value
62 AmlUnit{addr: W.W64, s: Nat, n: Nat, d: Nat, fits: Bool}