Software APIs
isr_testutils.h File Reference

Default ISRs for each IP. More...

#include "sw/device/lib/dif/autogen/dif_ac_range_check_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_dma_autogen.h"
#include "sw/device/lib/dif/autogen/dif_edn_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_dpe_autogen.h"
#include "sw/device/lib/dif/autogen/dif_kmac_autogen.h"
#include "sw/device/lib/dif/autogen/dif_mbx_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_pwrmgr_autogen.h"
#include "sw/device/lib/dif/autogen/dif_racl_ctrl_autogen.h"
#include "sw/device/lib/dif/autogen/dif_rv_timer_autogen.h"
#include "sw/device/lib/dif/autogen/dif_soc_proxy_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_uart_autogen.h"
#include "sw/device/lib/dif/dif_rv_plic.h"
#include "hw/top_darjeeling/sw/autogen/top_darjeeling.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  ac_range_check_isr_ctx
 A handle to a ac_range_check 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  dma_isr_ctx
 A handle to a dma ISR context struct. More...
 
struct  edn_isr_ctx
 A handle to a edn 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_dpe_isr_ctx
 A handle to a keymgr_dpe ISR context struct. More...
 
struct  kmac_isr_ctx
 A handle to a kmac ISR context struct. More...
 
struct  mbx_isr_ctx
 A handle to a mbx 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  pwrmgr_isr_ctx
 A handle to a pwrmgr ISR context struct. More...
 
struct  racl_ctrl_isr_ctx
 A handle to a racl_ctrl ISR context struct. More...
 
struct  rv_timer_isr_ctx
 A handle to a rv_timer ISR context struct. More...
 
struct  soc_proxy_isr_ctx
 A handle to a soc_proxy 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  uart_isr_ctx
 A handle to a uart ISR context struct. More...
 

Typedefs

typedef struct plic_isr_ctx plic_isr_ctx_t
 A handle to a PLIC ISR context struct.
 
typedef struct ac_range_check_isr_ctx ac_range_check_isr_ctx_t
 A handle to a ac_range_check 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 dma_isr_ctx dma_isr_ctx_t
 A handle to a dma ISR context struct.
 
typedef struct edn_isr_ctx edn_isr_ctx_t
 A handle to a edn 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_dpe_isr_ctx keymgr_dpe_isr_ctx_t
 A handle to a keymgr_dpe ISR context struct.
 
typedef struct kmac_isr_ctx kmac_isr_ctx_t
 A handle to a kmac ISR context struct.
 
typedef struct mbx_isr_ctx mbx_isr_ctx_t
 A handle to a mbx 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 pwrmgr_isr_ctx pwrmgr_isr_ctx_t
 A handle to a pwrmgr ISR context struct.
 
typedef struct racl_ctrl_isr_ctx racl_ctrl_isr_ctx_t
 A handle to a racl_ctrl 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 soc_proxy_isr_ctx soc_proxy_isr_ctx_t
 A handle to a soc_proxy 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 uart_isr_ctx uart_isr_ctx_t
 A handle to a uart ISR context struct.
 

Functions

void isr_testutils_ac_range_check_isr (plic_isr_ctx_t plic_ctx, ac_range_check_isr_ctx_t ac_range_check_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_ac_range_check_irq_t *irq_serviced)
 Services an ac_range_check IRQ.
 
void isr_testutils_alert_handler_isr (plic_isr_ctx_t plic_ctx, alert_handler_isr_ctx_t alert_handler_ctx, top_darjeeling_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_darjeeling_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_darjeeling_plic_peripheral_t *peripheral_serviced, dif_csrng_irq_t *irq_serviced)
 Services an csrng IRQ.
 
void isr_testutils_dma_isr (plic_isr_ctx_t plic_ctx, dma_isr_ctx_t dma_ctx, bool mute_status_irq, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_dma_irq_t *irq_serviced)
 Services an dma IRQ.
 
void isr_testutils_edn_isr (plic_isr_ctx_t plic_ctx, edn_isr_ctx_t edn_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_edn_irq_t *irq_serviced)
 Services an edn IRQ.
 
void isr_testutils_gpio_isr (plic_isr_ctx_t plic_ctx, gpio_isr_ctx_t gpio_ctx, top_darjeeling_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_darjeeling_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_darjeeling_plic_peripheral_t *peripheral_serviced, dif_i2c_irq_t *irq_serviced)
 Services an i2c IRQ.
 
void isr_testutils_keymgr_dpe_isr (plic_isr_ctx_t plic_ctx, keymgr_dpe_isr_ctx_t keymgr_dpe_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_keymgr_dpe_irq_t *irq_serviced)
 Services an keymgr_dpe IRQ.
 
void isr_testutils_kmac_isr (plic_isr_ctx_t plic_ctx, kmac_isr_ctx_t kmac_ctx, bool mute_status_irq, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_kmac_irq_t *irq_serviced)
 Services an kmac IRQ.
 
void isr_testutils_mbx_isr (plic_isr_ctx_t plic_ctx, mbx_isr_ctx_t mbx_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_mbx_irq_t *irq_serviced)
 Services an mbx IRQ.
 
void isr_testutils_otbn_isr (plic_isr_ctx_t plic_ctx, otbn_isr_ctx_t otbn_ctx, top_darjeeling_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_darjeeling_plic_peripheral_t *peripheral_serviced, dif_otp_ctrl_irq_t *irq_serviced)
 Services an otp_ctrl IRQ.
 
void isr_testutils_pwrmgr_isr (plic_isr_ctx_t plic_ctx, pwrmgr_isr_ctx_t pwrmgr_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_pwrmgr_irq_t *irq_serviced)
 Services an pwrmgr IRQ.
 
void isr_testutils_racl_ctrl_isr (plic_isr_ctx_t plic_ctx, racl_ctrl_isr_ctx_t racl_ctrl_ctx, bool mute_status_irq, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_racl_ctrl_irq_t *irq_serviced)
 Services an racl_ctrl IRQ.
 
void isr_testutils_rv_timer_isr (plic_isr_ctx_t plic_ctx, rv_timer_isr_ctx_t rv_timer_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_rv_timer_irq_t *irq_serviced)
 Services an rv_timer IRQ.
 
void isr_testutils_soc_proxy_isr (plic_isr_ctx_t plic_ctx, soc_proxy_isr_ctx_t soc_proxy_ctx, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_soc_proxy_irq_t *irq_serviced)
 Services an soc_proxy 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_darjeeling_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_darjeeling_plic_peripheral_t *peripheral_serviced, dif_spi_host_irq_t *irq_serviced)
 Services an spi_host IRQ.
 
void isr_testutils_uart_isr (plic_isr_ctx_t plic_ctx, uart_isr_ctx_t uart_ctx, bool mute_status_irq, top_darjeeling_plic_peripheral_t *peripheral_serviced, dif_uart_irq_t *irq_serviced)
 Services an uart 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.

◆ ac_range_check_isr_ctx

struct ac_range_check_isr_ctx

A handle to a ac_range_check ISR context struct.

Definition at line 58 of file isr_testutils.h.

Data Fields
dif_ac_range_check_t * ac_range_check A handle to a ac_range_check.
dif_ac_range_check_irq_t expected_irq The ac_range_check 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_ac_range_check_start_irq_id The PLIC IRQ ID where this ac_range_check 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.

◆ dma_isr_ctx

struct dma_isr_ctx

A handle to a dma ISR context struct.

Definition at line 146 of file isr_testutils.h.

Data Fields
dif_dma_t * dma A handle to a dma.
dif_dma_irq_t expected_irq The dma 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_dma_start_irq_id The PLIC IRQ ID where this dma 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.

◆ 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_dpe_isr_ctx

struct keymgr_dpe_isr_ctx

A handle to a keymgr_dpe ISR context struct.

Definition at line 256 of file isr_testutils.h.

Data Fields
dif_keymgr_dpe_irq_t expected_irq The keymgr_dpe 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_dpe_t * keymgr_dpe A handle to a keymgr_dpe.
dif_rv_plic_irq_id_t plic_keymgr_dpe_start_irq_id The PLIC IRQ ID where this keymgr_dpe 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.

◆ mbx_isr_ctx

struct mbx_isr_ctx

A handle to a mbx ISR context struct.

Definition at line 300 of file isr_testutils.h.

Data Fields
dif_mbx_irq_t expected_irq The mbx 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_mbx_t * mbx A handle to a mbx.
dif_rv_plic_irq_id_t plic_mbx_start_irq_id The PLIC IRQ ID where this mbx 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.

◆ 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.

◆ racl_ctrl_isr_ctx

struct racl_ctrl_isr_ctx

A handle to a racl_ctrl ISR context struct.

Definition at line 388 of file isr_testutils.h.

Data Fields
dif_racl_ctrl_irq_t expected_irq The racl_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_racl_ctrl_start_irq_id The PLIC IRQ ID where this racl_ctrl instance's IRQs start.
dif_racl_ctrl_t * racl_ctrl A handle to a racl_ctrl.

◆ 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.

◆ soc_proxy_isr_ctx

struct soc_proxy_isr_ctx

A handle to a soc_proxy ISR context struct.

Definition at line 432 of file isr_testutils.h.

Data Fields
dif_soc_proxy_irq_t expected_irq The soc_proxy 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_soc_proxy_start_irq_id The PLIC IRQ ID where this soc_proxy instance's IRQs start.
dif_soc_proxy_t * soc_proxy A handle to a soc_proxy.

◆ 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.

◆ 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.

Function Documentation

◆ isr_testutils_ac_range_check_isr()

void isr_testutils_ac_range_check_isr ( plic_isr_ctx_t plic_ctx,
ac_range_check_isr_ctx_t ac_range_check_ctx,
top_darjeeling_plic_peripheral_t * peripheral_serviced,
dif_ac_range_check_irq_t * irq_serviced )

Services an ac_range_check IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
ac_range_check_ctxA(n) ac_range_check 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 14 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_darjeeling_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 59 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_darjeeling_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 104 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_darjeeling_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 146 of file isr_testutils.c.

◆ isr_testutils_dma_isr()

void isr_testutils_dma_isr ( plic_isr_ctx_t plic_ctx,
dma_isr_ctx_t dma_ctx,
bool mute_status_irq,
top_darjeeling_plic_peripheral_t * peripheral_serviced,
dif_dma_irq_t * irq_serviced )

Services an dma IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
dma_ctxA(n) dma 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 186 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_darjeeling_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 228 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_darjeeling_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 268 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_darjeeling_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 308 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_darjeeling_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 351 of file isr_testutils.c.

◆ isr_testutils_keymgr_dpe_isr()

void isr_testutils_keymgr_dpe_isr ( plic_isr_ctx_t plic_ctx,
keymgr_dpe_isr_ctx_t keymgr_dpe_ctx,
top_darjeeling_plic_peripheral_t * peripheral_serviced,
dif_keymgr_dpe_irq_t * irq_serviced )

Services an keymgr_dpe IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
keymgr_dpe_ctxA(n) keymgr_dpe 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 393 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_darjeeling_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 437 of file isr_testutils.c.

◆ isr_testutils_mbx_isr()

void isr_testutils_mbx_isr ( plic_isr_ctx_t plic_ctx,
mbx_isr_ctx_t mbx_ctx,
top_darjeeling_plic_peripheral_t * peripheral_serviced,
dif_mbx_irq_t * irq_serviced )

Services an mbx IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
mbx_ctxA(n) mbx 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 480 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_darjeeling_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 520 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_darjeeling_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 560 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_darjeeling_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 601 of file isr_testutils.c.

◆ isr_testutils_racl_ctrl_isr()

void isr_testutils_racl_ctrl_isr ( plic_isr_ctx_t plic_ctx,
racl_ctrl_isr_ctx_t racl_ctrl_ctx,
bool mute_status_irq,
top_darjeeling_plic_peripheral_t * peripheral_serviced,
dif_racl_ctrl_irq_t * irq_serviced )

Services an racl_ctrl IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
racl_ctrl_ctxA(n) racl_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 641 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_darjeeling_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 686 of file isr_testutils.c.

◆ isr_testutils_soc_proxy_isr()

void isr_testutils_soc_proxy_isr ( plic_isr_ctx_t plic_ctx,
soc_proxy_isr_ctx_t soc_proxy_ctx,
top_darjeeling_plic_peripheral_t * peripheral_serviced,
dif_soc_proxy_irq_t * irq_serviced )

Services an soc_proxy IRQ.

Parameters
plic_ctxA PLIC ISR context handle.
soc_proxy_ctxA(n) soc_proxy 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 728 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_darjeeling_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 770 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_darjeeling_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 817 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_darjeeling_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 861 of file isr_testutils.c.