Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2012 ARM Ltd.
0004  *
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License version 2 as
0007  * published by the Free Software Foundation.
0008  *
0009  * This program is distributed in the hope that it will be useful,
0010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012  * GNU General Public License for more details.
0013  *
0014  * You should have received a copy of the GNU General Public License
0015  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016  */
0017 #ifndef _UAPI__ASM_HWCAP_H
0018 #define _UAPI__ASM_HWCAP_H
0019 
0020 /*
0021  * HWCAP flags - for AT_HWCAP
0022  *
0023  * Bits 62 and 63 are reserved for use by libc.
0024  * Bits 32-61 are unallocated for potential use by libc.
0025  */
0026 #define HWCAP_FP        (1 << 0)
0027 #define HWCAP_ASIMD     (1 << 1)
0028 #define HWCAP_EVTSTRM       (1 << 2)
0029 #define HWCAP_AES       (1 << 3)
0030 #define HWCAP_PMULL     (1 << 4)
0031 #define HWCAP_SHA1      (1 << 5)
0032 #define HWCAP_SHA2      (1 << 6)
0033 #define HWCAP_CRC32     (1 << 7)
0034 #define HWCAP_ATOMICS       (1 << 8)
0035 #define HWCAP_FPHP      (1 << 9)
0036 #define HWCAP_ASIMDHP       (1 << 10)
0037 #define HWCAP_CPUID     (1 << 11)
0038 #define HWCAP_ASIMDRDM      (1 << 12)
0039 #define HWCAP_JSCVT     (1 << 13)
0040 #define HWCAP_FCMA      (1 << 14)
0041 #define HWCAP_LRCPC     (1 << 15)
0042 #define HWCAP_DCPOP     (1 << 16)
0043 #define HWCAP_SHA3      (1 << 17)
0044 #define HWCAP_SM3       (1 << 18)
0045 #define HWCAP_SM4       (1 << 19)
0046 #define HWCAP_ASIMDDP       (1 << 20)
0047 #define HWCAP_SHA512        (1 << 21)
0048 #define HWCAP_SVE       (1 << 22)
0049 #define HWCAP_ASIMDFHM      (1 << 23)
0050 #define HWCAP_DIT       (1 << 24)
0051 #define HWCAP_USCAT     (1 << 25)
0052 #define HWCAP_ILRCPC        (1 << 26)
0053 #define HWCAP_FLAGM     (1 << 27)
0054 #define HWCAP_SSBS      (1 << 28)
0055 #define HWCAP_SB        (1 << 29)
0056 #define HWCAP_PACA      (1 << 30)
0057 #define HWCAP_PACG      (1UL << 31)
0058 
0059 /*
0060  * HWCAP2 flags - for AT_HWCAP2
0061  */
0062 #define HWCAP2_DCPODP       (1 << 0)
0063 #define HWCAP2_SVE2     (1 << 1)
0064 #define HWCAP2_SVEAES       (1 << 2)
0065 #define HWCAP2_SVEPMULL     (1 << 3)
0066 #define HWCAP2_SVEBITPERM   (1 << 4)
0067 #define HWCAP2_SVESHA3      (1 << 5)
0068 #define HWCAP2_SVESM4       (1 << 6)
0069 #define HWCAP2_FLAGM2       (1 << 7)
0070 #define HWCAP2_FRINT        (1 << 8)
0071 #define HWCAP2_SVEI8MM      (1 << 9)
0072 #define HWCAP2_SVEF32MM     (1 << 10)
0073 #define HWCAP2_SVEF64MM     (1 << 11)
0074 #define HWCAP2_SVEBF16      (1 << 12)
0075 #define HWCAP2_I8MM     (1 << 13)
0076 #define HWCAP2_BF16     (1 << 14)
0077 #define HWCAP2_DGH      (1 << 15)
0078 #define HWCAP2_RNG      (1 << 16)
0079 #define HWCAP2_BTI      (1 << 17)
0080 #define HWCAP2_MTE      (1 << 18)
0081 #define HWCAP2_ECV      (1 << 19)
0082 #define HWCAP2_AFP      (1 << 20)
0083 #define HWCAP2_RPRES        (1 << 21)
0084 #define HWCAP2_MTE3     (1 << 22)
0085 #define HWCAP2_SME      (1 << 23)
0086 #define HWCAP2_SME_I16I64   (1 << 24)
0087 #define HWCAP2_SME_F64F64   (1 << 25)
0088 #define HWCAP2_SME_I8I32    (1 << 26)
0089 #define HWCAP2_SME_F16F32   (1 << 27)
0090 #define HWCAP2_SME_B16F32   (1 << 28)
0091 #define HWCAP2_SME_F32F32   (1 << 29)
0092 #define HWCAP2_SME_FA64     (1 << 30)
0093 #define HWCAP2_WFXT     (1UL << 31)
0094 #define HWCAP2_EBF16        (1UL << 32)
0095 
0096 #endif /* _UAPI__ASM_HWCAP_H */