Trait CpuBusProvider

Source
pub trait CpuBusProvider: BusLine {
    // Required methods
    fn pending_interrupts(&self) -> bool;
    fn should_run_dma(&self) -> bool;
}
Expand description

A specific Bus that is connected to the CPU directly, where it can send Interrupt messages to it and also request DMA access.

The trait only tells if the device is requesting for DMA, then the implementer should handle the DMA operation as needed.

It’s done like that so that the CPU just need to know when it should be interrupted and allow the other components to run the DMA, here, the CPU doesn’t run the DMA itself.

Required Methods§

Implementors§