Sapphire SoC DS Sapphire SoC UG Sapphire HP SoC DS Sapphire HP SoC UG RISC-V Embedded IDE UG Board Support Package
Loading...
Searching...
No Matches

Overview

Structs used by the driver.

Note
This is example show how to instantiate PLIC with plic_instance_t and plic_hwreg_t.
plic_instance_t wdg_plic = {
.target = BSP_PLIC_CPU_0,
.gateway = WATCHDOG_SOFT_PANIC_INTERRUPT,
.priority = 0x1U,
.enable = 0x1U,
.threshold = 0x0U,
};
// Apply Config for PLIC & WDG setting
plic_applyConfig(&wdg_plic);
#define BSP_PLIC_CPU_0
Definition bsp.h:26
void plic_applyConfig(plic_instance_t *inst)
Apply stored PLIC configuration to hardware.
Definition plic.c:83
PLIC instance. Holds the software registers and hardware pointer.
Definition plic.h:112

Data Structures

struct  plic_priority_block_t
 Priority Block: 1024 sources max (Offset 0x000000). More...
struct  plic_pending_block_t
 Pending Block: 1024 sources / 32 bits = 32 words (Offset 0x001000). More...
struct  plic_enable_block_t
 Enable Block: Per Target (Hart). Stride is 0x80 bytes (Offset 0x002000). More...
struct  plic_context_block_t
 Context Block: Per Target (Hart). Stride is 0x1000 (4096) bytes (Offset 0x200000). More...
struct  plic_hwreg_t
 PLIC hardware register map. More...
struct  plic_instance_t
 PLIC instance. Holds the software registers and hardware pointer. More...