driver_interface::irq

Trait Driver

Source
pub trait Driver: DriverGeneric {
    // Required methods
    fn get_and_acknowledge_interrupt(&self) -> Option<usize>;
    fn end_interrupt(&self, irq: usize);
    fn irq_max_size(&self) -> usize;
    fn irq_enable(&mut self, irq: usize);
    fn irq_disable(&mut self, irq: usize);
    fn current_cpu_setup(&self);
    fn set_priority(&mut self, irq: usize, priority: usize);
    fn set_trigger(&mut self, irq: usize, triger: Trigger);
    fn set_bind_cpu(&mut self, irq: usize, cpu_list: &[u64]);
    fn fdt_parse_config(&self, prop_interupt: &[usize]) -> IrqProbeConfig;
}

Required Methods§

Source

fn get_and_acknowledge_interrupt(&self) -> Option<usize>

Source

fn end_interrupt(&self, irq: usize)

Source

fn irq_max_size(&self) -> usize

Source

fn irq_enable(&mut self, irq: usize)

Source

fn irq_disable(&mut self, irq: usize)

Source

fn current_cpu_setup(&self)

Source

fn set_priority(&mut self, irq: usize, priority: usize)

Source

fn set_trigger(&mut self, irq: usize, triger: Trigger)

Source

fn set_bind_cpu(&mut self, irq: usize, cpu_list: &[u64])

Source

fn fdt_parse_config(&self, prop_interupt: &[usize]) -> IrqProbeConfig

Implementors§