TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_spe_mailbox.h File Reference
#include "tfm_mailbox.h"
Include dependency graph for tfm_spe_mailbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  secure_mailbox_slot_t
 
struct  secure_mailbox_queue_t
 

Functions

int32_t tfm_mailbox_handle_msg (void)
 Handle mailbox message(s) from NSPE. More...
 
int32_t tfm_mailbox_reply_msg (mailbox_msg_handle_t handle, int32_t reply)
 Return PSA client call return result to NSPE. More...
 
int32_t tfm_mailbox_init (void)
 SPE mailbox initialization. More...
 
int32_t tfm_mailbox_hal_init (struct secure_mailbox_queue_t *s_queue)
 Platform specific initialization of SPE mailbox. More...
 
int32_t tfm_mailbox_hal_notify_peer (void)
 Notify NSPE that a PSA client call return result is replied. Implemented by platform specific inter-processor communication driver. More...
 
void tfm_mailbox_hal_enter_critical (void)
 Enter critical section of NSPE mailbox. More...
 
void tfm_mailbox_hal_exit_critical (void)
 Exit critical section of NSPE mailbox. More...
 

Function Documentation

void tfm_mailbox_hal_enter_critical ( void  )

Enter critical section of NSPE mailbox.

Here is the caller graph for this function:

void tfm_mailbox_hal_exit_critical ( void  )

Exit critical section of NSPE mailbox.

Here is the caller graph for this function:

int32_t tfm_mailbox_hal_init ( struct secure_mailbox_queue_t s_queue)

Platform specific initialization of SPE mailbox.

Parameters
[in]s_queueThe base address of SPE mailbox queue.
Return values
MAILBOX_SUCCESSOperation succeeded.
Otherreturn code Operation failed with an error code.

Here is the caller graph for this function:

int32_t tfm_mailbox_hal_notify_peer ( void  )

Notify NSPE that a PSA client call return result is replied. Implemented by platform specific inter-processor communication driver.

Return values
MAILBOX_SUCCESSThe notification is successfully sent out.
Otherreturn code Operation failed with an error code.

Here is the caller graph for this function:

int32_t tfm_mailbox_handle_msg ( void  )

Handle mailbox message(s) from NSPE.

Return values
MAILBOX_SUCCESSSuccessfully get PSA client call return result.
Otherreturn code Operation failed with an error code.

Definition at line 183 of file tfm_spe_mailbox.c.

Here is the call graph for this function:

int32_t tfm_mailbox_init ( void  )

SPE mailbox initialization.

Return values
MAILBOX_SUCCESSOperation succeeded.
Otherreturn code Operation failed with an error code.

Definition at line 376 of file tfm_spe_mailbox.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int32_t tfm_mailbox_reply_msg ( mailbox_msg_handle_t  handle,
int32_t  reply 
)

Return PSA client call return result to NSPE.

Parameters
[in]handleThe handle to the mailbox message
[in]replyPSA client call return result to be written to NSPE.
Return values
MAILBOX_SUCCESSOperation succeeded.
Otherreturn code Operation failed with an error code.

Definition at line 294 of file tfm_spe_mailbox.c.

Here is the call graph for this function: