xref: /linux/arch/arm64/include/uapi/asm/hwcap.h (revision 7503197562567b57ec14feb3a9d5400ebc56812f)
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 /*
214262a727SDavid Howells  * HWCAP flags - for elf_hwcap (in kernel) and 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)
53*75031975SMark Rutland #define HWCAP_PACA		(1 << 30)
54*75031975SMark Rutland #define HWCAP_PACG		(1UL << 31)
554262a727SDavid Howells 
564262a727SDavid Howells #endif /* _UAPI__ASM_HWCAP_H */
57