xref: /rk3399_ARM-atf/include/lib/extensions/spe.h (revision d335bbb1e20d4a8f0a6a26b97ba2a710015bf727)
1 /*
2  * Copyright (c) 2017-2025, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef SPE_H
8 #define SPE_H
9 
10 #include <stdbool.h>
11 #include <context.h>
12 
13 #if ENABLE_SPE_FOR_NS
14 void spe_enable_ns(cpu_context_t *ctx);
15 void spe_disable_secure(cpu_context_t *ctx);
16 void spe_disable_realm(cpu_context_t *ctx);
17 void spe_init_el2_unused(void);
18 #else
19 static inline void spe_enable_ns(cpu_context_t *ctx)
20 {
21 }
22 static inline void spe_disable_secure(cpu_context_t *ctx)
23 {
24 }
25 static inline void spe_disable_realm(cpu_context_t *ctx)
26 {
27 }
28 static inline void spe_init_el2_unused(void)
29 {
30 }
31 #endif /* ENABLE_SPE_FOR_NS */
32 
33 #endif /* SPE_H */
34