xref: /rk3399_ARM-atf/include/lib/extensions/spe.h (revision 10ecd58093a34e95e2dfad65b1180610f29397cc)
1 /*
2  * Copyright (c) 2017-2024, 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(cpu_context_t *ctx);
15 void spe_disable(cpu_context_t *ctx);
16 void spe_init_el2_unused(void);
17 #else
18 static inline void spe_enable(cpu_context_t *ctx)
19 {
20 }
21 static inline void spe_disable(cpu_context_t *ctx)
22 {
23 }
24 static inline void spe_init_el2_unused(void)
25 {
26 }
27 #endif /* ENABLE_SPE_FOR_NS */
28 
29 #endif /* SPE_H */
30