law mcfg_round_trip

bend-osdev-acpi@0.1.1.0 · LAWS_tables.bend:150

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/error.bend as E
import bend-osdev-acpi@0.1.1.0/header.bend as H
import bend-osdev-acpi@0.1.1.0/mcfg.bend as Mc

150# The MCFG's allocation structures, as stored
151law mcfg_round_trip:
152  for +h: H.AcpiHeader
153  for +h0: H.AcpiHeader
154  for +oem6b: {B.Octets.len(H.AcpiHeader.oem_id(h0)) == 6n : Nat}
155  for +tid8b: {B.Octets.len(H.AcpiHeader.oem_table_id(h0)) == 8n : Nat}
156  for +cid4b: {B.Octets.len(H.AcpiHeader.creator_id(h0)) == 4n : Nat}
157  for +es: List<&2, Mc.AcpiMcfgEntry>
158  {Mc.AcpiMcfg.of_sdt(H.AcpiSdt{h, B.Octets.drop(36n, Mc.AcpiMcfg.build(Mc.AcpiMcfg{h0, es}))}) == Done{Mc.AcpiMcfg{h, acpilaw.mcfg_fit(es)}} : Result<&2, &2, E.AcpiError, Mc.AcpiMcfg>}

Uses (47)

Used by (0)

No other definition uses this definition.