Controller

Trait Controller 

Source
pub trait Controller: DriverGeneric {
    // Required methods
    fn read(&mut self, address: PciAddress, offset: u16) -> u32;
    fn write(&mut self, address: PciAddress, offset: u16, value: u32);
}

Required Methods§

Source

fn read(&mut self, address: PciAddress, offset: u16) -> u32

Performs a PCI read at address with offset.

§Safety

address and offset must be valid for PCI reads.

Source

fn write(&mut self, address: PciAddress, offset: u16, value: u32)

Performs a PCI write at address with offset.

§Safety

address and offset must be valid for PCI writes.

Implementors§