Ashutosh Singh | f4d8867 | 2017-11-29 13:35:43 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2017, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | #ifndef __TFM_NS_LOCK_H__ |
| 8 | #define __TFM_NS_LOCK_H__ |
| 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | #include <stdint.h> |
| 15 | #include "tfm_ns_svc.h" |
| 16 | |
| 17 | /** |
| 18 | * \brief NS world, NS lock based dispatcher |
| 19 | * |
| 20 | * \details To be called from the SVC wrapper API interface |
| 21 | */ |
| 22 | uint32_t tfm_ns_lock_svc_dispatch(enum tfm_svc_num svc_num, |
| 23 | uint32_t arg0, |
| 24 | uint32_t arg1, |
| 25 | uint32_t arg2, |
| 26 | uint32_t arg3); |
| 27 | |
| 28 | /** |
| 29 | * \brief NS world, Init NS lock |
| 30 | * |
| 31 | * \details Needs to be called during non-secure app init |
| 32 | * to initialize the TFM NS lock object |
| 33 | */ |
| 34 | uint32_t tfm_ns_lock_init(); |
| 35 | |
| 36 | #ifdef __cplusplus |
| 37 | } |
| 38 | #endif |
| 39 | |
| 40 | #endif /* __TFM_NS_LOCK_H__ */ |