10 #ifndef __TFM_NS_MAILBOX_H__
11 #define __TFM_NS_MAILBOX_H__
21 #ifdef TFM_MULTI_CORE_TEST
25 struct ns_mailbox_stats_res_t {
30 uint8_t avg_nr_slots_tenths;
87 #ifdef TFM_MULTI_CORE_MULTI_CLIENT_CALL
99 const void *tfm_ns_mailbox_get_task_handle(
void);
101 static inline const void *tfm_ns_mailbox_get_task_handle(
void)
133 #ifdef TFM_MULTI_CORE_MULTI_CLIENT_CALL
196 #ifdef TFM_MULTI_CORE_MULTI_CLIENT_CALL
209 #ifdef TFM_MULTI_CORE_TEST
215 void tfm_ns_mailbox_tx_stats_init(
void);
229 void tfm_ns_mailbox_stats_avg_slot(
struct ns_mailbox_stats_res_t *stats_res);
const void * tfm_ns_mailbox_get_msg_owner(mailbox_msg_handle_t handle)
Return the handle of owner task of a mailbox message according to the mailbox_msg_handle_t.
int32_t tfm_ns_mailbox_hal_notify_peer(void)
Notify SPE to deal with the PSA client call sent via mailbox.
void tfm_ns_mailbox_hal_enter_critical(void)
Enter critical section of NSPE mailbox.
int32_t mailbox_msg_handle_t
mailbox_msg_handle_t tfm_ns_mailbox_fetch_reply_msg_isr(void)
Fetch the handle to the first replied mailbox message in the NSPE mailbox queue. This function is int...
int32_t tfm_ns_mailbox_rx_client_reply(mailbox_msg_handle_t handle, int32_t *reply)
Fetch PSA client return result.
int32_t tfm_ns_mailbox_init(struct ns_mailbox_queue_t *queue)
NSPE mailbox initialization.
void tfm_ns_mailbox_hal_exit_critical_isr(void)
Enter critical section of NSPE mailbox in IRQ handler.
void tfm_ns_mailbox_hal_enter_critical_isr(void)
Enter critical section of NSPE mailbox in IRQ handler.
int32_t tfm_ns_mailbox_hal_init(struct ns_mailbox_queue_t *queue)
Platform specific NSPE mailbox initialization. Invoked by tfm_ns_mailbox_init().
mailbox_msg_handle_t tfm_ns_mailbox_tx_client_req(uint32_t call_type, const struct psa_client_params_t *params, int32_t client_id)
Prepare and send PSA client request to SPE via mailbox.
bool tfm_ns_mailbox_is_msg_replied(mailbox_msg_handle_t handle)
Check whether a specific mailbox message has been replied.
void tfm_ns_mailbox_hal_exit_critical(void)
Exit critical section of NSPE mailbox.