1 /* 2 * Copyright (c) 2019-2023, Arm Limited. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 */ 7 8 #ifndef __TFM_SPE_MAILBOX_H__ 9 #define __TFM_SPE_MAILBOX_H__ 10 11 #include "tfm_mailbox.h" 12 #include "tfm_hal_mailbox.h" 13 14 /** 15 * \brief Handle mailbox message(s) from NSPE. 16 * 17 * \retval MAILBOX_SUCCESS Successfully get PSA client call return result. 18 * \retval Other return code Operation failed with an error code. 19 */ 20 int32_t tfm_mailbox_handle_msg(void); 21 22 /** 23 * \brief Return PSA client call return result to NSPE. 24 * 25 * \param[in] handle The handle to the mailbox message 26 * \param[in] reply PSA client call return result to be written 27 * to NSPE. 28 * 29 * \retval MAILBOX_SUCCESS Operation succeeded. 30 * \retval Other return code Operation failed with an error code. 31 */ 32 int32_t tfm_mailbox_reply_msg(mailbox_msg_handle_t handle, int32_t reply); 33 34 #endif /* __TFM_SPE_MAILBOX_H__ */ 35