6#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_RISCV_IMSIC_H_
7#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_RISCV_IMSIC_H_
14#define CSR_MTOPEI 0x35C
15#define CSR_MTOPI 0xFB0
16#define CSR_MISELECT 0x350
17#define CSR_MIREG 0x351
18#define CSR_SETEIPNUM_M 0xFC0
19#define CSR_CLREIPNUM_M 0xFC1
22#define MTOPEI_EIID_MASK 0x7FF
23#define MTOPEI_PRIO_SHIFT 16
24#define MTOPEI_PRIO_MASK (0xFF << MTOPEI_PRIO_SHIFT)
27#define ICSR_EIDELIVERY 0x70
28#define ICSR_EITHRESH 0x72
46#define EIDELIVERY_ENABLE BIT(0)
47#define EIDELIVERY_MODE_MMSI (0U << 29)
88#if defined(CONFIG_SMP)
95void z_riscv_imsic_secondary_init(
void);
int riscv_imsic_is_enabled(uint32_t eiid)
Check if an EIID is enabled in the CURRENT CPU's IMSIC.
void riscv_imsic_disable_eiid(uint32_t eiid)
Disable an EIID in the CURRENT CPU's IMSIC.
uint32_t riscv_imsic_claim(void)
void riscv_imsic_enable_eiid(uint32_t eiid)
Enable an EIID in the CURRENT CPU's IMSIC.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90