Trait zcore_drivers::scheme::Scheme
source · [−]pub trait Scheme: SchemeUpcast + Send + Sync {
fn name(&self) -> &str;
fn handle_irq(&self, _irq_num: usize) { ... }
}
Expand description
Common of all device drivers.
Every device must says its name and handles interrupts.
Required Methods
Provided Methods
fn handle_irq(&self, _irq_num: usize)
fn handle_irq(&self, _irq_num: usize)
Handles an interrupt.
Implementors
impl Scheme for UefiDisplay
impl Scheme for Apic
impl Scheme for MockDisplay
Available on crate feature
mock
only.impl Scheme for MockKeyboard
Available on crate feature
mock
only.impl Scheme for MockMouse
Available on crate feature
mock
only.impl Scheme for MockUart
Available on crate feature
mock
only.impl Scheme for E1000Interface
impl Scheme for LoopbackInterface
impl Scheme for NvmeInterface
impl Scheme for BufferedUart
impl Scheme for Uart16550Pmio
impl Scheme for UartAllwinner
impl<'a> Scheme for VirtIoBlk<'a>
Available on crate feature
virtio
only.impl<'a> Scheme for VirtIoConsole<'a>
Available on crate feature
virtio
only.impl<'a> Scheme for VirtIoGpu<'a>
Available on crate feature
virtio
only.impl<'a> Scheme for VirtIoInput<'a>
Available on crate feature
virtio
only.