xref: /rk3399_ARM-atf/include/lib/extensions/spe.h (revision 7623e085cb5396054b72f1ea3f02e8c7a34568b5)
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 void spe_stop(void);
18 #else
19 static inline void spe_enable(cpu_context_t *ctx)
20 {
21 }
22 static inline void spe_disable(cpu_context_t *ctx)
23 {
24 }
25 static inline void spe_init_el2_unused(void)
26 {
27 }
28 static inline void spe_stop(void)
29 {
30 }
31 #endif /* ENABLE_SPE_FOR_NS */
32 
33 #endif /* SPE_H */
34