TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tfm_secure_client_service.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
10 #ifdef TFM_PSA_API
11 #include "psa/client.h"
12 #include "psa/service.h"
14 #endif
15 
23 {
24 #ifdef TFM_PSA_API
25  psa_msg_t msg;
26 
27  while (1) {
30  switch (msg.type) {
31  case PSA_IPC_CONNECT:
33  break;
34  case PSA_IPC_CALL:
36  break;
37  case PSA_IPC_DISCONNECT:
39  break;
40  default:
41  /* cannot get here? [broken SPM]. TODO*/
42  break;
43  }
44  }
45 #else
46  return 0;
47 #endif
48 }
49 
51 {
53  return 0;
54 }
int32_t tfm_secure_client_service_init(void)
Service initialisation function. No special initialisation is required.
#define PSA_BLOCK
Definition: service.h:31
int32_t type
Definition: service.h:56
#define PSA_SUCCESS
Definition: crypto_values.h:35
psa_handle_t handle
Definition: service.h:61
int32_t tfm_secure_client_service_sfn_run_tests(void)
Runs the secure integration tests.
#define PSA_IPC_DISCONNECT
Definition: service.h:47
#define TFM_SECURE_CLIENT_SFN_RUN_TESTS_SIGNAL
void psa_reply(psa_handle_t msg_handle, psa_status_t status)
Complete handling of a specific message and unblock the client.
Definition: psa_service.c:67
psa_signal_t psa_wait(psa_signal_t signal_mask, uint32_t timeout)
Return the Secure Partition interrupt signals that have been asserted from a subset of signals provid...
Definition: psa_service.c:15
enum test_suite_err_t start_integ_test(void)
Executes integration tests. To be called from appropriate secure/non-secure service client...
#define PSA_IPC_CONNECT
Definition: service.h:45
#define PSA_IPC_CALL
Definition: client.h:59
psa_status_t psa_get(psa_signal_t signal, psa_msg_t *msg)
Retrieve the message which corresponds to a given RoT Service signal and remove the message from the ...
Definition: psa_service.c:24