|
Karg v0.2.0
The kernel of CargOS
|
Macros | |
| #define | reg(reg) *((volatile u32 *) (base_addr + reg)) |
| #define | INTR_PRIO(irq) (irq * 4) |
| #define | INTR_ENABLE(irq) (0x2080 + irq / 32 * 4) |
| #define | PRIO_THRESHOLD 0x201000 |
| #define | INTR_CLAIM 0x201004 |
| #define | INTR_COMPLETION 0x201004 |
Functions | |
| MODULE_NAME ("plic") | |
| void | plic_enable_irq (u32 irq) |
| u32 | plic_claim () |
| void | plic_complete (u32 irq) |
| dev_init ("plic", init_dev) | |
| #define INTR_CLAIM 0x201004 |
| #define INTR_COMPLETION 0x201004 |
| #define INTR_ENABLE | ( | irq | ) | (0x2080 + irq / 32 * 4) |
| #define INTR_PRIO | ( | irq | ) | (irq * 4) |
| #define PRIO_THRESHOLD 0x201000 |
| #define reg | ( | reg | ) | *((volatile u32 *) (base_addr + reg)) |
| dev_init | ( | "plic" | , |
| init_dev | |||
| ) |
| MODULE_NAME | ( | "plic" | ) |
| u32 plic_claim | ( | void | ) |
| void plic_complete | ( | u32 | irq | ) |
| void plic_enable_irq | ( | u32 | irq | ) |