xref: /linux/tools/arch/csky/include/uapi/asm/perf_regs.h (revision c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2)
1*3213486fSMao Han /* SPDX-License-Identifier: GPL-2.0 */
2*3213486fSMao Han // Copyright (C) 2019 Hangzhou C-SKY Microsystems co.,ltd.
3*3213486fSMao Han 
4*3213486fSMao Han #ifndef _ASM_CSKY_PERF_REGS_H
5*3213486fSMao Han #define _ASM_CSKY_PERF_REGS_H
6*3213486fSMao Han 
7*3213486fSMao Han /* Index of struct pt_regs */
8*3213486fSMao Han enum perf_event_csky_regs {
9*3213486fSMao Han 	PERF_REG_CSKY_TLS,
10*3213486fSMao Han 	PERF_REG_CSKY_LR,
11*3213486fSMao Han 	PERF_REG_CSKY_PC,
12*3213486fSMao Han 	PERF_REG_CSKY_SR,
13*3213486fSMao Han 	PERF_REG_CSKY_SP,
14*3213486fSMao Han 	PERF_REG_CSKY_ORIG_A0,
15*3213486fSMao Han 	PERF_REG_CSKY_A0,
16*3213486fSMao Han 	PERF_REG_CSKY_A1,
17*3213486fSMao Han 	PERF_REG_CSKY_A2,
18*3213486fSMao Han 	PERF_REG_CSKY_A3,
19*3213486fSMao Han 	PERF_REG_CSKY_REGS0,
20*3213486fSMao Han 	PERF_REG_CSKY_REGS1,
21*3213486fSMao Han 	PERF_REG_CSKY_REGS2,
22*3213486fSMao Han 	PERF_REG_CSKY_REGS3,
23*3213486fSMao Han 	PERF_REG_CSKY_REGS4,
24*3213486fSMao Han 	PERF_REG_CSKY_REGS5,
25*3213486fSMao Han 	PERF_REG_CSKY_REGS6,
26*3213486fSMao Han 	PERF_REG_CSKY_REGS7,
27*3213486fSMao Han 	PERF_REG_CSKY_REGS8,
28*3213486fSMao Han 	PERF_REG_CSKY_REGS9,
29*3213486fSMao Han #if defined(__CSKYABIV2__)
30*3213486fSMao Han 	PERF_REG_CSKY_EXREGS0,
31*3213486fSMao Han 	PERF_REG_CSKY_EXREGS1,
32*3213486fSMao Han 	PERF_REG_CSKY_EXREGS2,
33*3213486fSMao Han 	PERF_REG_CSKY_EXREGS3,
34*3213486fSMao Han 	PERF_REG_CSKY_EXREGS4,
35*3213486fSMao Han 	PERF_REG_CSKY_EXREGS5,
36*3213486fSMao Han 	PERF_REG_CSKY_EXREGS6,
37*3213486fSMao Han 	PERF_REG_CSKY_EXREGS7,
38*3213486fSMao Han 	PERF_REG_CSKY_EXREGS8,
39*3213486fSMao Han 	PERF_REG_CSKY_EXREGS9,
40*3213486fSMao Han 	PERF_REG_CSKY_EXREGS10,
41*3213486fSMao Han 	PERF_REG_CSKY_EXREGS11,
42*3213486fSMao Han 	PERF_REG_CSKY_EXREGS12,
43*3213486fSMao Han 	PERF_REG_CSKY_EXREGS13,
44*3213486fSMao Han 	PERF_REG_CSKY_EXREGS14,
45*3213486fSMao Han 	PERF_REG_CSKY_HI,
46*3213486fSMao Han 	PERF_REG_CSKY_LO,
47*3213486fSMao Han 	PERF_REG_CSKY_DCSR,
48*3213486fSMao Han #endif
49*3213486fSMao Han 	PERF_REG_CSKY_MAX,
50*3213486fSMao Han };
51*3213486fSMao Han #endif /* _ASM_CSKY_PERF_REGS_H */
52