|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
RISC-V APLIC direct delivery mode driver API. More...
Go to the source code of this file.
Functions | |
| int | riscv_aplic_direct_mode_enable (const struct device *dev, bool enable) |
| Enable or disable the APLIC delivery mode. | |
| int | riscv_aplic_is_enabled (uint32_t local_irq) |
| Check if a riscv APLIC-specific interrupt line is enabled. | |
| int | riscv_aplic_set_priority (uint32_t local_irq, uint32_t prio) |
| Configure the priority for a specified interrupt source for a domain with direct delivery mode enabled. | |
| unsigned int | riscv_aplic_get_saved_irq (void) |
| Get active interrupt ID. | |
| const struct device * | riscv_aplic_get_saved_dev (void) |
| Get active interrupt controller device. | |
| void | aplic_irq_handler (const struct device *dev) |
| IRQ handler for APLIC direct-mode interrupts. | |
| int | aplic_direct_init (const struct device *dev) |
| Initialization for APLIC with direct delivery mode enabled. | |
RISC-V APLIC direct delivery mode driver API.
This header provides the API for the RISC-V Advanced Platform-Level Interrupt Controller (APLIC) operating in direct delivery mode. In direct mode, interrupts are delivered directly to the hart's MEXT interrupt line rather than via MSI.
| int aplic_direct_init | ( | const struct device * | dev | ) |
Initialization for APLIC with direct delivery mode enabled.
| dev | APLIC device |
| void aplic_irq_handler | ( | const struct device * | dev | ) |
IRQ handler for APLIC direct-mode interrupts.
| dev | APLIC device |
Enable or disable the APLIC delivery mode.
Controls the delivery mode bit in the domain configuration register.
| dev | APLIC device |
| enable | true to enable direct delivery mode, false to disable |
| const struct device * riscv_aplic_get_saved_dev | ( | void | ) |
Get active interrupt controller device.
| unsigned int riscv_aplic_get_saved_irq | ( | void | ) |
Get active interrupt ID.
| int riscv_aplic_is_enabled | ( | uint32_t | local_irq | ) |
Check if a riscv APLIC-specific interrupt line is enabled.
| local_irq | Local IRQ number to check |
Configure the priority for a specified interrupt source for a domain with direct delivery mode enabled.
| local_irq | Local IRQ whose target register will be configured |
| prio | Priority value to set |