162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci
362306a36Sopenharmony_ci#ifndef _ASM_CSKY_PERF_REGS_H
462306a36Sopenharmony_ci#define _ASM_CSKY_PERF_REGS_H
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci/* Index of struct pt_regs */
762306a36Sopenharmony_cienum perf_event_csky_regs {
862306a36Sopenharmony_ci	PERF_REG_CSKY_TLS,
962306a36Sopenharmony_ci	PERF_REG_CSKY_LR,
1062306a36Sopenharmony_ci	PERF_REG_CSKY_PC,
1162306a36Sopenharmony_ci	PERF_REG_CSKY_SR,
1262306a36Sopenharmony_ci	PERF_REG_CSKY_SP,
1362306a36Sopenharmony_ci	PERF_REG_CSKY_ORIG_A0,
1462306a36Sopenharmony_ci	PERF_REG_CSKY_A0,
1562306a36Sopenharmony_ci	PERF_REG_CSKY_A1,
1662306a36Sopenharmony_ci	PERF_REG_CSKY_A2,
1762306a36Sopenharmony_ci	PERF_REG_CSKY_A3,
1862306a36Sopenharmony_ci	PERF_REG_CSKY_REGS0,
1962306a36Sopenharmony_ci	PERF_REG_CSKY_REGS1,
2062306a36Sopenharmony_ci	PERF_REG_CSKY_REGS2,
2162306a36Sopenharmony_ci	PERF_REG_CSKY_REGS3,
2262306a36Sopenharmony_ci	PERF_REG_CSKY_REGS4,
2362306a36Sopenharmony_ci	PERF_REG_CSKY_REGS5,
2462306a36Sopenharmony_ci	PERF_REG_CSKY_REGS6,
2562306a36Sopenharmony_ci	PERF_REG_CSKY_REGS7,
2662306a36Sopenharmony_ci	PERF_REG_CSKY_REGS8,
2762306a36Sopenharmony_ci	PERF_REG_CSKY_REGS9,
2862306a36Sopenharmony_ci#if defined(__CSKYABIV2__)
2962306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS0,
3062306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS1,
3162306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS2,
3262306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS3,
3362306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS4,
3462306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS5,
3562306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS6,
3662306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS7,
3762306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS8,
3862306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS9,
3962306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS10,
4062306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS11,
4162306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS12,
4262306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS13,
4362306a36Sopenharmony_ci	PERF_REG_CSKY_EXREGS14,
4462306a36Sopenharmony_ci	PERF_REG_CSKY_HI,
4562306a36Sopenharmony_ci	PERF_REG_CSKY_LO,
4662306a36Sopenharmony_ci	PERF_REG_CSKY_DCSR,
4762306a36Sopenharmony_ci#endif
4862306a36Sopenharmony_ci	PERF_REG_CSKY_MAX,
4962306a36Sopenharmony_ci};
5062306a36Sopenharmony_ci#endif /* _ASM_CSKY_PERF_REGS_H */
51