xref: /linux/arch/arm64/include/uapi/asm/hwcap.h (revision fee29f008aa3f2aff01117f28b57b1145d92cb9b)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
24262a727SDavid Howells /*
34262a727SDavid Howells  * Copyright (C) 2012 ARM Ltd.
44262a727SDavid Howells  *
54262a727SDavid Howells  * This program is free software; you can redistribute it and/or modify
64262a727SDavid Howells  * it under the terms of the GNU General Public License version 2 as
74262a727SDavid Howells  * published by the Free Software Foundation.
84262a727SDavid Howells  *
94262a727SDavid Howells  * This program is distributed in the hope that it will be useful,
104262a727SDavid Howells  * but WITHOUT ANY WARRANTY; without even the implied warranty of
114262a727SDavid Howells  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
124262a727SDavid Howells  * GNU General Public License for more details.
134262a727SDavid Howells  *
144262a727SDavid Howells  * You should have received a copy of the GNU General Public License
154262a727SDavid Howells  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
164262a727SDavid Howells  */
174262a727SDavid Howells #ifndef _UAPI__ASM_HWCAP_H
184262a727SDavid Howells #define _UAPI__ASM_HWCAP_H
194262a727SDavid Howells 
204262a727SDavid Howells /*
21aaba098fSAndrew Murray  * HWCAP flags - for AT_HWCAP
224262a727SDavid Howells  */
234262a727SDavid Howells #define HWCAP_FP		(1 << 0)
244262a727SDavid Howells #define HWCAP_ASIMD		(1 << 1)
2546efe547SSudeep KarkadaNagesha #define HWCAP_EVTSTRM		(1 << 2)
264bff28ccSSteve Capper #define HWCAP_AES		(1 << 3)
274bff28ccSSteve Capper #define HWCAP_PMULL		(1 << 4)
284bff28ccSSteve Capper #define HWCAP_SHA1		(1 << 5)
294bff28ccSSteve Capper #define HWCAP_SHA2		(1 << 6)
304bff28ccSSteve Capper #define HWCAP_CRC32		(1 << 7)
3140a1db24SWill Deacon #define HWCAP_ATOMICS		(1 << 8)
32bf500618SSuzuki K Poulose #define HWCAP_FPHP		(1 << 9)
33bf500618SSuzuki K Poulose #define HWCAP_ASIMDHP		(1 << 10)
3477c97b4eSSuzuki K Poulose #define HWCAP_CPUID		(1 << 11)
35f92f5ce0SSuzuki K Poulose #define HWCAP_ASIMDRDM		(1 << 12)
36c8c3798dSSuzuki K Poulose #define HWCAP_JSCVT		(1 << 13)
37cb567e79SSuzuki K Poulose #define HWCAP_FCMA		(1 << 14)
38c651aae5SSuzuki K Poulose #define HWCAP_LRCPC		(1 << 15)
397aac405eSRobin Murphy #define HWCAP_DCPOP		(1 << 16)
40f5e035f8SSuzuki K Poulose #define HWCAP_SHA3		(1 << 17)
41f5e035f8SSuzuki K Poulose #define HWCAP_SM3		(1 << 18)
42f5e035f8SSuzuki K Poulose #define HWCAP_SM4		(1 << 19)
43f5e035f8SSuzuki K Poulose #define HWCAP_ASIMDDP		(1 << 20)
44f5e035f8SSuzuki K Poulose #define HWCAP_SHA512		(1 << 21)
4543994d82SDave Martin #define HWCAP_SVE		(1 << 22)
463b3b6810SDongjiu Geng #define HWCAP_ASIMDFHM		(1 << 23)
477206dc93SSuzuki K Poulose #define HWCAP_DIT		(1 << 24)
487206dc93SSuzuki K Poulose #define HWCAP_USCAT		(1 << 25)
497206dc93SSuzuki K Poulose #define HWCAP_ILRCPC		(1 << 26)
507206dc93SSuzuki K Poulose #define HWCAP_FLAGM		(1 << 27)
51d71be2b6SWill Deacon #define HWCAP_SSBS		(1 << 28)
52bd4fb6d2SWill Deacon #define HWCAP_SB		(1 << 29)
5375031975SMark Rutland #define HWCAP_PACA		(1 << 30)
5475031975SMark Rutland #define HWCAP_PACG		(1UL << 31)
554262a727SDavid Howells 
56671db581SAndrew Murray /*
57671db581SAndrew Murray  * HWCAP2 flags - for AT_HWCAP2
58671db581SAndrew Murray  */
59671db581SAndrew Murray #define HWCAP2_DCPODP		(1 << 0)
6006a916feSDave Martin #define HWCAP2_SVE2		(1 << 1)
6106a916feSDave Martin #define HWCAP2_SVEAES		(1 << 2)
6206a916feSDave Martin #define HWCAP2_SVEPMULL		(1 << 3)
6306a916feSDave Martin #define HWCAP2_SVEBITPERM	(1 << 4)
6406a916feSDave Martin #define HWCAP2_SVESHA3		(1 << 5)
6506a916feSDave Martin #define HWCAP2_SVESM4		(1 << 6)
6612019374SMark Brown #define HWCAP2_FLAGM2		(1 << 7)
67ca9503fcSMark Brown #define HWCAP2_FRINT		(1 << 8)
68d4209d8bSSteven Price #define HWCAP2_SVEI8MM		(1 << 9)
69d4209d8bSSteven Price #define HWCAP2_SVEF32MM		(1 << 10)
70d4209d8bSSteven Price #define HWCAP2_SVEF64MM		(1 << 11)
71d4209d8bSSteven Price #define HWCAP2_SVEBF16		(1 << 12)
72d4209d8bSSteven Price #define HWCAP2_I8MM		(1 << 13)
73d4209d8bSSteven Price #define HWCAP2_BF16		(1 << 14)
74d4209d8bSSteven Price #define HWCAP2_DGH		(1 << 15)
75bc206065SWill Deacon #define HWCAP2_RNG		(1 << 16)
768ef8f360SDave Martin #define HWCAP2_BTI		(1 << 17)
773b714d24SVincenzo Frascino #define HWCAP2_MTE		(1 << 18)
78*fee29f00SMarc Zyngier #define HWCAP2_ECV		(1 << 19)
79671db581SAndrew Murray 
804262a727SDavid Howells #endif /* _UAPI__ASM_HWCAP_H */
81