Software APIs
isr_testutils.h File Reference

Default ISRs for each IP. More...

#include "sw/device/lib/dif/autogen/dif_adc_ctrl_autogen.h"
#include "sw/device/lib/dif/autogen/dif_alert_handler_autogen.h"
#include "sw/device/lib/dif/autogen/dif_aon_timer_autogen.h"
#include "sw/device/lib/dif/autogen/dif_csrng_autogen.h"
#include "sw/device/lib/dif/autogen/dif_edn_autogen.h"
#include "sw/device/lib/dif/autogen/dif_entropy_src_autogen.h"
#include "sw/device/lib/dif/autogen/dif_flash_ctrl_autogen.h"
#include "sw/device/lib/dif/autogen/dif_gpio_autogen.h"
#include "sw/device/lib/dif/autogen/dif_hmac_autogen.h"
#include "sw/device/lib/dif/autogen/dif_i2c_autogen.h"
#include "sw/device/lib/dif/autogen/dif_keymgr_autogen.h"
#include "sw/device/lib/dif/autogen/dif_kmac_autogen.h"
#include "sw/device/lib/dif/autogen/dif_otbn_autogen.h"
#include "sw/device/lib/dif/autogen/dif_otp_ctrl_autogen.h"
#include "sw/device/lib/dif/autogen/dif_pattgen_autogen.h"
#include "sw/device/lib/dif/autogen/dif_pwrmgr_autogen.h"
#include "sw/device/lib/dif/autogen/dif_rv_timer_autogen.h"
#include "sw/device/lib/dif/autogen/dif_sensor_ctrl_autogen.h"
#include "sw/device/lib/dif/autogen/dif_spi_device_autogen.h"
#include "sw/device/lib/dif/autogen/dif_spi_host_autogen.h"
#include "sw/device/lib/dif/autogen/dif_sysrst_ctrl_autogen.h"
#include "sw/device/lib/dif/autogen/dif_uart_autogen.h"
#include "sw/device/lib/dif/autogen/dif_usbdev_autogen.h"
#include "sw/device/lib/dif/dif_rv_plic.h"
#include "hw/top_earlgrey/sw/autogen/top_earlgrey.h"

Go to the source code of this file.

Data Structures

struct  plic_isr_ctx
 A handle to a PLIC ISR context struct. More...
 
struct  adc_ctrl_isr_ctx
 A handle to a adc_ctrl ISR context struct. More...
 
struct  alert_handler_isr_ctx
 A handle to a alert_handler ISR context struct. More...
 
struct  aon_timer_isr_ctx
 A handle to a aon_timer ISR context struct. More...
 
struct  csrng_isr_ctx
 A handle to a csrng ISR context struct. More...
 
struct  edn_isr_ctx
 A handle to a edn ISR context struct. More...
 
struct  entropy_src_isr_ctx
 A handle to a entropy_src ISR context struct. More...
 
struct  flash_ctrl_isr_ctx
 A handle to a flash_ctrl ISR context struct. More...
 
struct  gpio_isr_ctx
 A handle to a gpio ISR context struct. More...
 
struct  hmac_isr_ctx
 A handle to a hmac ISR context struct. More...
 
struct  i2c_isr_ctx
 A handle to a i2c ISR context struct. More...
 
struct  keymgr_isr_ctx
 A handle to a keymgr ISR context struct. More...
 
struct  kmac_isr_ctx
 A handle to a kmac ISR context struct. More...
 
struct  otbn_isr_ctx
 A handle to a otbn ISR context struct. More...
 
struct  otp_ctrl_isr_ctx
 A handle to a otp_ctrl ISR context struct. More...
 
struct  pattgen_isr_ctx
 A handle to a pattgen ISR context struct. More...
 
struct  pwrmgr_isr_ctx
 A handle to a pwrmgr ISR context struct. More...
 
struct  rv_timer_isr_ctx
 A handle to a rv_timer ISR context struct. More...
 
struct  sensor_ctrl_isr_ctx
 A handle to a sensor_ctrl ISR context struct. More...
 
struct  spi_device_isr_ctx
 A handle to a spi_device ISR context struct. More...
 
struct  spi_host_isr_ctx
 A handle to a spi_host ISR context struct. More...
 
struct  sysrst_ctrl_isr_ctx
 A handle to a sysrst_ctrl ISR context struct. More...
 
struct  uart_isr_ctx
 A handle to a uart ISR context struct. More...
 
struct  usbdev_isr_ctx
 A handle to a usbdev ISR context struct. More...
 

Typedefs

typedef struct plic_isr_ctx plic_isr_ctx_t
 A handle to a PLIC ISR context struct.
 
typedef struct adc_ctrl_isr_ctx adc_ctrl_isr_ctx_t
 A handle to a adc_ctrl ISR context struct.
 
typedef struct alert_handler_isr_ctx alert_handler_isr_ctx_t
 A handle to a alert_handler ISR context struct.
 
typedef struct aon_timer_isr_ctx aon_timer_isr_ctx_t
 A handle to a aon_timer ISR context struct.
 
typedef struct csrng_isr_ctx csrng_isr_ctx_t
 A handle to a csrng ISR context struct.
 
typedef struct edn_isr_ctx edn_isr_ctx_t
 A handle to a edn ISR context struct.
 
typedef struct entropy_src_isr_ctx entropy_src_isr_ctx_t
 A handle to a entropy_src ISR context struct.
 
typedef struct flash_ctrl_isr_ctx flash_ctrl_isr_ctx_t
 A handle to a flash_ctrl ISR context struct.
 
typedef struct gpio_isr_ctx gpio_isr_ctx_t
 A handle to a gpio ISR context struct.
 
typedef struct hmac_isr_ctx hmac_isr_ctx_t
 A handle to a hmac ISR context struct.
 
typedef struct i2c_isr_ctx i2c_isr_ctx_t
 A handle to a i2c ISR context struct.
 
typedef struct keymgr_isr_ctx keymgr_isr_ctx_t
 A handle to a keymgr ISR context struct.
 
typedef struct kmac_isr_ctx kmac_isr_ctx_t
 A handle to a kmac ISR context struct.
 
typedef struct otbn_isr_ctx otbn_isr_ctx_t
 A handle to a otbn ISR context struct.
 
typedef struct otp_ctrl_isr_ctx otp_ctrl_isr_ctx_t
 A handle to a otp_ctrl ISR context struct.
 
typedef struct pattgen_isr_ctx pattgen_isr_ctx_t
 A handle to a pattgen ISR context struct.
 
typedef struct pwrmgr_isr_ctx pwrmgr_isr_ctx_t
 A handle to a pwrmgr ISR context struct.
 
typedef struct rv_timer_isr_ctx rv_timer_isr_ctx_t
 A handle to a rv_timer ISR context struct.
 
typedef struct sensor_ctrl_isr_ctx sensor_ctrl_isr_ctx_t
 A handle to a sensor_ctrl ISR context struct.
 
typedef struct spi_device_isr_ctx spi_device_isr_ctx_t
 A handle to a spi_device ISR context struct.
 
typedef struct spi_host_isr_ctx spi_host_isr_ctx_t
 A handle to a spi_host ISR context struct.
 
typedef struct sysrst_ctrl_isr_ctx sysrst_ctrl_isr_ctx_t
 A handle to a sysrst_ctrl ISR context struct.
 
typedef struct uart_isr_ctx uart_isr_ctx_t
 A handle to a uart ISR context struct.
 
typedef struct usbdev_isr_ctx usbdev_isr_ctx_t
 A handle to a usbdev ISR context struct.
 

Functions

void isr_testutils_adc_ctrl_isr (plic_isr_ctx_t plic_ctx, adc_ctrl_isr_ctx_t adc_ctrl_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_adc_ctrl_irq_t *irq_serviced)
 Services an adc_ctrl IRQ.
 
void isr_testutils_alert_handler_isr (plic_isr_ctx_t plic_ctx, alert_handler_isr_ctx_t alert_handler_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_alert_handler_irq_t *irq_serviced)
 Services an alert_handler IRQ.
 
void isr_testutils_aon_timer_isr (plic_isr_ctx_t plic_ctx, aon_timer_isr_ctx_t aon_timer_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_aon_timer_irq_t *irq_serviced)
 Services an aon_timer IRQ.
 
void isr_testutils_csrng_isr (plic_isr_ctx_t plic_ctx, csrng_isr_ctx_t csrng_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_csrng_irq_t *irq_serviced)
 Services an csrng IRQ.
 
void isr_testutils_edn_isr (plic_isr_ctx_t plic_ctx, edn_isr_ctx_t edn_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_edn_irq_t *irq_serviced)
 Services an edn IRQ.
 
void isr_testutils_entropy_src_isr (plic_isr_ctx_t plic_ctx, entropy_src_isr_ctx_t entropy_src_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_entropy_src_irq_t *irq_serviced)
 Services an entropy_src IRQ.
 
void isr_testutils_flash_ctrl_isr (plic_isr_ctx_t plic_ctx, flash_ctrl_isr_ctx_t flash_ctrl_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_flash_ctrl_irq_t *irq_serviced)
 Services an flash_ctrl IRQ.
 
void isr_testutils_gpio_isr (plic_isr_ctx_t plic_ctx, gpio_isr_ctx_t gpio_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_gpio_irq_t *irq_serviced)
 Services an gpio IRQ.
 
void isr_testutils_hmac_isr (plic_isr_ctx_t plic_ctx, hmac_isr_ctx_t hmac_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_hmac_irq_t *irq_serviced)
 Services an hmac IRQ.
 
void isr_testutils_i2c_isr (plic_isr_ctx_t plic_ctx, i2c_isr_ctx_t i2c_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_i2c_irq_t *irq_serviced)
 Services an i2c IRQ.
 
void isr_testutils_keymgr_isr (plic_isr_ctx_t plic_ctx, keymgr_isr_ctx_t keymgr_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_keymgr_irq_t *irq_serviced)
 Services an keymgr IRQ.
 
void isr_testutils_kmac_isr (plic_isr_ctx_t plic_ctx, kmac_isr_ctx_t kmac_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_kmac_irq_t *irq_serviced)
 Services an kmac IRQ.
 
void isr_testutils_otbn_isr (plic_isr_ctx_t plic_ctx, otbn_isr_ctx_t otbn_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_otbn_irq_t *irq_serviced)
 Services an otbn IRQ.
 
void isr_testutils_otp_ctrl_isr (plic_isr_ctx_t plic_ctx, otp_ctrl_isr_ctx_t otp_ctrl_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_otp_ctrl_irq_t *irq_serviced)
 Services an otp_ctrl IRQ.
 
void isr_testutils_pattgen_isr (plic_isr_ctx_t plic_ctx, pattgen_isr_ctx_t pattgen_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_pattgen_irq_t *irq_serviced)
 Services an pattgen IRQ.
 
void isr_testutils_pwrmgr_isr (plic_isr_ctx_t plic_ctx, pwrmgr_isr_ctx_t pwrmgr_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_pwrmgr_irq_t *irq_serviced)
 Services an pwrmgr IRQ.
 
void isr_testutils_rv_timer_isr (plic_isr_ctx_t plic_ctx, rv_timer_isr_ctx_t rv_timer_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_rv_timer_irq_t *irq_serviced)
 Services an rv_timer IRQ.
 
void isr_testutils_sensor_ctrl_isr (plic_isr_ctx_t plic_ctx, sensor_ctrl_isr_ctx_t sensor_ctrl_ctx, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_sensor_ctrl_irq_t *irq_serviced)
 Services an sensor_ctrl IRQ.
 
void isr_testutils_spi_device_isr (plic_isr_ctx_t plic_ctx, spi_device_isr_ctx_t spi_device_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_spi_device_irq_t *irq_serviced)
 Services an spi_device IRQ.
 
void isr_testutils_spi_host_isr (plic_isr_ctx_t plic_ctx, spi_host_isr_ctx_t spi_host_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_spi_host_irq_t *irq_serviced)
 Services an spi_host IRQ.
 
void isr_testutils_sysrst_ctrl_isr (plic_isr_ctx_t plic_ctx, sysrst_ctrl_isr_ctx_t sysrst_ctrl_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_sysrst_ctrl_irq_t *irq_serviced)
 Services an sysrst_ctrl IRQ.
 
void isr_testutils_uart_isr (plic_isr_ctx_t plic_ctx, uart_isr_ctx_t uart_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_uart_irq_t *irq_serviced)
 Services an uart IRQ.
 
void isr_testutils_usbdev_isr (plic_isr_ctx_t plic_ctx, usbdev_isr_ctx_t usbdev_ctx, bool mute_status_irq, top_earlgrey_plic_peripheral_t *peripheral_serviced, dif_usbdev_irq_t *irq_serviced)
 Services an usbdev IRQ.
 

Detailed Description

Default ISRs for each IP.

Definition in file isr_testutils.h.


Data Structure Documentation

◆ plic_isr_ctx

struct plic_isr_ctx

A handle to a PLIC ISR context struct.

Definition at line 46 of file isr_testutils.h.

Data Fields
uint32_t hart_id The HART ID associated with the PLIC (correspond to a PLIC "target").
dif_rv_plic_t * rv_plic A handle to a rv_plic.

◆ adc_ctrl_isr_ctx

struct adc_ctrl_isr_ctx

A handle to a adc_ctrl ISR context struct.

Definition at line 60 of file isr_testutils.h.

Data Fields
dif_adc_ctrl_t * adc_ctrl A handle to a adc_ctrl.
dif_adc_ctrl_irq_t expected_irq The adc_ctrl IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_adc_ctrl_start_irq_id The PLIC IRQ ID where this adc_ctrl instance's IRQs start.

◆ alert_handler_isr_ctx

struct alert_handler_isr_ctx

A handle to a alert_handler ISR context struct.

Definition at line 82 of file isr_testutils.h.

Data Fields
dif_alert_handler_t * alert_handler A handle to a alert_handler.
dif_alert_handler_irq_t expected_irq The alert_handler IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_alert_handler_start_irq_id The PLIC IRQ ID where this alert_handler instance's IRQs start.

◆ aon_timer_isr_ctx

struct aon_timer_isr_ctx

A handle to a aon_timer ISR context struct.

Definition at line 104 of file isr_testutils.h.

Data Fields
dif_aon_timer_t * aon_timer A handle to a aon_timer.
dif_aon_timer_irq_t expected_irq The aon_timer IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_aon_timer_start_irq_id The PLIC IRQ ID where this aon_timer instance's IRQs start.

◆ csrng_isr_ctx

struct csrng_isr_ctx

A handle to a csrng ISR context struct.

Definition at line 126 of file isr_testutils.h.

Data Fields
dif_csrng_t * csrng A handle to a csrng.
dif_csrng_irq_t expected_irq The csrng IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_csrng_start_irq_id The PLIC IRQ ID where this csrng instance's IRQs start.

◆ edn_isr_ctx

struct edn_isr_ctx

A handle to a edn ISR context struct.

Definition at line 148 of file isr_testutils.h.

Data Fields
dif_edn_t * edn A handle to a edn.
dif_edn_irq_t expected_irq The edn IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_edn_start_irq_id The PLIC IRQ ID where this edn instance's IRQs start.

◆ entropy_src_isr_ctx

struct entropy_src_isr_ctx

A handle to a entropy_src ISR context struct.

Definition at line 170 of file isr_testutils.h.

Data Fields
dif_entropy_src_t * entropy_src A handle to a entropy_src.
dif_entropy_src_irq_t expected_irq The entropy_src IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_entropy_src_start_irq_id The PLIC IRQ ID where this entropy_src instance's IRQs start.

◆ flash_ctrl_isr_ctx

struct flash_ctrl_isr_ctx

A handle to a flash_ctrl ISR context struct.

Definition at line 192 of file isr_testutils.h.

Data Fields
dif_flash_ctrl_irq_t expected_irq The flash_ctrl IRQ that is expected to be encountered in the ISR.
dif_flash_ctrl_t * flash_ctrl A handle to a flash_ctrl.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_flash_ctrl_start_irq_id The PLIC IRQ ID where this flash_ctrl instance's IRQs start.

◆ gpio_isr_ctx

struct gpio_isr_ctx

A handle to a gpio ISR context struct.

Definition at line 214 of file isr_testutils.h.

Data Fields
dif_gpio_irq_t expected_irq The gpio IRQ that is expected to be encountered in the ISR.
dif_gpio_t * gpio A handle to a gpio.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_gpio_start_irq_id The PLIC IRQ ID where this gpio instance's IRQs start.

◆ hmac_isr_ctx

struct hmac_isr_ctx

A handle to a hmac ISR context struct.

Definition at line 236 of file isr_testutils.h.

Data Fields
dif_hmac_irq_t expected_irq The hmac IRQ that is expected to be encountered in the ISR.
dif_hmac_t * hmac A handle to a hmac.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_hmac_start_irq_id The PLIC IRQ ID where this hmac instance's IRQs start.

◆ i2c_isr_ctx

struct i2c_isr_ctx

A handle to a i2c ISR context struct.

Definition at line 258 of file isr_testutils.h.

Data Fields
dif_i2c_irq_t expected_irq The i2c IRQ that is expected to be encountered in the ISR.
dif_i2c_t * i2c A handle to a i2c.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_i2c_start_irq_id The PLIC IRQ ID where this i2c instance's IRQs start.

◆ keymgr_isr_ctx

struct keymgr_isr_ctx

A handle to a keymgr ISR context struct.

Definition at line 280 of file isr_testutils.h.

Data Fields
dif_keymgr_irq_t expected_irq The keymgr IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_keymgr_t * keymgr A handle to a keymgr.
dif_rv_plic_irq_id_t plic_keymgr_start_irq_id The PLIC IRQ ID where this keymgr instance's IRQs start.

◆ kmac_isr_ctx

struct kmac_isr_ctx

A handle to a kmac ISR context struct.

Definition at line 302 of file isr_testutils.h.

Data Fields
dif_kmac_irq_t expected_irq The kmac IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_kmac_t * kmac A handle to a kmac.
dif_rv_plic_irq_id_t plic_kmac_start_irq_id The PLIC IRQ ID where this kmac instance's IRQs start.

◆ otbn_isr_ctx

struct otbn_isr_ctx

A handle to a otbn ISR context struct.

Definition at line 324 of file isr_testutils.h.

Data Fields
dif_otbn_irq_t expected_irq The otbn IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_otbn_t * otbn A handle to a otbn.
dif_rv_plic_irq_id_t plic_otbn_start_irq_id The PLIC IRQ ID where this otbn instance's IRQs start.

◆ otp_ctrl_isr_ctx

struct otp_ctrl_isr_ctx

A handle to a otp_ctrl ISR context struct.

Definition at line 346 of file isr_testutils.h.

Data Fields
dif_otp_ctrl_irq_t expected_irq The otp_ctrl IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_otp_ctrl_t * otp_ctrl A handle to a otp_ctrl.
dif_rv_plic_irq_id_t plic_otp_ctrl_start_irq_id The PLIC IRQ ID where this otp_ctrl instance's IRQs start.

◆ pattgen_isr_ctx

struct pattgen_isr_ctx

A handle to a pattgen ISR context struct.

Definition at line 368 of file isr_testutils.h.

Data Fields
dif_pattgen_irq_t expected_irq The pattgen IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_pattgen_t * pattgen A handle to a pattgen.
dif_rv_plic_irq_id_t plic_pattgen_start_irq_id The PLIC IRQ ID where this pattgen instance's IRQs start.

◆ pwrmgr_isr_ctx

struct pwrmgr_isr_ctx

A handle to a pwrmgr ISR context struct.

Definition at line 390 of file isr_testutils.h.

Data Fields
dif_pwrmgr_irq_t expected_irq The pwrmgr IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_pwrmgr_start_irq_id The PLIC IRQ ID where this pwrmgr instance's IRQs start.
dif_pwrmgr_t * pwrmgr A handle to a pwrmgr.

◆ rv_timer_isr_ctx

struct rv_timer_isr_ctx

A handle to a rv_timer ISR context struct.

Definition at line 412 of file isr_testutils.h.

Data Fields
dif_rv_timer_irq_t expected_irq The rv_timer IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_rv_timer_start_irq_id The PLIC IRQ ID where this rv_timer instance's IRQs start.
dif_rv_timer_t * rv_timer A handle to a rv_timer.

◆ sensor_ctrl_isr_ctx

struct sensor_ctrl_isr_ctx

A handle to a sensor_ctrl ISR context struct.

Definition at line 434 of file isr_testutils.h.

Data Fields
dif_sensor_ctrl_irq_t expected_irq The sensor_ctrl IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_sensor_ctrl_start_irq_id The PLIC IRQ ID where this sensor_ctrl instance's IRQs start.
dif_sensor_ctrl_t * sensor_ctrl A handle to a sensor_ctrl.

◆ spi_device_isr_ctx

struct spi_device_isr_ctx

A handle to a spi_device ISR context struct.

Definition at line 456 of file isr_testutils.h.

Data Fields
dif_spi_device_irq_t expected_irq The spi_device IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_spi_device_start_irq_id The PLIC IRQ ID where this spi_device instance's IRQs start.
dif_spi_device_t * spi_device A handle to a spi_device.

◆ spi_host_isr_ctx

struct spi_host_isr_ctx

A handle to a spi_host ISR context struct.

Definition at line 478 of file isr_testutils.h.

Data Fields
dif_spi_host_irq_t expected_irq The spi_host IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_spi_host_start_irq_id The PLIC IRQ ID where this spi_host instance's IRQs start.
dif_spi_host_t * spi_host A handle to a spi_host.

◆ sysrst_ctrl_isr_ctx

struct sysrst_ctrl_isr_ctx

A handle to a sysrst_ctrl ISR context struct.

Definition at line 500 of file isr_testutils.h.

Data Fields
dif_sysrst_ctrl_irq_t expected_irq The sysrst_ctrl IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_sysrst_ctrl_start_irq_id The PLIC IRQ ID where this sysrst_ctrl instance's IRQs start.
dif_sysrst_ctrl_t * sysrst_ctrl A handle to a sysrst_ctrl.

◆ uart_isr_ctx

struct uart_isr_ctx

A handle to a uart ISR context struct.

Definition at line 522 of file isr_testutils.h.

Data Fields
dif_uart_irq_t expected_irq The uart IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_uart_start_irq_id The PLIC IRQ ID where this uart instance's IRQs start.
dif_uart_t * uart A handle to a uart.

◆ usbdev_isr_ctx

struct usbdev_isr_ctx

A handle to a usbdev ISR context struct.

Definition at line 544 of file isr_testutils.h.

Data Fields
dif_usbdev_irq_t expected_irq The usbdev IRQ that is expected to be encountered in the ISR.
bool is_only_irq Whether or not a single IRQ is expected to be encountered in the ISR.
dif_rv_plic_irq_id_t plic_usbdev_start_irq_id The PLIC IRQ ID where this usbdev instance's IRQs start.
dif_usbdev_t * usbdev A handle to a usbdev.

Function Documentation

◆ isr_testutils_adc_ctrl_isr()

void isr_testutils_adc_ctrl_isr ( plic_isr_ctx_t plic_ctx,
adc_ctrl_isr_ctx_t adc_ctrl_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_adc_ctrl_irq_t * irq_serviced )

Services an adc_ctrl IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
adc_ctrl_ctxA(n) adc_ctrl ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 15 of file isr_testutils.c.

◆ isr_testutils_alert_handler_isr()

void isr_testutils_alert_handler_isr ( plic_isr_ctx_t plic_ctx,
alert_handler_isr_ctx_t alert_handler_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_alert_handler_irq_t * irq_serviced )

Services an alert_handler IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
alert_handler_ctxA(n) alert_handler ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 65 of file isr_testutils.c.

◆ isr_testutils_aon_timer_isr()

void isr_testutils_aon_timer_isr ( plic_isr_ctx_t plic_ctx,
aon_timer_isr_ctx_t aon_timer_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_aon_timer_irq_t * irq_serviced )

Services an aon_timer IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
aon_timer_ctxA(n) aon_timer ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 110 of file isr_testutils.c.

◆ isr_testutils_csrng_isr()

void isr_testutils_csrng_isr ( plic_isr_ctx_t plic_ctx,
csrng_isr_ctx_t csrng_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_csrng_irq_t * irq_serviced )

Services an csrng IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
csrng_ctxA(n) csrng ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 152 of file isr_testutils.c.

◆ isr_testutils_edn_isr()

void isr_testutils_edn_isr ( plic_isr_ctx_t plic_ctx,
edn_isr_ctx_t edn_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_edn_irq_t * irq_serviced )

Services an edn IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
edn_ctxA(n) edn ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 192 of file isr_testutils.c.

◆ isr_testutils_entropy_src_isr()

void isr_testutils_entropy_src_isr ( plic_isr_ctx_t plic_ctx,
entropy_src_isr_ctx_t entropy_src_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_entropy_src_irq_t * irq_serviced )

Services an entropy_src IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
entropy_src_ctxA(n) entropy_src ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 231 of file isr_testutils.c.

◆ isr_testutils_flash_ctrl_isr()

void isr_testutils_flash_ctrl_isr ( plic_isr_ctx_t plic_ctx,
flash_ctrl_isr_ctx_t flash_ctrl_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_flash_ctrl_irq_t * irq_serviced )

Services an flash_ctrl IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
flash_ctrl_ctxA(n) flash_ctrl ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 275 of file isr_testutils.c.

◆ isr_testutils_gpio_isr()

void isr_testutils_gpio_isr ( plic_isr_ctx_t plic_ctx,
gpio_isr_ctx_t gpio_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_gpio_irq_t * irq_serviced )

Services an gpio IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
gpio_ctxA(n) gpio ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 322 of file isr_testutils.c.

◆ isr_testutils_hmac_isr()

void isr_testutils_hmac_isr ( plic_isr_ctx_t plic_ctx,
hmac_isr_ctx_t hmac_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_hmac_irq_t * irq_serviced )

Services an hmac IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
hmac_ctxA(n) hmac ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 361 of file isr_testutils.c.

◆ isr_testutils_i2c_isr()

void isr_testutils_i2c_isr ( plic_isr_ctx_t plic_ctx,
i2c_isr_ctx_t i2c_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_i2c_irq_t * irq_serviced )

Services an i2c IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
i2c_ctxA(n) i2c ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 404 of file isr_testutils.c.

◆ isr_testutils_keymgr_isr()

void isr_testutils_keymgr_isr ( plic_isr_ctx_t plic_ctx,
keymgr_isr_ctx_t keymgr_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_keymgr_irq_t * irq_serviced )

Services an keymgr IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
keymgr_ctxA(n) keymgr ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 446 of file isr_testutils.c.

◆ isr_testutils_kmac_isr()

void isr_testutils_kmac_isr ( plic_isr_ctx_t plic_ctx,
kmac_isr_ctx_t kmac_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_kmac_irq_t * irq_serviced )

Services an kmac IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
kmac_ctxA(n) kmac ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 486 of file isr_testutils.c.

◆ isr_testutils_otbn_isr()

void isr_testutils_otbn_isr ( plic_isr_ctx_t plic_ctx,
otbn_isr_ctx_t otbn_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_otbn_irq_t * irq_serviced )

Services an otbn IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
otbn_ctxA(n) otbn ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 529 of file isr_testutils.c.

◆ isr_testutils_otp_ctrl_isr()

void isr_testutils_otp_ctrl_isr ( plic_isr_ctx_t plic_ctx,
otp_ctrl_isr_ctx_t otp_ctrl_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_otp_ctrl_irq_t * irq_serviced )

Services an otp_ctrl IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
otp_ctrl_ctxA(n) otp_ctrl ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 568 of file isr_testutils.c.

◆ isr_testutils_pattgen_isr()

void isr_testutils_pattgen_isr ( plic_isr_ctx_t plic_ctx,
pattgen_isr_ctx_t pattgen_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_pattgen_irq_t * irq_serviced )

Services an pattgen IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
pattgen_ctxA(n) pattgen ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 609 of file isr_testutils.c.

◆ isr_testutils_pwrmgr_isr()

void isr_testutils_pwrmgr_isr ( plic_isr_ctx_t plic_ctx,
pwrmgr_isr_ctx_t pwrmgr_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_pwrmgr_irq_t * irq_serviced )

Services an pwrmgr IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
pwrmgr_ctxA(n) pwrmgr ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 649 of file isr_testutils.c.

◆ isr_testutils_rv_timer_isr()

void isr_testutils_rv_timer_isr ( plic_isr_ctx_t plic_ctx,
rv_timer_isr_ctx_t rv_timer_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_rv_timer_irq_t * irq_serviced )

Services an rv_timer IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
rv_timer_ctxA(n) rv_timer ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 689 of file isr_testutils.c.

◆ isr_testutils_sensor_ctrl_isr()

void isr_testutils_sensor_ctrl_isr ( plic_isr_ctx_t plic_ctx,
sensor_ctrl_isr_ctx_t sensor_ctrl_ctx,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_sensor_ctrl_irq_t * irq_serviced )

Services an sensor_ctrl IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
sensor_ctrl_ctxA(n) sensor_ctrl ISR context handle.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 731 of file isr_testutils.c.

◆ isr_testutils_spi_device_isr()

void isr_testutils_spi_device_isr ( plic_isr_ctx_t plic_ctx,
spi_device_isr_ctx_t spi_device_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_spi_device_irq_t * irq_serviced )

Services an spi_device IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
spi_device_ctxA(n) spi_device ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 775 of file isr_testutils.c.

◆ isr_testutils_spi_host_isr()

void isr_testutils_spi_host_isr ( plic_isr_ctx_t plic_ctx,
spi_host_isr_ctx_t spi_host_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_spi_host_irq_t * irq_serviced )

Services an spi_host IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
spi_host_ctxA(n) spi_host ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 822 of file isr_testutils.c.

◆ isr_testutils_sysrst_ctrl_isr()

void isr_testutils_sysrst_ctrl_isr ( plic_isr_ctx_t plic_ctx,
sysrst_ctrl_isr_ctx_t sysrst_ctrl_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_sysrst_ctrl_irq_t * irq_serviced )

Services an sysrst_ctrl IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
sysrst_ctrl_ctxA(n) sysrst_ctrl ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 866 of file isr_testutils.c.

◆ isr_testutils_uart_isr()

void isr_testutils_uart_isr ( plic_isr_ctx_t plic_ctx,
uart_isr_ctx_t uart_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_uart_irq_t * irq_serviced )

Services an uart IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
uart_ctxA(n) uart ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 913 of file isr_testutils.c.

◆ isr_testutils_usbdev_isr()

void isr_testutils_usbdev_isr ( plic_isr_ctx_t plic_ctx,
usbdev_isr_ctx_t usbdev_ctx,
bool mute_status_irq,
top_earlgrey_plic_peripheral_t * peripheral_serviced,
dif_usbdev_irq_t * irq_serviced )

Services an usbdev IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
usbdev_ctxA(n) usbdev ISR context handle.
mute_status_irqset to true to disable the serviced status type IRQ.
[out]peripheral_servicedOut param for the peripheral that was serviced.
[out]irq_servicedOut param for the IRQ that was serviced.

Definition at line 956 of file isr_testutils.c.