Go to the source code of this file.
PLIC driver implementation.
Implements the functions defined in plic.h for controlling PLIC input/output and interrupts on the EfxSapphireSoC platform.
Definition in file plic.c.
Macros | |
| #define | PLIC ((plic_hwreg_t *)SYSTEM_PLIC_CTRL) |
Functions | |
| u32 | plic_claimExtIRQ_m () |
| Initialize the PLIC instance with a base address. Calculates the internal pointers for the register blocks. This can called once during system initialization -> BSP_init something like that !! | |
| void | plic_releaseExtIRQ_m (u32 gateway) |
| Release ID source from external IRQ. | |
| void | plic_set_priority (plic_instance_t *inst) |
| Set priority value to PLIC register. | |
| u32 | plic_get_priority (plic_instance_t *inst) |
| Read value from PLIC register. | |
| void | plic_set_enable (plic_instance_t *inst) |
| Set enable value to PLIC register. | |
| void | plic_set_threshold (plic_instance_t *inst) |
| Set threshold value to PLIC register. | |
| u32 | plic_get_threshold (plic_instance_t *inst) |
| Read value from PLIC register. | |
| u32 | plic_claim (plic_instance_t *inst) |
| void | plic_release (plic_instance_t *inst) |
| void | plic_applyConfig (plic_instance_t *inst) |
| Apply stored PLIC configuration to hardware. | |
| #define PLIC ((plic_hwreg_t *)SYSTEM_PLIC_CTRL) |
| u32 plic_claim | ( | plic_instance_t * | inst | ) |
| void plic_release | ( | plic_instance_t * | inst | ) |