Struct AplicDomain

Source
#[repr(C)]
pub struct AplicDomain {
Show 18 fields pub domaincfg: Volatile<u32>, pub sourcecfg: Volatile<[u32; 1023]>, pub m_msi_addr_cfg: Volatile<u32>, pub m_msi_addr_cfg_hi: Volatile<u32>, pub s_msi_addr_cfg: Volatile<u32>, pub s_msi_addr_cfg_hi: Volatile<u32>, pub setip: Volatile<[u32; 32]>, pub setipnum: Volatile<u32>, pub clear_ip: Volatile<[u32; 32]>, pub clear_ip_num: Volatile<u32>, pub set_ie: Volatile<[u32; 32]>, pub set_ie_num: Volatile<u32>, pub clear_ie: Volatile<[u32; 32]>, pub clear_ie_num: Volatile<u32>, pub set_ip_num_le: Volatile<u32>, pub set_ip_num_be: Volatile<u32>, pub gen_msi: Volatile<u32>, pub target: Volatile<[u32; 1023]>, /* private fields */
}
Expand description

The Advanced Platform-Level Interrupt Controller (APLIC) is a component of the Advanced Interrupt Architecture that translates traditionally wired interrupts into MSIs that can be distributed to harts’ IMSICs.

Fields§

§domaincfg: Volatile<u32>§sourcecfg: Volatile<[u32; 1023]>§m_msi_addr_cfg: Volatile<u32>§m_msi_addr_cfg_hi: Volatile<u32>§s_msi_addr_cfg: Volatile<u32>§s_msi_addr_cfg_hi: Volatile<u32>§setip: Volatile<[u32; 32]>§setipnum: Volatile<u32>§clear_ip: Volatile<[u32; 32]>§clear_ip_num: Volatile<u32>§set_ie: Volatile<[u32; 32]>§set_ie_num: Volatile<u32>§clear_ie: Volatile<[u32; 32]>§clear_ie_num: Volatile<u32>§set_ip_num_le: Volatile<u32>§set_ip_num_be: Volatile<u32>§gen_msi: Volatile<u32>§target: Volatile<[u32; 1023]>

Implementations§

Source§

impl AplicDomain

Source

pub fn init(&self)

Source

pub fn set_msi_address(&self, address: usize)

Source

pub fn set_target_msi(&self, irq: u32, message: u32)

Source

pub fn set_source_cfg(&self, irq: u32, mode: SourceMode)

Source

pub fn enable_interrupt(&self, irq: u32)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.