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