Fadt.fadt.legacy: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/fadt.bend as Fadt Lines 147-166 of bend-osdev-acpi@0.1.1.0/fadt.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/fadt.bend&start_line=147&end_line=166 import Base import bend-osdev-acpi@0.1.1.0/gas.bend as G def fadt.legacy(b: AcpiFadtBlocks, l: AcpiFadtLens, k: AcpiFadtBlock) -> G.AcpiGas: match b l: case AcpiFadtBlocks{e1a, e1b, c1a, c1b, c2, tm, g0, g1} AcpiFadtLens{le, lc, l2, lt, lg0, lg1, gb}: match k: case AcpiFadtPm1aEvt{}: G.AcpiGas.io_block(e1a, le) case AcpiFadtPm1bEvt{}: G.AcpiGas.io_block(e1b, le) case AcpiFadtPm1aCnt{}: G.AcpiGas.io_block(c1a, lc) case AcpiFadtPm1bCnt{}: G.AcpiGas.io_block(c1b, lc) case AcpiFadtPm2Cnt{}: G.AcpiGas.io_block(c2, l2) case AcpiFadtPmTmr{}: G.AcpiGas.io_block(tm, lt) case AcpiFadtGpe0{}: G.AcpiGas.io_block(g0, lg0) case AcpiFadtGpe1{}: G.AcpiGas.io_block(g1, lg1) Uses (5): https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/fadt.bend&name=AcpiFadtBlock https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/fadt.bend&name=AcpiFadtBlocks https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/fadt.bend&name=AcpiFadtLens https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/gas.bend&name=AcpiGas https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/gas.bend&name=AcpiGas.io_block