summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/cmt.h
blob: 870db5928577c1595118b256254e596e4ec2e985 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef _SPARC64_CMT_H
#define _SPARC64_CMT_H

/* cmt.h: Chip Multi-Threading register definitions
 *
 * Copyright (C) 2004 David S. Miller (davem@redhat.com)
 */

/* ASI_CORE_ID - private */
#define LP_ID		0x0000000000000010UL
#define  LP_ID_MAX	0x00000000003f0000UL
#define  LP_ID_ID	0x000000000000003fUL

/* ASI_INTR_ID - private */
#define LP_INTR_ID	0x0000000000000000UL
#define  LP_INTR_ID_ID	0x00000000000003ffUL

/* ASI_CESR_ID - private */
#define CESR_ID		0x0000000000000040UL
#define  CESR_ID_ID	0x00000000000000ffUL

/* ASI_CORE_AVAILABLE - shared */
#define LP_AVAIL	0x0000000000000000UL
#define  LP_AVAIL_1	0x0000000000000002UL
#define  LP_AVAIL_0	0x0000000000000001UL

/* ASI_CORE_ENABLE_STATUS - shared */
#define LP_ENAB_STAT	0x0000000000000010UL
#define  LP_ENAB_STAT_1	0x0000000000000002UL
#define  LP_ENAB_STAT_0	0x0000000000000001UL

/* ASI_CORE_ENABLE - shared */
#define LP_ENAB		0x0000000000000020UL
#define  LP_ENAB_1	0x0000000000000002UL
#define  LP_ENAB_0	0x0000000000000001UL

/* ASI_CORE_RUNNING - shared */
#define LP_RUNNING_RW	0x0000000000000050UL
#define LP_RUNNING_W1S	0x0000000000000060UL
#define LP_RUNNING_W1C	0x0000000000000068UL
#define  LP_RUNNING_1	0x0000000000000002UL
#define  LP_RUNNING_0	0x0000000000000001UL

/* ASI_CORE_RUNNING_STAT - shared */
#define LP_RUN_STAT	0x0000000000000058UL
#define  LP_RUN_STAT_1	0x0000000000000002UL
#define  LP_RUN_STAT_0	0x0000000000000001UL

/* ASI_XIR_STEERING - shared */
#define LP_XIR_STEER	0x0000000000000030UL
#define  LP_XIR_STEER_1	0x0000000000000002UL
#define  LP_XIR_STEER_0	0x0000000000000001UL

/* ASI_CMT_ERROR_STEERING - shared */
#define CMT_ER_STEER	0x0000000000000040UL
#define  CMT_ER_STEER_1	0x0000000000000002UL
#define  CMT_ER_STEER_0	0x0000000000000001UL

#endif /* _SPARC64_CMT_H */