xref: /linux/arch/loongarch/include/uapi/asm/hwcap.h (revision fcdfe9d22bed08409968a751e93112f742208be6)
1*fcdfe9d2SHuacai Chen /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*fcdfe9d2SHuacai Chen #ifndef _UAPI_ASM_HWCAP_H
3*fcdfe9d2SHuacai Chen #define _UAPI_ASM_HWCAP_H
4*fcdfe9d2SHuacai Chen 
5*fcdfe9d2SHuacai Chen /* HWCAP flags */
6*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_CPUCFG		(1 << 0)
7*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LAM		(1 << 1)
8*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_UAL		(1 << 2)
9*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_FPU		(1 << 3)
10*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LSX		(1 << 4)
11*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LASX		(1 << 5)
12*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_CRC32		(1 << 6)
13*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_COMPLEX		(1 << 7)
14*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_CRYPTO		(1 << 8)
15*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LVZ		(1 << 9)
16*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LBT_X86		(1 << 10)
17*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LBT_ARM		(1 << 11)
18*fcdfe9d2SHuacai Chen #define HWCAP_LOONGARCH_LBT_MIPS	(1 << 12)
19*fcdfe9d2SHuacai Chen 
20*fcdfe9d2SHuacai Chen #endif /* _UAPI_ASM_HWCAP_H */
21