Trait r3_port_arm::InterruptController
source · pub trait InterruptController {
unsafe fn acknowledge_interrupt() -> Option<InterruptNum>;
unsafe fn end_interrupt(num: InterruptNum);
unsafe fn init() { ... }
}
Expand description
An abstract interface to an interrupt controller. Implemented by
use_gic!
.
Required Methods
sourceunsafe fn acknowledge_interrupt() -> Option<InterruptNum>
unsafe fn acknowledge_interrupt() -> Option<InterruptNum>
Get the currently signaled interrupt and acknowledge it.
Safety
This is only intended to be called by the port in an IRQ handler.
sourceunsafe fn end_interrupt(num: InterruptNum)
unsafe fn end_interrupt(num: InterruptNum)
Notify that the kernel has completed the processing of the specified interrupt.
Safety
This is only intended to be called by the port in an IRQ handler.
Provided Methods
sourceunsafe fn init()
unsafe fn init()
Initialize the driver. This will be called just before entering
PortToKernel::boot
.
Safety
This is only intended to be called by the port.