1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Copyright (C) 2012 ARM Ltd. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 6*4882a593Smuzhiyun * it under the terms of the GNU General Public License version 2 as 7*4882a593Smuzhiyun * published by the Free Software Foundation. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * This program is distributed in the hope that it will be useful, 10*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*4882a593Smuzhiyun * GNU General Public License for more details. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * You should have received a copy of the GNU General Public License 15*4882a593Smuzhiyun * along with this program. If not, see <http://www.gnu.org/licenses/>. 16*4882a593Smuzhiyun */ 17*4882a593Smuzhiyun #ifndef _UAPI__ASM_HWCAP_H 18*4882a593Smuzhiyun #define _UAPI__ASM_HWCAP_H 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun /* 21*4882a593Smuzhiyun * HWCAP flags - for AT_HWCAP 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun #define HWCAP_FP (1 << 0) 24*4882a593Smuzhiyun #define HWCAP_ASIMD (1 << 1) 25*4882a593Smuzhiyun #define HWCAP_EVTSTRM (1 << 2) 26*4882a593Smuzhiyun #define HWCAP_AES (1 << 3) 27*4882a593Smuzhiyun #define HWCAP_PMULL (1 << 4) 28*4882a593Smuzhiyun #define HWCAP_SHA1 (1 << 5) 29*4882a593Smuzhiyun #define HWCAP_SHA2 (1 << 6) 30*4882a593Smuzhiyun #define HWCAP_CRC32 (1 << 7) 31*4882a593Smuzhiyun #define HWCAP_ATOMICS (1 << 8) 32*4882a593Smuzhiyun #define HWCAP_FPHP (1 << 9) 33*4882a593Smuzhiyun #define HWCAP_ASIMDHP (1 << 10) 34*4882a593Smuzhiyun #define HWCAP_CPUID (1 << 11) 35*4882a593Smuzhiyun #define HWCAP_ASIMDRDM (1 << 12) 36*4882a593Smuzhiyun #define HWCAP_JSCVT (1 << 13) 37*4882a593Smuzhiyun #define HWCAP_FCMA (1 << 14) 38*4882a593Smuzhiyun #define HWCAP_LRCPC (1 << 15) 39*4882a593Smuzhiyun #define HWCAP_DCPOP (1 << 16) 40*4882a593Smuzhiyun #define HWCAP_SHA3 (1 << 17) 41*4882a593Smuzhiyun #define HWCAP_SM3 (1 << 18) 42*4882a593Smuzhiyun #define HWCAP_SM4 (1 << 19) 43*4882a593Smuzhiyun #define HWCAP_ASIMDDP (1 << 20) 44*4882a593Smuzhiyun #define HWCAP_SHA512 (1 << 21) 45*4882a593Smuzhiyun #define HWCAP_SVE (1 << 22) 46*4882a593Smuzhiyun #define HWCAP_ASIMDFHM (1 << 23) 47*4882a593Smuzhiyun #define HWCAP_DIT (1 << 24) 48*4882a593Smuzhiyun #define HWCAP_USCAT (1 << 25) 49*4882a593Smuzhiyun #define HWCAP_ILRCPC (1 << 26) 50*4882a593Smuzhiyun #define HWCAP_FLAGM (1 << 27) 51*4882a593Smuzhiyun #define HWCAP_SSBS (1 << 28) 52*4882a593Smuzhiyun #define HWCAP_SB (1 << 29) 53*4882a593Smuzhiyun #define HWCAP_PACA (1 << 30) 54*4882a593Smuzhiyun #define HWCAP_PACG (1UL << 31) 55*4882a593Smuzhiyun 56*4882a593Smuzhiyun /* 57*4882a593Smuzhiyun * HWCAP2 flags - for AT_HWCAP2 58*4882a593Smuzhiyun */ 59*4882a593Smuzhiyun #define HWCAP2_DCPODP (1 << 0) 60*4882a593Smuzhiyun #define HWCAP2_SVE2 (1 << 1) 61*4882a593Smuzhiyun #define HWCAP2_SVEAES (1 << 2) 62*4882a593Smuzhiyun #define HWCAP2_SVEPMULL (1 << 3) 63*4882a593Smuzhiyun #define HWCAP2_SVEBITPERM (1 << 4) 64*4882a593Smuzhiyun #define HWCAP2_SVESHA3 (1 << 5) 65*4882a593Smuzhiyun #define HWCAP2_SVESM4 (1 << 6) 66*4882a593Smuzhiyun #define HWCAP2_FLAGM2 (1 << 7) 67*4882a593Smuzhiyun #define HWCAP2_FRINT (1 << 8) 68*4882a593Smuzhiyun #define HWCAP2_SVEI8MM (1 << 9) 69*4882a593Smuzhiyun #define HWCAP2_SVEF32MM (1 << 10) 70*4882a593Smuzhiyun #define HWCAP2_SVEF64MM (1 << 11) 71*4882a593Smuzhiyun #define HWCAP2_SVEBF16 (1 << 12) 72*4882a593Smuzhiyun #define HWCAP2_I8MM (1 << 13) 73*4882a593Smuzhiyun #define HWCAP2_BF16 (1 << 14) 74*4882a593Smuzhiyun #define HWCAP2_DGH (1 << 15) 75*4882a593Smuzhiyun #define HWCAP2_RNG (1 << 16) 76*4882a593Smuzhiyun #define HWCAP2_BTI (1 << 17) 77*4882a593Smuzhiyun #define HWCAP2_MTE (1 << 18) 78*4882a593Smuzhiyun #define HWCAP2_ECV (1 << 19) 79*4882a593Smuzhiyun #define HWCAP2_AFP (1 << 20) 80*4882a593Smuzhiyun #define HWCAP2_RPRES (1 << 21) 81*4882a593Smuzhiyun 82*4882a593Smuzhiyun #endif /* _UAPI__ASM_HWCAP_H */ 83