xref: /titanic_50/usr/src/uts/sparc/sys/fm/cpu/SPARC64-VI.h (revision e98fafb9956429b59c817d4fbd27720c73879203)
125cf1a30Sjl139090 /*
225cf1a30Sjl139090  * CDDL HEADER START
325cf1a30Sjl139090  *
425cf1a30Sjl139090  * The contents of this file are subject to the terms of the
525cf1a30Sjl139090  * Common Development and Distribution License (the "License").
625cf1a30Sjl139090  * You may not use this file except in compliance with the License.
725cf1a30Sjl139090  *
825cf1a30Sjl139090  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
925cf1a30Sjl139090  * or http://www.opensolaris.org/os/licensing.
1025cf1a30Sjl139090  * See the License for the specific language governing permissions
1125cf1a30Sjl139090  * and limitations under the License.
1225cf1a30Sjl139090  *
1325cf1a30Sjl139090  * When distributing Covered Code, include this CDDL HEADER in each
1425cf1a30Sjl139090  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1525cf1a30Sjl139090  * If applicable, add the following below this CDDL HEADER, with the
1625cf1a30Sjl139090  * fields enclosed by brackets "[]" replaced with your own identifying
1725cf1a30Sjl139090  * information: Portions Copyright [yyyy] [name of copyright owner]
1825cf1a30Sjl139090  *
1925cf1a30Sjl139090  * CDDL HEADER END
2025cf1a30Sjl139090  */
2125cf1a30Sjl139090 /*
22*e98fafb9Sjl139090  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2325cf1a30Sjl139090  * Use is subject to license terms.
2425cf1a30Sjl139090  */
2525cf1a30Sjl139090 
2625cf1a30Sjl139090 #ifndef	_SYS_FM_SPARC64_VI_H
2725cf1a30Sjl139090 #define	_SYS_FM_SPARC64_VI_H
2825cf1a30Sjl139090 
2925cf1a30Sjl139090 #pragma ident	"%Z%%M%	%I%	%E% SMI"
3025cf1a30Sjl139090 
3125cf1a30Sjl139090 #ifdef	__cplusplus
3225cf1a30Sjl139090 extern "C" {
3325cf1a30Sjl139090 #endif
3425cf1a30Sjl139090 
3525cf1a30Sjl139090 /* ereport class subcategories for SPARC64-VI */
3625cf1a30Sjl139090 #define	FM_EREPORT_CPU_SPARC64_VI	"SPARC64-VI"
37*e98fafb9Sjl139090 #define	FM_EREPORT_CPU_SPARC64_VII	"SPARC64-VII"
3825cf1a30Sjl139090 #define	FM_EREPORT_CPU_UNSUPPORTED	"unsupported"
3925cf1a30Sjl139090 
4025cf1a30Sjl139090 /*
4125cf1a30Sjl139090  * Ereport payload definitions.
4225cf1a30Sjl139090  */
4325cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_SFSR		"sfsr"
4425cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_SFAR		"sfar"
4525cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_UGESR		"ugesr"
4625cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_PC		"pc"
4725cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_TL		"tl"
4825cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_TT		"tt"
4925cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_PRIV		"privileged"
5025cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_RESOURCE	"resource"
5125cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_NAME_FLT_STATUS	"flt-status"
5225cf1a30Sjl139090 
5325cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_SFSR		0x00000001
5425cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_SFAR		0x00000002
5525cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_UGESR		0x00000004
5625cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_PC		0x00000008
5725cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_TL		0x00000010
5825cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_TT		0x00000020
5925cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_PRIV		0x00000040
6025cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_RESOURCE	0x00000080
6125cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAG_FLT_STATUS	0x00000100
6225cf1a30Sjl139090 
6325cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_FLAGS_TRAP \
6425cf1a30Sjl139090 	    (FM_EREPORT_PAYLOAD_FLAG_TL | \
6525cf1a30Sjl139090 	    FM_EREPORT_PAYLOAD_FLAG_TT)
6625cf1a30Sjl139090 
6725cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_SYNC	(FM_EREPORT_PAYLOAD_FLAG_SFSR | \
6825cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_SFAR | \
6925cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_PC | \
7025cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAGS_TRAP | \
7125cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_PRIV | \
7225cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_FLT_STATUS | \
7325cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_RESOURCE)
7425cf1a30Sjl139090 
7525cf1a30Sjl139090 #define	FM_EREPORT_PAYLOAD_URGENT	(FM_EREPORT_PAYLOAD_FLAG_UGESR | \
7625cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_PC | \
7725cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAGS_TRAP | \
7825cf1a30Sjl139090 					FM_EREPORT_PAYLOAD_FLAG_PRIV)
7925cf1a30Sjl139090 
8025cf1a30Sjl139090 /*
8125cf1a30Sjl139090  * FM_EREPORT_PAYLOAD_SYNC
8225cf1a30Sjl139090  */
8325cf1a30Sjl139090 
8425cf1a30Sjl139090 #define	FM_EREPORT_CPU_UE_MEM		"ue-mem"
8525cf1a30Sjl139090 #define	FM_EREPORT_CPU_UE_CHANNEL	"ue-channel"
8625cf1a30Sjl139090 #define	FM_EREPORT_CPU_UE_CPU		"ue-cpu"
8725cf1a30Sjl139090 #define	FM_EREPORT_CPU_UE_PATH		"ue-path"
8825cf1a30Sjl139090 #define	FM_EREPORT_CPU_BERR		"berr"
8925cf1a30Sjl139090 #define	FM_EREPORT_CPU_BTO		"bto"
9025cf1a30Sjl139090 #define	FM_EREPORT_CPU_MTLB		"mtlb"
9125cf1a30Sjl139090 #define	FM_EREPORT_CPU_TLBP		"tlbp"
9225cf1a30Sjl139090 #define	FM_EREPORT_CPU_INV_SFSR 	"inv-sfsr"
9325cf1a30Sjl139090 
9425cf1a30Sjl139090 /*
9525cf1a30Sjl139090  * FM_EREPORT_PAYLOAD_URGENT
9625cf1a30Sjl139090  */
9725cf1a30Sjl139090 
9825cf1a30Sjl139090 #define	FM_EREPORT_CPU_CRE	"cre"
9925cf1a30Sjl139090 #define	FM_EREPORT_CPU_TSBCTX	"tsb-ctx"
10025cf1a30Sjl139090 #define	FM_EREPORT_CPU_TSBP	"tsbp"
10125cf1a30Sjl139090 #define	FM_EREPORT_CPU_PSTATE	"pstate"
10225cf1a30Sjl139090 #define	FM_EREPORT_CPU_TSTATE	"tstate"
10325cf1a30Sjl139090 #define	FM_EREPORT_CPU_IUG_F	"iug-f"
10425cf1a30Sjl139090 #define	FM_EREPORT_CPU_IUG_R	"iug-r"
10525cf1a30Sjl139090 #define	FM_EREPORT_CPU_SDC	"sdc"
10625cf1a30Sjl139090 #define	FM_EREPORT_CPU_WDT	"wdt"
10725cf1a30Sjl139090 #define	FM_EREPORT_CPU_DTLB	"dtlb"
10825cf1a30Sjl139090 #define	FM_EREPORT_CPU_ITLB	"itlb"
10925cf1a30Sjl139090 #define	FM_EREPORT_CPU_CORE 	"core-err"
11025cf1a30Sjl139090 #define	FM_EREPORT_CPU_DAE 	"dae"
11125cf1a30Sjl139090 #define	FM_EREPORT_CPU_IAE 	"iae"
11225cf1a30Sjl139090 #define	FM_EREPORT_CPU_UGE 	"uge"
113*e98fafb9Sjl139090 #define	FM_EREPORT_CPU_INV_URG	"inv-uge"
11425cf1a30Sjl139090 
11525cf1a30Sjl139090 #ifdef	__cplusplus
11625cf1a30Sjl139090 }
11725cf1a30Sjl139090 #endif
11825cf1a30Sjl139090 
11925cf1a30Sjl139090 #endif	/* _SYS_FM_SPARC64_VI_H */
120