#include <string.h>
#include "cmsis_compiler.h"
#include "tfm_ns_mailbox.h"
#include "tfm_plat_ns.h"
Go to the source code of this file.
Fetch the handle to the first replied mailbox message in the NSPE mailbox queue. This function is intended to be called inside platform specific notification IRQ handler.
- Note
- The replied status of the fetched mailbox message will be cleaned after the message is fetched. When this function is called again, it fetches the next replied mailbox message from the NSPE mailbox queue.
- Returns
- Return the handle to the first replied mailbox message in the queue. Return MAILBOX_MSG_NULL_HANDLE if no mailbox message is replied.
Definition at line 314 of file tfm_ns_mailbox.c.
Return the handle of owner task of a mailbox message according to the mailbox_msg_handle_t.
- Parameters
-
[in] | handle | The handle of mailbox message. |
- Returns
- Return the handle value of the owner task.
Definition at line 349 of file tfm_ns_mailbox.c.
NSPE mailbox initialization.
- Parameters
-
[in] | queue | The base address of NSPE mailbox queue to be initialized. |
- Return values
-
MAILBOX_SUCCESS | Operation succeeded. |
Other | return code Operation failed with an error code. |
Definition at line 364 of file tfm_ns_mailbox.c.
Check whether a specific mailbox message has been replied.
- Parameters
-
[in] | handle | The handle to the mailbox message |
- Return values
-
true | The PSA client call return value is replied. |
false | The PSA client call return value is not replied yet. |
Definition at line 284 of file tfm_ns_mailbox.c.
Fetch PSA client return result.
- Parameters
-
[in] | handle | The handle to the mailbox message |
[out] | reply | The address to be written with return result. |
- Return values
-
MAILBOX_SUCCESS | Successfully get PSA client call return result. |
Other | return code Operation failed with an error code. |
Definition at line 247 of file tfm_ns_mailbox.c.
Prepare and send PSA client request to SPE via mailbox.
- Parameters
-
[in] | call_type | PSA client call type |
[in] | params | Parmaters used for PSA client call |
[in] | client_id | Optional client ID of non-secure caller. It is required to identify the non-secure caller when NSPE OS enforces non-secure task isolation. |
- Return values
-
>= | 0 The handle to the mailbox message assigned. |
< | 0 Operation failed with an error code. |
Definition at line 196 of file tfm_ns_mailbox.c.