18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2012 ARM Ltd.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
68c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License version 2 as
78c2ecf20Sopenharmony_ci * published by the Free Software Foundation.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful,
108c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
118c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
128c2ecf20Sopenharmony_ci * GNU General Public License for more details.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License
158c2ecf20Sopenharmony_ci * along with this program.  If not, see <http://www.gnu.org/licenses/>.
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#ifndef _UAPI__ASM_HWCAP_H
188c2ecf20Sopenharmony_ci#define _UAPI__ASM_HWCAP_H
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci/*
218c2ecf20Sopenharmony_ci * HWCAP flags - for AT_HWCAP
228c2ecf20Sopenharmony_ci */
238c2ecf20Sopenharmony_ci#define HWCAP_FP		(1 << 0)
248c2ecf20Sopenharmony_ci#define HWCAP_ASIMD		(1 << 1)
258c2ecf20Sopenharmony_ci#define HWCAP_EVTSTRM		(1 << 2)
268c2ecf20Sopenharmony_ci#define HWCAP_AES		(1 << 3)
278c2ecf20Sopenharmony_ci#define HWCAP_PMULL		(1 << 4)
288c2ecf20Sopenharmony_ci#define HWCAP_SHA1		(1 << 5)
298c2ecf20Sopenharmony_ci#define HWCAP_SHA2		(1 << 6)
308c2ecf20Sopenharmony_ci#define HWCAP_CRC32		(1 << 7)
318c2ecf20Sopenharmony_ci#define HWCAP_ATOMICS		(1 << 8)
328c2ecf20Sopenharmony_ci#define HWCAP_FPHP		(1 << 9)
338c2ecf20Sopenharmony_ci#define HWCAP_ASIMDHP		(1 << 10)
348c2ecf20Sopenharmony_ci#define HWCAP_CPUID		(1 << 11)
358c2ecf20Sopenharmony_ci#define HWCAP_ASIMDRDM		(1 << 12)
368c2ecf20Sopenharmony_ci#define HWCAP_JSCVT		(1 << 13)
378c2ecf20Sopenharmony_ci#define HWCAP_FCMA		(1 << 14)
388c2ecf20Sopenharmony_ci#define HWCAP_LRCPC		(1 << 15)
398c2ecf20Sopenharmony_ci#define HWCAP_DCPOP		(1 << 16)
408c2ecf20Sopenharmony_ci#define HWCAP_SHA3		(1 << 17)
418c2ecf20Sopenharmony_ci#define HWCAP_SM3		(1 << 18)
428c2ecf20Sopenharmony_ci#define HWCAP_SM4		(1 << 19)
438c2ecf20Sopenharmony_ci#define HWCAP_ASIMDDP		(1 << 20)
448c2ecf20Sopenharmony_ci#define HWCAP_SHA512		(1 << 21)
458c2ecf20Sopenharmony_ci#define HWCAP_SVE		(1 << 22)
468c2ecf20Sopenharmony_ci#define HWCAP_ASIMDFHM		(1 << 23)
478c2ecf20Sopenharmony_ci#define HWCAP_DIT		(1 << 24)
488c2ecf20Sopenharmony_ci#define HWCAP_USCAT		(1 << 25)
498c2ecf20Sopenharmony_ci#define HWCAP_ILRCPC		(1 << 26)
508c2ecf20Sopenharmony_ci#define HWCAP_FLAGM		(1 << 27)
518c2ecf20Sopenharmony_ci#define HWCAP_SSBS		(1 << 28)
528c2ecf20Sopenharmony_ci#define HWCAP_SB		(1 << 29)
538c2ecf20Sopenharmony_ci#define HWCAP_PACA		(1 << 30)
548c2ecf20Sopenharmony_ci#define HWCAP_PACG		(1UL << 31)
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci/*
578c2ecf20Sopenharmony_ci * HWCAP2 flags - for AT_HWCAP2
588c2ecf20Sopenharmony_ci */
598c2ecf20Sopenharmony_ci#define HWCAP2_DCPODP		(1 << 0)
608c2ecf20Sopenharmony_ci#define HWCAP2_SVE2		(1 << 1)
618c2ecf20Sopenharmony_ci#define HWCAP2_SVEAES		(1 << 2)
628c2ecf20Sopenharmony_ci#define HWCAP2_SVEPMULL		(1 << 3)
638c2ecf20Sopenharmony_ci#define HWCAP2_SVEBITPERM	(1 << 4)
648c2ecf20Sopenharmony_ci#define HWCAP2_SVESHA3		(1 << 5)
658c2ecf20Sopenharmony_ci#define HWCAP2_SVESM4		(1 << 6)
668c2ecf20Sopenharmony_ci#define HWCAP2_FLAGM2		(1 << 7)
678c2ecf20Sopenharmony_ci#define HWCAP2_FRINT		(1 << 8)
688c2ecf20Sopenharmony_ci#define HWCAP2_SVEI8MM		(1 << 9)
698c2ecf20Sopenharmony_ci#define HWCAP2_SVEF32MM		(1 << 10)
708c2ecf20Sopenharmony_ci#define HWCAP2_SVEF64MM		(1 << 11)
718c2ecf20Sopenharmony_ci#define HWCAP2_SVEBF16		(1 << 12)
728c2ecf20Sopenharmony_ci#define HWCAP2_I8MM		(1 << 13)
738c2ecf20Sopenharmony_ci#define HWCAP2_BF16		(1 << 14)
748c2ecf20Sopenharmony_ci#define HWCAP2_DGH		(1 << 15)
758c2ecf20Sopenharmony_ci#define HWCAP2_RNG		(1 << 16)
768c2ecf20Sopenharmony_ci#define HWCAP2_BTI		(1 << 17)
778c2ecf20Sopenharmony_ci#define HWCAP2_MTE		(1 << 18)
788c2ecf20Sopenharmony_ci#define HWCAP2_ECV		(1 << 19)
798c2ecf20Sopenharmony_ci#define HWCAP2_AFP		(1 << 20)
808c2ecf20Sopenharmony_ci#define HWCAP2_RPRES		(1 << 21)
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci#endif /* _UAPI__ASM_HWCAP_H */
83