Skip to main content

valid_io_port_access

Function valid_io_port_access 

Source
pub uninterp spec fn valid_io_port_access<T>(port: u16) -> bool
Expand description

Whether a T-typed access at port fits in the PIO byte range 0..=u16::MAX.

Uninterpreted: PortRead/PortWrite are user-implementable, so meaning comes only from the trusted widths in group_io_port_models. ISA-level fact only — no claim about device decoding, access permission, or ownership.

Used as a precondition for typed reads and writes.