pub struct PLIC {
base_addr: usize,
}
Fields
base_addr: usize
Implementations
sourceimpl PLIC
impl PLIC
fn priority_ptr(&self, intr_source_id: usize) -> *mut u32
fn hart_id_with_priority(
hart_id: usize,
target_priority: IntrTargetPriority
) -> usize
fn enable_ptr(
&self,
hart_id: usize,
target_priority: IntrTargetPriority,
intr_source_id: usize
) -> (*mut u32, usize)
fn threshold_ptr_of_hart_with_priority(
&self,
hart_id: usize,
target_priority: IntrTargetPriority
) -> *mut u32
fn claim_comp_ptr_of_hart_with_priority(
&self,
hart_id: usize,
target_priority: IntrTargetPriority
) -> *mut u32
pub unsafe fn new(base_addr: usize) -> Self
pub fn set_priority(&mut self, intr_source_id: usize, priority: u32)
pub fn get_priority(&mut self, intr_source_id: usize) -> u32
pub fn enable(
&mut self,
hart_id: usize,
target_priority: IntrTargetPriority,
intr_source_id: usize
)
pub fn disable(
&mut self,
hart_id: usize,
target_priority: IntrTargetPriority,
intr_source_id: usize
)
pub fn set_threshold(
&mut self,
hart_id: usize,
target_priority: IntrTargetPriority,
threshold: u32
)
pub fn get_threshold(
&mut self,
hart_id: usize,
target_priority: IntrTargetPriority
) -> u32
pub fn claim(
&mut self,
hart_id: usize,
target_priority: IntrTargetPriority
) -> u32
pub fn complete(
&mut self,
hart_id: usize,
target_priority: IntrTargetPriority,
completion: u32
)
Auto Trait Implementations
impl RefUnwindSafe for PLIC
impl Send for PLIC
impl Sync for PLIC
impl Unpin for PLIC
impl UnwindSafe for PLIC
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more