18 #ifndef _PAL_CLIENT_API_H_ 19 #define _PAL_CLIENT_API_H_ 21 #if PSA_IPC_IMPLEMENTED 23 #include "psa/client.h" 29 #include "psa_manifest/sid.h" 34 #define PSA_VERSION_NONE (0) 35 #define PSA_SUCCESS (0) 36 #define PSA_CONNECTION_REFUSED (INT32_MIN + 1) 37 #define PSA_CONNECTION_BUSY (INT32_MIN + 2) 38 #define PSA_DROP_CONNECTION (INT32_MIN) 39 #define PSA_NULL_HANDLE ((psa_handle_t)0) 41 typedef int32_t psa_status_t;
42 typedef int32_t psa_handle_t;
56 psa_handle_t
psa_connect(uint32_t sid, uint32_t minor_version);
57 psa_status_t
psa_call(psa_handle_t handle,
Copyright (c) 2018, Arm Limited or its affiliates.
uint32_t psa_framework_version(void)
Retrieve the version of the PSA Framework API that is implemented.
psa_status_t psa_call(psa_handle_t handle, const psa_invec *in_vec, size_t in_len, const psa_outvec *out_vec, size_t out_len)
Call a connected Root of Trust Service.
size_t len
Length in bytes of the buffer.
uint32_t pal_ipc_version(uint32_t sid)
Retrieve the minor version of a Root of Trust Service by its SID.
struct psa_outvec psa_outvec
Structure which describes a scatter-gather output buffer.
psa_handle_t pal_ipc_connect(uint32_t sid, uint32_t minor_version)
Connect to given sid.
const void * base
Starting address of the buffer.
void pal_ipc_close(psa_handle_t handle)
Close a connection to a Root of Trust Service.
psa_handle_t psa_connect(uint32_t sid, uint32_t minor_version)
Connect to a Root of Trust Service by its SID.
Structure which describes a scatter-gather output buffer.
Structure that describes a scatter-gather input buffer.
psa_status_t pal_ipc_call(psa_handle_t handle, const psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
Call a connected Root of Trust Service.
void psa_close(psa_handle_t handle)
Close a connection to a Root of Trust Service.
struct psa_invec psa_invec
Structure that describes a scatter-gather input buffer.
uint32_t psa_version(uint32_t sid)
Retrieve the minor version of a Root of Trust Service by its SID.
uint32_t pal_ipc_framework_version(void)
Retrieve the version of the PSA Framework API that is implemented.