33 #define NON_SECURE_CLIENT_ID (1)
39 #define PSA_INTER_CORE_COMM_ERR (INT32_MIN + 0xFF)
50 #ifdef TFM_MULTI_CORE_MULTI_CLIENT_CALL
51 tfm_ns_mailbox_wait_reply(handle);
78 mailbox_wait_reply(handle);
112 mailbox_wait_reply(handle);
147 mailbox_wait_reply(handle);
183 if (msg_handle < 0) {
188 mailbox_wait_reply(msg_handle);
216 if (msg_handle < 0) {
221 mailbox_wait_reply(msg_handle);
psa_handle_t psa_connect(uint32_t sid, uint32_t version)
Connect to an RoT Service by its SID.
struct psa_client_params_t::@2::@7 psa_close_params
#define NON_SECURE_CLIENT_ID
struct psa_client_params_t::@2::@6 psa_call_params
psa_status_t psa_call(psa_handle_t handle, int32_t type, const psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
Call an RoT Service on an established connection.
uint32_t tfm_ns_multi_core_lock_acquire(void)
Acquire the multi-core lock for synchronizing PSA client call(s) The actual implementation depends on...
uint32_t psa_framework_version(void)
Retrieve the version of the PSA Framework API that is implemented.
#define MAILBOX_PSA_CLOSE
Standard error codes for the SPM and RoT Services.
uint32_t psa_version(uint32_t sid)
Retrieve the version of an RoT Service or indicate that it is not present on this system...
#define MAILBOX_PSA_CONNECT
#define PSA_ERROR_GENERIC_ERROR
#define PSA_INTER_CORE_COMM_ERR
int32_t mailbox_msg_handle_t
int32_t tfm_ns_mailbox_rx_client_reply(mailbox_msg_handle_t handle, int32_t *reply)
Fetch PSA client return result.
uint32_t tfm_ns_multi_core_lock_release(void)
Release the multi-core lock for synchronizing PSA client call(s) The actual implementation depends on...
#define OS_WRAPPER_SUCCESS
void psa_close(psa_handle_t handle)
Close a connection to an RoT Service.
struct psa_client_params_t::@2::@5 psa_connect_params
#define MAILBOX_PSA_FRAMEWORK_VERSION
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.
int32_t psa_status_t
Function return status.
bool tfm_ns_mailbox_is_msg_replied(mailbox_msg_handle_t handle)
Check whether a specific mailbox message has been replied.
#define MAILBOX_PSA_VERSION
struct psa_client_params_t::@2::@4 psa_version_params