xref: /titanic_41/usr/src/uts/sparc/sys/fm/cpu/SPARC64-VI.h (revision ea394cb00fd96864e34d2841b4a22357b621c78f)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_SYS_FM_SPARC64_VI_H
27 #define	_SYS_FM_SPARC64_VI_H
28 
29 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30 
31 #ifdef	__cplusplus
32 extern "C" {
33 #endif
34 
35 /* ereport class subcategories for SPARC64-VI */
36 #define	FM_EREPORT_CPU_SPARC64_VI	"SPARC64-VI"
37 #define	FM_EREPORT_CPU_SPARC64_VII	"SPARC64-VII"
38 #define	FM_EREPORT_CPU_UNSUPPORTED	"unsupported"
39 
40 /*
41  * Ereport payload definitions.
42  */
43 #define	FM_EREPORT_PAYLOAD_NAME_SFSR		"sfsr"
44 #define	FM_EREPORT_PAYLOAD_NAME_SFAR		"sfar"
45 #define	FM_EREPORT_PAYLOAD_NAME_UGESR		"ugesr"
46 #define	FM_EREPORT_PAYLOAD_NAME_PC		"pc"
47 #define	FM_EREPORT_PAYLOAD_NAME_TL		"tl"
48 #define	FM_EREPORT_PAYLOAD_NAME_TT		"tt"
49 #define	FM_EREPORT_PAYLOAD_NAME_PRIV		"privileged"
50 #define	FM_EREPORT_PAYLOAD_NAME_RESOURCE	"resource"
51 #define	FM_EREPORT_PAYLOAD_NAME_FLT_STATUS	"flt-status"
52 
53 #define	FM_EREPORT_PAYLOAD_FLAG_SFSR		0x00000001
54 #define	FM_EREPORT_PAYLOAD_FLAG_SFAR		0x00000002
55 #define	FM_EREPORT_PAYLOAD_FLAG_UGESR		0x00000004
56 #define	FM_EREPORT_PAYLOAD_FLAG_PC		0x00000008
57 #define	FM_EREPORT_PAYLOAD_FLAG_TL		0x00000010
58 #define	FM_EREPORT_PAYLOAD_FLAG_TT		0x00000020
59 #define	FM_EREPORT_PAYLOAD_FLAG_PRIV		0x00000040
60 #define	FM_EREPORT_PAYLOAD_FLAG_RESOURCE	0x00000080
61 #define	FM_EREPORT_PAYLOAD_FLAG_FLT_STATUS	0x00000100
62 
63 #define	FM_EREPORT_PAYLOAD_FLAGS_TRAP \
64 	    (FM_EREPORT_PAYLOAD_FLAG_TL | \
65 	    FM_EREPORT_PAYLOAD_FLAG_TT)
66 
67 #define	FM_EREPORT_PAYLOAD_SYNC	(FM_EREPORT_PAYLOAD_FLAG_SFSR | \
68 					FM_EREPORT_PAYLOAD_FLAG_SFAR | \
69 					FM_EREPORT_PAYLOAD_FLAG_PC | \
70 					FM_EREPORT_PAYLOAD_FLAGS_TRAP | \
71 					FM_EREPORT_PAYLOAD_FLAG_PRIV | \
72 					FM_EREPORT_PAYLOAD_FLAG_FLT_STATUS | \
73 					FM_EREPORT_PAYLOAD_FLAG_RESOURCE)
74 
75 #define	FM_EREPORT_PAYLOAD_URGENT	(FM_EREPORT_PAYLOAD_FLAG_UGESR | \
76 					FM_EREPORT_PAYLOAD_FLAG_PC | \
77 					FM_EREPORT_PAYLOAD_FLAGS_TRAP | \
78 					FM_EREPORT_PAYLOAD_FLAG_PRIV)
79 
80 /*
81  * FM_EREPORT_PAYLOAD_SYNC
82  */
83 
84 #define	FM_EREPORT_CPU_UE_MEM		"ue-mem"
85 #define	FM_EREPORT_CPU_UE_CHANNEL	"ue-channel"
86 #define	FM_EREPORT_CPU_UE_CPU		"ue-cpu"
87 #define	FM_EREPORT_CPU_UE_PATH		"ue-path"
88 #define	FM_EREPORT_CPU_BERR		"berr"
89 #define	FM_EREPORT_CPU_BTO		"bto"
90 #define	FM_EREPORT_CPU_MTLB		"mtlb"
91 #define	FM_EREPORT_CPU_TLBP		"tlbp"
92 #define	FM_EREPORT_CPU_INV_SFSR 	"inv-sfsr"
93 
94 /*
95  * FM_EREPORT_PAYLOAD_URGENT
96  */
97 
98 #define	FM_EREPORT_CPU_CRE	"cre"
99 #define	FM_EREPORT_CPU_TSBCTX	"tsb-ctx"
100 #define	FM_EREPORT_CPU_TSBP	"tsbp"
101 #define	FM_EREPORT_CPU_PSTATE	"pstate"
102 #define	FM_EREPORT_CPU_TSTATE	"tstate"
103 #define	FM_EREPORT_CPU_IUG_F	"iug-f"
104 #define	FM_EREPORT_CPU_IUG_R	"iug-r"
105 #define	FM_EREPORT_CPU_SDC	"sdc"
106 #define	FM_EREPORT_CPU_WDT	"wdt"
107 #define	FM_EREPORT_CPU_DTLB	"dtlb"
108 #define	FM_EREPORT_CPU_ITLB	"itlb"
109 #define	FM_EREPORT_CPU_CORE 	"core-err"
110 #define	FM_EREPORT_CPU_DAE 	"dae"
111 #define	FM_EREPORT_CPU_IAE 	"iae"
112 #define	FM_EREPORT_CPU_UGE 	"uge"
113 #define	FM_EREPORT_CPU_INV_URG	"inv-uge"
114 
115 #ifdef	__cplusplus
116 }
117 #endif
118 
119 #endif	/* _SYS_FM_SPARC64_VI_H */
120