Skip to main content

PciBusCfgAccessCallbacks

Trait PciBusCfgAccessCallbacks 

Source
pub trait PciBusCfgAccessCallbacks {
    // Required methods
    fn read(
        &mut self,
        addr: PciConfigAddress,
        value: ByteEnabledDwordRead<'_>,
    ) -> IoResult;
    fn write(
        &mut self,
        addr: PciConfigAddress,
        value: ByteEnabledDwordWrite,
    ) -> IoResult;
}
Expand description

Callback trait for the PciBusCfgAccessHandler for bus-specific operations.

Required Methods§

Source

fn read( &mut self, addr: PciConfigAddress, value: ByteEnabledDwordRead<'_>, ) -> IoResult

Dispatches a read to the downstream config-space target.

Source

fn write( &mut self, addr: PciConfigAddress, value: ByteEnabledDwordWrite, ) -> IoResult

Dispatches a write to the downstream config-space target.

Implementors§