def AcpiMcfg.ecam_address
import bend-osdev-acpi@0.1.1.0/mcfg.bend as Mcfgimport Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
99# the physical address of a configuration register, if a structure covers
100# the segment and bus
101def AcpiMcfg.ecam_address(m: AcpiMcfg, +seg: U32, +bus: U32, +dev: U32, +fun: U32, +reg: U32) -> Maybe<&2, W.W64>:
102 mcfg.first(AcpiMcfg.entries(m), seg, bus, dev, fun, reg)