TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_ns_interface.c File Reference
#include <stdint.h>
#include <stdbool.h>
#include "os_wrapper/mutex.h"
#include "tfm_api.h"
#include "tfm_ns_interface.h"
Include dependency graph for tfm_ns_interface.c:

Go to the source code of this file.

Functions

int32_t tfm_ns_interface_dispatch (veneer_fn fn, uint32_t arg0, uint32_t arg1, uint32_t arg2, uint32_t arg3)
 NS interface, veneer function dispatcher. More...
 
enum tfm_status_e tfm_ns_interface_init (void)
 NS interface, Initialise the NS interface. More...
 

Function Documentation

int32_t tfm_ns_interface_dispatch ( veneer_fn  fn,
uint32_t  arg0,
uint32_t  arg1,
uint32_t  arg2,
uint32_t  arg3 
)

NS interface, veneer function dispatcher.

This function implements the dispatching mechanism for the desired veneer function, to be called with the parameters described from arg0 to arg3.

Parameters
[in]fnFunction pointer to the veneer function desired
[in]arg0Argument 0
[in]arg1Argument 1
[in]arg2Argument 2
[in]arg3Argument 3
Returns
Returns the same return value of the requested veneer function

Definition at line 21 of file tfm_ns_interface.c.

Here is the call graph for this function:

Here is the caller graph for this function:

enum tfm_status_e tfm_ns_interface_init ( void  )

NS interface, Initialise the NS interface.

This function needs to be called from the NS world to properly initialise the NS interface towards TF-M. This function will initialise all the objects required for runtime dispatching of TF-M requests to services

Returns
A value according to tfm_status_e

Definition at line 43 of file tfm_ns_interface.c.

Here is the call graph for this function: