pub struct PLIC {
base_addr: usize,
}
Fields§
§base_addr: usize
Implementations§
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.