TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
platform_sp.c File Reference
#include "platform_sp.h"
#include "tfm_platform_system.h"
#include "tfm_plat_nv_counters.h"
#include "tfm/tfm_spm_services.h"
#include "tfm_secure_api.h"
#include "psa_manifest/pid.h"
Include dependency graph for platform_sp.c:

Go to the source code of this file.

Macros

#define NV_COUNTER_ID_SIZE   sizeof(enum tfm_nv_counter_t)
 
#define NV_COUNTER_MAP_SIZE   3
 

Functions

enum tfm_platform_err_t platform_sp_system_reset (void)
 Resets the system. More...
 
enum tfm_platform_err_t platform_sp_ioctl (psa_invec *in_vec, uint32_t num_invec, psa_outvec *out_vec, uint32_t num_outvec)
 
enum tfm_platform_err_t platform_sp_nv_counter_read (psa_invec *in_vec, uint32_t num_invec, psa_outvec *out_vec, uint32_t num_outvec)
 
enum tfm_platform_err_t platform_sp_nv_counter_increment (psa_invec *in_vec, uint32_t num_invec, psa_outvec *out_vec, uint32_t num_outvec)
 
enum tfm_platform_err_t platform_sp_init (void)
 Initializes the secure partition. More...
 

Macro Definition Documentation

#define NV_COUNTER_ID_SIZE   sizeof(enum tfm_nv_counter_t)

Definition at line 16 of file platform_sp.c.

#define NV_COUNTER_MAP_SIZE   3

Definition at line 17 of file platform_sp.c.

Function Documentation

enum tfm_platform_err_t platform_sp_init ( void  )

Initializes the secure partition.

Returns
Returns values as specified by the tfm_platform_err_t

Definition at line 340 of file platform_sp.c.

Here is the call graph for this function:

enum tfm_platform_err_t platform_sp_ioctl ( psa_invec in_vec,
uint32_t  num_invec,
psa_outvec out_vec,
uint32_t  num_outvec 
)

Definition at line 88 of file platform_sp.c.

enum tfm_platform_err_t platform_sp_nv_counter_increment ( psa_invec in_vec,
uint32_t  num_invec,
psa_outvec out_vec,
uint32_t  num_outvec 
)

Definition at line 142 of file platform_sp.c.

Here is the call graph for this function:

enum tfm_platform_err_t platform_sp_nv_counter_read ( psa_invec in_vec,
uint32_t  num_invec,
psa_outvec out_vec,
uint32_t  num_outvec 
)

Definition at line 109 of file platform_sp.c.

Here is the call graph for this function:

enum tfm_platform_err_t platform_sp_system_reset ( void  )

Resets the system.

Returns
Returns values as specified by the tfm_platform_err_t

Definition at line 68 of file platform_sp.c.

Here is the call graph for this function: