• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2024, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef TRF_H
8 #define TRF_H
9 
10 #include <context.h>
11 
12 #if ENABLE_TRF_FOR_NS
13 
14 #if __aarch64__
15 void trf_enable(cpu_context_t *ctx);
16 void trf_init_el2_unused(void);
17 #else /* !__aarch64 */
18 void trf_init_el3(void);
19 #endif /* __aarch64__ */
20 
21 #else /* ENABLE_TRF_FOR_NS=0 */
22 
23 #if __aarch64__
trf_enable(cpu_context_t * ctx)24 static inline void trf_enable(cpu_context_t *ctx)
25 {
26 }
trf_init_el2_unused(void)27 static inline void trf_init_el2_unused(void)
28 {
29 }
30 #else /* !__aarch64 */
trf_init_el3(void)31 static inline void trf_init_el3(void)
32 {
33 }
34 #endif /* __aarch64__*/
35 
36 #endif /* ENABLE_TRF_FOR_NS */
37 
38 #endif /* TRF_H */
39