Trait pci::PortOps [] [src]

pub trait PortOps {
    fn read8(&self, port: u16) -> u8;
    fn read16(&self, port: u16) -> u16;
    fn read32(&self, port: u16) -> u32;
    fn write8(&self, port: u16, val: u8);
    fn write16(&self, port: u16, val: u16);
    fn write32(&self, port: u16, val: u32);
}

A trait defining port I/O operations.

All port I/O operations are parametric over this trait. This allows operating systems to use this crate without modifications, by suitably instantiating this trait with their own primitives.

Required Methods

Implementors