xref: /rk3399_ARM-atf/include/lib/extensions/sve.h (revision ed8f06ddda52bc0333f79e9ff798419e67771ae5)
1 /*
2  * Copyright (c) 2017-2023, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef SVE_H
8 #define SVE_H
9 
10 #include <context.h>
11 
12 #if (ENABLE_SME_FOR_NS || ENABLE_SVE_FOR_NS)
13 void sve_enable(cpu_context_t *context);
14 void sve_init_el2_unused(void);
15 void sve_disable(cpu_context_t *context);
16 #else
17 static inline void sve_enable(cpu_context_t *context)
18 {
19 }
20 static inline void sve_init_el2_unused(void)
21 {
22 }
23 static inline void sve_disable(cpu_context_t *context)
24 {
25 }
26 #endif /* ( ENABLE_SME_FOR_NS | ENABLE_SVE_FOR_NS ) */
27 
28 #endif /* SVE_H */
29