1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2024 ARM Limited 4 * 5 * Common helper functions for SVE and SME functionality. 6 */ 7 8 #ifndef __SVE_HELPERS_H__ 9 #define __SVE_HELPERS_H__ 10 11 #include <stdbool.h> 12 13 #define VLS_USE_SVE false 14 #define VLS_USE_SME true 15 16 extern unsigned int vls[]; 17 extern unsigned int nvls; 18 19 int sve_fill_vls(bool use_sme, int min_vls); 20 21 #endif 22