xref: /titanic_50/usr/src/uts/sun4u/sys/plat_datapath.h (revision c0dd49bdd68c0d758a67d56f07826f3b45cfc664)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_PLAT_DATAPATH_H
28 #define	_PLAT_DATAPATH_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  * Definitions to support datapath fault diagnosis for Starcat
38  * and Serengeti.
39  */
40 
41 #define	FM_ERROR_DATAPATH	"dp"
42 
43 /* datapath ereport payload member names */
44 #define	DP_EREPORT_TYPE		"erptype"
45 #define	DP_TVALUE		"t-value"
46 #define	DP_LIST_SIZE		"dp-list-sz"
47 #define	DP_LIST			"dp-list"
48 #define	SN_LIST			"sn-list"
49 
50 /* datapath ereport types for DP_EREPORT_TYPE */
51 #define	DP_ERROR	0
52 #define	DP_FAULT	1
53 
54 /*
55  * Name definitions for datapath error/fault types
56  *
57  * Note that "rp" is the Serengeti name for "cp."
58  */
59 #define	DP_ERROR_CDS	"cds"
60 #define	DP_ERROR_DX	"dx"
61 #define	DP_ERROR_EX	"sdi"	/* Starcat-only */
62 #define	DP_ERROR_CP	"cp"
63 #define	DP_ERROR_RP	"rp"	/* Serengeti name for "cp" */
64 
65 /*
66  * Numeric definitions for datapath error/fault types
67  * as received in a mailbox message from the SC.
68  */
69 	/* Shared between Starcat and Serengeti */
70 #define		DP_CDS_TYPE	0
71 #define		DP_DX_TYPE	1
72 	/* Starcat-only */
73 #define		DP_EX_TYPE	2
74 #define		DP_CP_TYPE	3
75 	/* Serengeti-only */
76 #define		DP_RP_TYPE	2
77 
78 /*
79  * Numeric definitions for datapath error-fault types
80  * remapped from values received from the SC to values unique
81  * between Starcat and Serengeti.
82  */
83 	/* Starcat types */
84 #define	SC_DP_CDS_TYPE		0
85 #define	SC_DP_DX_TYPE		1
86 #define	SC_DP_EX_TYPE		2
87 #define	SC_DP_CP_TYPE		3
88 	/* Serengeti types */
89 #define	SG_DP_CDS_TYPE		4
90 #define	SG_DP_DX_TYPE		5
91 #define	SG_DP_RP_TYPE		6
92 
93 #ifdef __cplusplus
94 }
95 #endif
96 
97 #endif	/* _PLAT_DATAPATH_H */
98