def in.index.chk

bend-osdev-acpi@0.1.1.0 · aml_interp.bend:1283

import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V
import bend-osdev-acpi@0.1.1.0/aml_host.bend as Hs

1283def in.index.chk(~H: Data, ~io: H -> Hs.AmlHostOp -> Result<&2, &2, E.AcpiError, Hs.AmlHostAns<H>>, r: Result<&2, &2, E.AcpiError, AmlRead<H>>, +base: V.AmlValue, +i: Nat, t: V.AmlValue, c: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
1284  match r:
1285    case Fail{e}:
1286      AmlMachine{AmlMFail{e}, c, fs, w}
1287    case Done{AmlRead{+w2, v}}:
1288      in.index.fits(~H, ~io, in.size.of(v), base, i, t, c, fs, w2)

Uses (15)

Used by (1)