xref: /titanic_41/usr/src/uts/sparc/sys/fm/cpu/SPARC64-VI.h (revision 2278144afd2005b3eabcfd9bc412fe5ceb78749d)
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 2006 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_UNSUPPORTED	"unsupported"
38 
39 /*
40  * Ereport payload definitions.
41  */
42 #define	FM_EREPORT_PAYLOAD_NAME_SFSR		"sfsr"
43 #define	FM_EREPORT_PAYLOAD_NAME_SFAR		"sfar"
44 #define	FM_EREPORT_PAYLOAD_NAME_UGESR		"ugesr"
45 #define	FM_EREPORT_PAYLOAD_NAME_PC		"pc"
46 #define	FM_EREPORT_PAYLOAD_NAME_TL		"tl"
47 #define	FM_EREPORT_PAYLOAD_NAME_TT		"tt"
48 #define	FM_EREPORT_PAYLOAD_NAME_PRIV		"privileged"
49 #define	FM_EREPORT_PAYLOAD_NAME_RESOURCE	"resource"
50 #define	FM_EREPORT_PAYLOAD_NAME_FLT_STATUS	"flt-status"
51 
52 #define	FM_EREPORT_PAYLOAD_FLAG_SFSR		0x00000001
53 #define	FM_EREPORT_PAYLOAD_FLAG_SFAR		0x00000002
54 #define	FM_EREPORT_PAYLOAD_FLAG_UGESR		0x00000004
55 #define	FM_EREPORT_PAYLOAD_FLAG_PC		0x00000008
56 #define	FM_EREPORT_PAYLOAD_FLAG_TL		0x00000010
57 #define	FM_EREPORT_PAYLOAD_FLAG_TT		0x00000020
58 #define	FM_EREPORT_PAYLOAD_FLAG_PRIV		0x00000040
59 #define	FM_EREPORT_PAYLOAD_FLAG_RESOURCE	0x00000080
60 #define	FM_EREPORT_PAYLOAD_FLAG_FLT_STATUS	0x00000100
61 
62 #define	FM_EREPORT_PAYLOAD_FLAGS_TRAP \
63 	    (FM_EREPORT_PAYLOAD_FLAG_TL | \
64 	    FM_EREPORT_PAYLOAD_FLAG_TT)
65 
66 #define	FM_EREPORT_PAYLOAD_SYNC	(FM_EREPORT_PAYLOAD_FLAG_SFSR | \
67 					FM_EREPORT_PAYLOAD_FLAG_SFAR | \
68 					FM_EREPORT_PAYLOAD_FLAG_PC | \
69 					FM_EREPORT_PAYLOAD_FLAGS_TRAP | \
70 					FM_EREPORT_PAYLOAD_FLAG_PRIV | \
71 					FM_EREPORT_PAYLOAD_FLAG_FLT_STATUS | \
72 					FM_EREPORT_PAYLOAD_FLAG_RESOURCE)
73 
74 #define	FM_EREPORT_PAYLOAD_URGENT	(FM_EREPORT_PAYLOAD_FLAG_UGESR | \
75 					FM_EREPORT_PAYLOAD_FLAG_PC | \
76 					FM_EREPORT_PAYLOAD_FLAGS_TRAP | \
77 					FM_EREPORT_PAYLOAD_FLAG_PRIV)
78 
79 /*
80  * FM_EREPORT_PAYLOAD_SYNC
81  */
82 
83 #define	FM_EREPORT_CPU_UE_MEM		"ue-mem"
84 #define	FM_EREPORT_CPU_UE_CHANNEL	"ue-channel"
85 #define	FM_EREPORT_CPU_UE_CPU		"ue-cpu"
86 #define	FM_EREPORT_CPU_UE_PATH		"ue-path"
87 #define	FM_EREPORT_CPU_BERR		"berr"
88 #define	FM_EREPORT_CPU_BTO		"bto"
89 #define	FM_EREPORT_CPU_MTLB		"mtlb"
90 #define	FM_EREPORT_CPU_TLBP		"tlbp"
91 #define	FM_EREPORT_CPU_INV_SFSR 	"inv-sfsr"
92 
93 /*
94  * FM_EREPORT_PAYLOAD_URGENT
95  */
96 
97 #define	FM_EREPORT_CPU_CRE	"cre"
98 #define	FM_EREPORT_CPU_TSBCTX	"tsb-ctx"
99 #define	FM_EREPORT_CPU_TSBP	"tsbp"
100 #define	FM_EREPORT_CPU_PSTATE	"pstate"
101 #define	FM_EREPORT_CPU_TSTATE	"tstate"
102 #define	FM_EREPORT_CPU_IUG_F	"iug-f"
103 #define	FM_EREPORT_CPU_IUG_R	"iug-r"
104 #define	FM_EREPORT_CPU_SDC	"sdc"
105 #define	FM_EREPORT_CPU_WDT	"wdt"
106 #define	FM_EREPORT_CPU_DTLB	"dtlb"
107 #define	FM_EREPORT_CPU_ITLB	"itlb"
108 #define	FM_EREPORT_CPU_CORE 	"core-err"
109 #define	FM_EREPORT_CPU_DAE 	"dae"
110 #define	FM_EREPORT_CPU_IAE 	"iae"
111 #define	FM_EREPORT_CPU_UGE 	"uge"
112 #define	FM_EREPORT_CPU_INV_URG	"inv-urg"
113 
114 #ifdef	__cplusplus
115 }
116 #endif
117 
118 #endif	/* _SYS_FM_SPARC64_VI_H */
119