def acpilaw.mcfg_fit
bend-osdev-acpi@0.1.1.0 · LAWS_tables.bend:119
import bend-osdev-acpi@0.1.1.0/LAWS_tables.bend as LAWSTables
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-acpi@0.1.1.0/mcfg.bend as Mc
119
120
121def acpilaw.mcfg_fit(es: List<&2, Mc.AcpiMcfgEntry>) -> List<&2, Mc.AcpiMcfgEntry>:
122 match es:
123 case Nil{}:
124 Nil{}
125 case Con{e, t}:
126 match e:
127 case Mc.AcpiMcfgEntry{b, s, lo, hi}:
128 Con{Mc.AcpiMcfgEntry{b, B.low16(s), B.byte(lo), B.byte(hi)}, acpilaw.mcfg_fit(t)}