RV_PLIC Device Interface Functions More...
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_base.h"
Go to the source code of this file.
Data Structures | |
struct | dif_rv_plic |
A handle to rv_plic. More... | |
Typedefs | |
typedef struct dif_rv_plic | dif_rv_plic_t |
A handle to rv_plic. More... | |
typedef enum dif_rv_plic_alert | dif_rv_plic_alert_t |
A rv_plic alert type. | |
Enumerations | |
enum | dif_rv_plic_alert { kDifRvPlicAlertFatalFault = 0 } |
A rv_plic alert type. More... | |
Functions | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_rv_plic_init (mmio_region_t base_addr, dif_rv_plic_t *rv_plic) |
Creates a new handle for a(n) rv_plic peripheral. More... | |
OT_WARN_UNUSED_RESULT dif_result_t | dif_rv_plic_alert_force (const dif_rv_plic_t *rv_plic, dif_rv_plic_alert_t alert) |
Forces a particular alert, causing it to be escalated as if the hardware had raised it. More... | |
RV_PLIC Device Interface Functions
Definition in file dif_rv_plic_autogen.h.
struct dif_rv_plic |
A handle to rv_plic.
This type should be treated as opaque by users.
Definition at line 32 of file dif_rv_plic_autogen.h.
Data Fields | ||
---|---|---|
mmio_region_t | base_addr | The base address for the rv_plic hardware registers. |
typedef struct dif_rv_plic dif_rv_plic_t |
A handle to rv_plic.
This type should be treated as opaque by users.
enum dif_rv_plic_alert |
A rv_plic alert type.
Enumerator | |
---|---|
kDifRvPlicAlertFatalFault | This fatal alert is triggered when a fatal TL-UL bus integrity fault is detected. |
Definition at line 54 of file dif_rv_plic_autogen.h.
OT_WARN_UNUSED_RESULT dif_result_t dif_rv_plic_alert_force | ( | const dif_rv_plic_t * | rv_plic, |
dif_rv_plic_alert_t | alert | ||
) |
Forces a particular alert, causing it to be escalated as if the hardware had raised it.
rv_plic | A rv_plic handle. |
alert | The alert to force. |
Definition at line 27 of file dif_rv_plic_autogen.c.
OT_WARN_UNUSED_RESULT dif_result_t dif_rv_plic_init | ( | mmio_region_t | base_addr, |
dif_rv_plic_t * | rv_plic | ||
) |
Creates a new handle for a(n) rv_plic peripheral.
This function does not actuate the hardware.
base_addr | The MMIO base address of the rv_plic peripheral. | |
[out] | rv_plic | Out param for the initialized handle. |
Definition at line 17 of file dif_rv_plic_autogen.c.