![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include "cmsis_compiler.h"
#include "psa/error.h"
#include "tfm_core_utils.h"
#include "utilities.h"
#include "tfm_spe_mailbox.h"
#include "tfm_rpc.h"
Go to the source code of this file.
Macros | |
#define | NS_CALLER_FLAG (true) |
Functions | |
__STATIC_INLINE void | set_spe_queue_empty_status (uint8_t idx) |
__STATIC_INLINE void | clear_spe_queue_empty_status (uint8_t idx) |
__STATIC_INLINE bool | get_spe_queue_empty_status (uint8_t idx) |
__STATIC_INLINE mailbox_queue_status_t | get_nspe_queue_pend_status (const struct ns_mailbox_queue_t *ns_queue) |
__STATIC_INLINE void | set_nspe_queue_replied_status (struct ns_mailbox_queue_t *ns_queue, mailbox_queue_status_t mask) |
__STATIC_INLINE void | clear_nspe_queue_pend_status (struct ns_mailbox_queue_t *ns_queue, mailbox_queue_status_t mask) |
__STATIC_INLINE int32_t | get_spe_mailbox_msg_handle (uint8_t idx, mailbox_msg_handle_t *handle) |
__STATIC_INLINE int32_t | get_spe_mailbox_msg_idx (mailbox_msg_handle_t handle, uint8_t *idx) |
__STATIC_INLINE struct mailbox_reply_t * | get_nspe_reply_addr (uint8_t idx) |
__STATIC_INLINE int32_t | check_mailbox_msg (const struct mailbox_msg_t *msg) |
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... | |
#define NS_CALLER_FLAG (true) |
Definition at line 16 of file tfm_spe_mailbox.c.
__STATIC_INLINE int32_t check_mailbox_msg | ( | const struct mailbox_msg_t * | msg | ) |
__STATIC_INLINE void clear_nspe_queue_pend_status | ( | struct ns_mailbox_queue_t * | ns_queue, |
mailbox_queue_status_t | mask | ||
) |
__STATIC_INLINE void clear_spe_queue_empty_status | ( | uint8_t | idx | ) |
__STATIC_INLINE mailbox_queue_status_t get_nspe_queue_pend_status | ( | const struct ns_mailbox_queue_t * | ns_queue | ) |
__STATIC_INLINE struct mailbox_reply_t* get_nspe_reply_addr | ( | uint8_t | idx | ) |
Definition at line 142 of file tfm_spe_mailbox.c.
__STATIC_INLINE int32_t get_spe_mailbox_msg_handle | ( | uint8_t | idx, |
mailbox_msg_handle_t * | handle | ||
) |
__STATIC_INLINE int32_t get_spe_mailbox_msg_idx | ( | mailbox_msg_handle_t | handle, |
uint8_t * | idx | ||
) |
__STATIC_INLINE bool get_spe_queue_empty_status | ( | uint8_t | idx | ) |
__STATIC_INLINE void set_nspe_queue_replied_status | ( | struct ns_mailbox_queue_t * | ns_queue, |
mailbox_queue_status_t | mask | ||
) |
__STATIC_INLINE void set_spe_queue_empty_status | ( | uint8_t | idx | ) |
Definition at line 63 of file tfm_spe_mailbox.c.
int32_t tfm_mailbox_handle_msg | ( | void | ) |
Handle mailbox message(s) from NSPE.
MAILBOX_SUCCESS | Successfully get PSA client call return result. |
Other | return code Operation failed with an error code. |
Definition at line 183 of file tfm_spe_mailbox.c.
int32_t tfm_mailbox_init | ( | void | ) |
SPE mailbox initialization.
MAILBOX_SUCCESS | Operation succeeded. |
Other | return code Operation failed with an error code. |
Definition at line 376 of file tfm_spe_mailbox.c.
int32_t tfm_mailbox_reply_msg | ( | mailbox_msg_handle_t | handle, |
int32_t | reply | ||
) |
Return PSA client call return result to NSPE.
[in] | handle | The handle to the mailbox message |
[in] | reply | PSA client call return result to be written to NSPE. |
MAILBOX_SUCCESS | Operation succeeded. |
Other | return code Operation failed with an error code. |
Definition at line 294 of file tfm_spe_mailbox.c.