12#ifndef TFM_IOCTL_API_H__
13#define TFM_IOCTL_API_H__
23#include <tfm_platform_api.h>
24#include <hal/nrf_gpio.h>
27#include <tfm_ioctl_core_api.h>
50struct tfm_fw_info_args_t {
57struct tfm_fw_info_out_t {
70int tfm_platform_firmware_info(uint32_t fw_address,
struct fw_info *info);
82int tfm_platform_s0_active(uint32_t s0_address, uint32_t s1_address,
tfm_platform_ioctl_reqest_types_t
Definition: tfm_ioctl_api.h:41
@ TFM_PLATFORM_IOCTL_FW_INFO
Definition: tfm_ioctl_api.h:42
@ TFM_PLATFORM_IOCTL_NS_FAULT
Definition: tfm_ioctl_api.h:43
int tfm_platform_ns_fault_set_handler(struct tfm_ns_fault_service_handler_context *context, tfm_ns_fault_service_handler_callback callback)
tfm_spu_events
Bitmask of SPU events.
Definition: tfm_ioctl_api.h:88
@ TFM_SPU_EVENT_FLASHACCERR
Definition: tfm_ioctl_api.h:90
@ TFM_SPU_EVENT_PERIPHACCERR
Definition: tfm_ioctl_api.h:91
@ TFM_SPU_EVENT_RAMACCERR
Definition: tfm_ioctl_api.h:89
void(* tfm_ns_fault_service_handler_callback)(void)
Non-secure fault service callback type.
Definition: tfm_ioctl_api.h:143
Definition: fw_info_bare.h:125
struct tfm_ns_fault_service_handler_context * context
Definition: tfm_ioctl_api.h:147
tfm_ns_fault_service_handler_callback callback
Definition: tfm_ioctl_api.h:148
Non-secure fault service arguments.
Definition: tfm_ioctl_api.h:146
uint32_t lr
Definition: tfm_ioctl_api.h:101
uint32_t r3
Definition: tfm_ioctl_api.h:99
uint32_t r2
Definition: tfm_ioctl_api.h:98
uint32_t r0
Definition: tfm_ioctl_api.h:96
uint32_t xpsr
Definition: tfm_ioctl_api.h:103
uint32_t pc
Definition: tfm_ioctl_api.h:102
uint32_t r1
Definition: tfm_ioctl_api.h:97
uint32_t r12
Definition: tfm_ioctl_api.h:100
Copy of exception frame on stack.
Definition: tfm_ioctl_api.h:95
uint32_t r4
Definition: tfm_ioctl_api.h:108
uint32_t r6
Definition: tfm_ioctl_api.h:110
uint32_t r8
Definition: tfm_ioctl_api.h:112
uint32_t r9
Definition: tfm_ioctl_api.h:113
uint32_t r7
Definition: tfm_ioctl_api.h:111
uint32_t r10
Definition: tfm_ioctl_api.h:114
uint32_t r5
Definition: tfm_ioctl_api.h:109
uint32_t r11
Definition: tfm_ioctl_api.h:115
Copy of callee saved registers.
Definition: tfm_ioctl_api.h:107
uint32_t vectactive
Definition: tfm_ioctl_api.h:131
uint32_t psp
Definition: tfm_ioctl_api.h:121
uint32_t sfar
Definition: tfm_ioctl_api.h:129
uint32_t sfsr
Definition: tfm_ioctl_api.h:126
uint32_t cfsr
Definition: tfm_ioctl_api.h:124
uint32_t hfsr
Definition: tfm_ioctl_api.h:125
uint32_t spu_events
Definition: tfm_ioctl_api.h:130
uint32_t bfar
Definition: tfm_ioctl_api.h:127
uint32_t exc_return
Definition: tfm_ioctl_api.h:122
uint32_t msp
Definition: tfm_ioctl_api.h:120
uint32_t mmfar
Definition: tfm_ioctl_api.h:128
uint32_t control
Definition: tfm_ioctl_api.h:123
Additional fault status information.
Definition: tfm_ioctl_api.h:119
struct tfm_ns_fault_service_handler_context_frame frame
Definition: tfm_ioctl_api.h:138
bool valid
Definition: tfm_ioctl_api.h:136
struct tfm_ns_fault_service_handler_context_registers registers
Definition: tfm_ioctl_api.h:137
struct tfm_ns_fault_service_handler_context_status status
Definition: tfm_ioctl_api.h:139
Non-secure fault service callback context argument.
Definition: tfm_ioctl_api.h:135
uint32_t result
Definition: tfm_ioctl_api.h:154
Output list for each nonsecure_fault platform service.
Definition: tfm_ioctl_api.h:153