18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _UAPI__ASM_POWERPC_CPUTABLE_H
38c2ecf20Sopenharmony_ci#define _UAPI__ASM_POWERPC_CPUTABLE_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* in AT_HWCAP */
68c2ecf20Sopenharmony_ci#define PPC_FEATURE_32			0x80000000
78c2ecf20Sopenharmony_ci#define PPC_FEATURE_64			0x40000000
88c2ecf20Sopenharmony_ci#define PPC_FEATURE_601_INSTR		0x20000000
98c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_ALTIVEC		0x10000000
108c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_FPU		0x08000000
118c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_MMU		0x04000000
128c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_4xxMAC		0x02000000
138c2ecf20Sopenharmony_ci#define PPC_FEATURE_UNIFIED_CACHE	0x01000000
148c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_SPE		0x00800000
158c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_EFP_SINGLE	0x00400000
168c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_EFP_DOUBLE	0x00200000
178c2ecf20Sopenharmony_ci#define PPC_FEATURE_NO_TB		0x00100000
188c2ecf20Sopenharmony_ci#define PPC_FEATURE_POWER4		0x00080000
198c2ecf20Sopenharmony_ci#define PPC_FEATURE_POWER5		0x00040000
208c2ecf20Sopenharmony_ci#define PPC_FEATURE_POWER5_PLUS		0x00020000
218c2ecf20Sopenharmony_ci#define PPC_FEATURE_CELL		0x00010000
228c2ecf20Sopenharmony_ci#define PPC_FEATURE_BOOKE		0x00008000
238c2ecf20Sopenharmony_ci#define PPC_FEATURE_SMT			0x00004000
248c2ecf20Sopenharmony_ci#define PPC_FEATURE_ICACHE_SNOOP	0x00002000
258c2ecf20Sopenharmony_ci#define PPC_FEATURE_ARCH_2_05		0x00001000
268c2ecf20Sopenharmony_ci#define PPC_FEATURE_PA6T		0x00000800
278c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_DFP		0x00000400
288c2ecf20Sopenharmony_ci#define PPC_FEATURE_POWER6_EXT		0x00000200
298c2ecf20Sopenharmony_ci#define PPC_FEATURE_ARCH_2_06		0x00000100
308c2ecf20Sopenharmony_ci#define PPC_FEATURE_HAS_VSX		0x00000080
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#define PPC_FEATURE_PSERIES_PERFMON_COMPAT \
338c2ecf20Sopenharmony_ci					0x00000040
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci/* Reserved - do not use		0x00000004 */
368c2ecf20Sopenharmony_ci#define PPC_FEATURE_TRUE_LE		0x00000002
378c2ecf20Sopenharmony_ci#define PPC_FEATURE_PPC_LE		0x00000001
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci/* in AT_HWCAP2 */
408c2ecf20Sopenharmony_ci#define PPC_FEATURE2_ARCH_2_07		0x80000000
418c2ecf20Sopenharmony_ci#define PPC_FEATURE2_HTM		0x40000000
428c2ecf20Sopenharmony_ci#define PPC_FEATURE2_DSCR		0x20000000
438c2ecf20Sopenharmony_ci#define PPC_FEATURE2_EBB		0x10000000
448c2ecf20Sopenharmony_ci#define PPC_FEATURE2_ISEL		0x08000000
458c2ecf20Sopenharmony_ci#define PPC_FEATURE2_TAR		0x04000000
468c2ecf20Sopenharmony_ci#define PPC_FEATURE2_VEC_CRYPTO		0x02000000
478c2ecf20Sopenharmony_ci#define PPC_FEATURE2_HTM_NOSC		0x01000000
488c2ecf20Sopenharmony_ci#define PPC_FEATURE2_ARCH_3_00		0x00800000 /* ISA 3.00 */
498c2ecf20Sopenharmony_ci#define PPC_FEATURE2_HAS_IEEE128	0x00400000 /* VSX IEEE Binary Float 128-bit */
508c2ecf20Sopenharmony_ci#define PPC_FEATURE2_DARN		0x00200000 /* darn random number insn */
518c2ecf20Sopenharmony_ci#define PPC_FEATURE2_SCV		0x00100000 /* scv syscall */
528c2ecf20Sopenharmony_ci#define PPC_FEATURE2_HTM_NO_SUSPEND	0x00080000 /* TM w/out suspended state */
538c2ecf20Sopenharmony_ci#define PPC_FEATURE2_ARCH_3_1		0x00040000 /* ISA 3.1 */
548c2ecf20Sopenharmony_ci#define PPC_FEATURE2_MMA		0x00020000 /* Matrix Multiply Assist */
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci/*
578c2ecf20Sopenharmony_ci * IMPORTANT!
588c2ecf20Sopenharmony_ci * All future PPC_FEATURE definitions should be allocated in cooperation with
598c2ecf20Sopenharmony_ci * OPAL / skiboot firmware, in accordance with the ibm,powerpc-cpu-features
608c2ecf20Sopenharmony_ci * device tree binding.
618c2ecf20Sopenharmony_ci */
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci#endif /* _UAPI__ASM_POWERPC_CPUTABLE_H */
64