#include <stdint.h>
#include <stdbool.h>
#include "psa/client.h"
Go to the source code of this file.
|
uint32_t | tfm_spm_client_psa_framework_version (void) |
| handler for psa_framework_version. More...
|
|
uint32_t | tfm_spm_client_psa_version (uint32_t sid, bool ns_caller) |
| handler for psa_version. More...
|
|
psa_status_t | tfm_spm_client_psa_connect (uint32_t sid, uint32_t version, bool ns_caller) |
| handler for psa_connect. More...
|
|
psa_status_t | tfm_spm_client_psa_call (psa_handle_t handle, int32_t type, const psa_invec *inptr, size_t in_num, psa_outvec *outptr, size_t out_num, bool ns_caller, uint32_t privileged) |
| handler for psa_call. More...
|
|
void | tfm_spm_client_psa_close (psa_handle_t handle, bool ns_caller) |
| handler for psa_close. More...
|
|
handler for psa_call.
- Parameters
-
- Return values
-
PSA_SUCCESS | Success. |
Does not return | The call is invalid, one or more of the following are true:
- An invalid handle was passed.
- The connection is already handling a request.
- An invalid memory reference was provided.
- in_num + out_num > PSA_MAX_IOVEC.
- The message is unrecognized by the RoT Service or incorrectly formatted.
|
Definition at line 113 of file spm_psa_client_call.c.
void tfm_spm_client_psa_close |
( |
psa_handle_t |
handle, |
|
|
bool |
ns_caller |
|
) |
| |
handler for psa_close.
- Parameters
-
[in] | handle | Service handle to the connection to be closed, psa_handle_t |
[in] | ns_caller | If 'true', call from non-secure client. Otherwise from secure client. |
- Return values
-
void | Success. |
Does not return | The call is invalid, one or more of the following are true:
- An invalid handle was provided that is not the null handle.
- The connection is handling a request.
|
Definition at line 252 of file spm_psa_client_call.c.
psa_status_t tfm_spm_client_psa_connect |
( |
uint32_t |
sid, |
|
|
uint32_t |
version, |
|
|
bool |
ns_caller |
|
) |
| |
handler for psa_connect.
- Parameters
-
[in] | sid | RoT Service identity. |
[in] | version | The version of the RoT Service. |
[in] | ns_caller | If 'true', call from non-secure client. Otherwise from secure client. |
- Return values
-
PSA_SUCCESS | Success. |
PSA_ERROR_CONNECTION_REFUSED | The SPM or RoT Service has refused the connection. |
PSA_ERROR_CONNECTION_BUSY | The SPM or RoT Service cannot make the connection at the moment. |
Does not return | The RoT Service ID and version are not supported, or the caller is not permitted to access the service. |
Definition at line 47 of file spm_psa_client_call.c.
uint32_t tfm_spm_client_psa_framework_version |
( |
void |
| ) |
|
uint32_t tfm_spm_client_psa_version |
( |
uint32_t |
sid, |
|
|
bool |
ns_caller |
|
) |
| |
handler for psa_version.
- Parameters
-
[in] | sid | RoT Service identity. |
[in] | ns_caller | If 'true', call from non-secure client. Otherwise from secure client. |
- Return values
-
PSA_VERSION_NONE | The RoT Service is not implemented, or the caller is not permitted to access the service. |
> | 0 The version of the implemented RoT Service. |
Definition at line 23 of file spm_psa_client_call.c.