xref: /rk3399_ARM-atf/include/lib/extensions/trbe.h (revision 10ecd58093a34e95e2dfad65b1180610f29397cc)
1 /*
2  * Copyright (c) 2021-2024, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef TRBE_H
8 #define TRBE_H
9 
10 #include <context.h>
11 
12 #if ENABLE_TRBE_FOR_NS
13 void trbe_disable(cpu_context_t *ctx);
14 void trbe_enable(cpu_context_t *ctx);
15 void trbe_init_el2_unused(void);
16 #else
17 static inline void trbe_disable(cpu_context_t *ctx)
18 {
19 }
20 static inline void trbe_enable(cpu_context_t *ctx)
21 {
22 }
23 static inline void trbe_init_el2_unused(void)
24 {
25 }
26 #endif /* ENABLE_TRBE_FOR_NS */
27 
28 #endif /* TRBE_H */
29