def AmlPci.address
import bend-osdev-acpi@0.1.1.0/aml_host.bend as AmlHostimport Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
39def AmlPci.address(seg: U32, bus: U32, dev: U32, fun: U32, off: U32) -> W.W64:
40 W.W64.from_parts(U32.or(U32.shln(U32.and(seg, 255), 24n), U32.or(U32.shln(U32.and(bus, 255), 16n), U32.and(dev, 65535))), U32.or(U32.shln(U32.and(fun, 65535), 16n), U32.and(off, 65535)))