TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_secure_api.h File Reference
#include <arm_cmse.h>
#include "tfm_arch.h"
#include "tfm/tfm_core_svc.h"
#include "tfm_api.h"
#include "utilities.h"
#include "tfm_boot_status.h"
#include "psa/service.h"
Include dependency graph for tfm_secure_api.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tfm_sfn_req_s
 

Macros

#define __tfm_secure_gateway_attributes__   __attribute__((cmse_nonsecure_entry, section("SFN")))
 Attributes for secure gateway functions. More...
 
#define TFM_ERROR_STATUS(status)   (TFM_PARTITION_BUSY)
 
#define TFM_CORE_IOVEC_SFN_REQUEST(id, is_ns, fn, a, b, c, d)
 

Typedefs

typedef int32_t(* sfn_t )(int32_t, int32_t, int32_t, int32_t)
 

Functions

void tfm_secure_api_error_handler (void)
 
int32_t tfm_core_get_caller_client_id (int32_t *caller_client_id)
 
int32_t tfm_core_sfn_request (const struct tfm_sfn_req_s *desc_ptr)
 
int32_t tfm_spm_sfn_request_thread_mode (struct tfm_sfn_req_s *desc_ptr)
 
int32_t tfm_core_partition_request (uint32_t id, bool is_ns, void *fn, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4)
 
__STATIC_INLINE bool tfm_core_is_ns_client (void)
 

Macro Definition Documentation

#define __tfm_secure_gateway_attributes__   __attribute__((cmse_nonsecure_entry, section("SFN")))

Attributes for secure gateway functions.

Definition at line 36 of file tfm_secure_api.h.

#define TFM_CORE_IOVEC_SFN_REQUEST (   id,
  is_ns,
  fn,
  a,
  b,
  c,
 
)
Value:
return tfm_core_partition_request(id, is_ns, fn, \
(int32_t)a, (int32_t)b, (int32_t)c, (int32_t)d)
int32_t tfm_core_partition_request(uint32_t id, bool is_ns, void *fn, int32_t arg1, int32_t arg2, int32_t arg3, int32_t arg4)

Definition at line 91 of file tfm_secure_api.h.

#define TFM_ERROR_STATUS (   status)    (TFM_PARTITION_BUSY)

Definition at line 65 of file tfm_secure_api.h.

Typedef Documentation

typedef int32_t(* sfn_t)(int32_t, int32_t, int32_t, int32_t)

Definition at line 75 of file tfm_secure_api.h.

Function Documentation

int32_t tfm_core_get_caller_client_id ( int32_t *  caller_client_id)

Definition at line 28 of file arch.c.

Here is the caller graph for this function:

__STATIC_INLINE bool tfm_core_is_ns_client ( void  )

Definition at line 99 of file tfm_secure_api.h.

int32_t tfm_core_partition_request ( uint32_t  id,
bool  is_ns,
void *  fn,
int32_t  arg1,
int32_t  arg2,
int32_t  arg3,
int32_t  arg4 
)

Definition at line 18 of file tfm_secure_api.c.

Here is the call graph for this function:

int32_t tfm_core_sfn_request ( const struct tfm_sfn_req_s desc_ptr)

Here is the caller graph for this function:

void tfm_secure_api_error_handler ( void  )

Definition at line 12 of file tfm_secure_api.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int32_t tfm_spm_sfn_request_thread_mode ( struct tfm_sfn_req_s desc_ptr)

Definition at line 780 of file spm_func.c.

Here is the call graph for this function:

Here is the caller graph for this function: