xref: /illumos-gate/usr/src/uts/common/sys/fm/io/sun4upci.h (revision 2d6eb4a5e0a47d30189497241345dc5466bb68ab)
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 2006 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_SYS_FM_IO_SUN4UPCI_H
28 #define	_SYS_FM_IO_SUN4UPCI_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 /* Sun4u PCI FMA Event Protocol definitions */
35 
36 #define	PCI_PSYCHO			"psy"
37 #define	PCI_SCHIZO			"sch"
38 #define	PCI_TOMATILLO			"tom"
39 #define	PCI_XMITS			"xmits"
40 
41 /* PBM ereport classes */
42 #define	PCI_PBM_TTO			"pbm.tto"
43 #define	PCI_PBM_RETRY			"pbm.rl"
44 #define	PCI_SEC_PBM_TTO			"pbm.s-tto"
45 #define	PCI_SEC_PBM_RETRY		"pbm.s-rl"
46 #define	PCI_SEC_MA			"pbm.s-ma"
47 #define	PCI_SEC_REC_TA			"pbm.s-rta"
48 #define	PCI_SEC_MDPE			"pbm.s-mdpe"
49 #define	PCI_PBM_TARG_TTO		"pbm.target-tto"
50 #define	PCI_PBM_TARG_RETRY		"pbm.target-rl"
51 
52 /* Schizo/Tomatillo ereport classes */
53 #define	PCI_SCH_MMU_ERR			"mmu"
54 #define	PCI_SCH_BUS_UNUSABLE_ERR	"bu"
55 #define	PCI_SEC_SCH_BUS_UNUSABLE_ERR	"s-bu"
56 #define	PCI_SCH_SLOT_LOCK_ERR		"sl"
57 #define	PCI_SCH_SBH			"sbh"
58 
59 #define	PCI_TOM_MMU_BAD_TSBTBW		"mmu.btt"
60 #define	PCI_TOM_MMU_BAD_VA		"mmu.bva"
61 #define	PCI_TOM_MMU_PROT_ERR		"mmu.prot"
62 #define	PCI_TOM_MMU_INVAL_ERR		"mmu.inval"
63 #define	PCI_TOM_MMU_TO_ERR		"mmu.to"
64 #define	PCI_TOM_MMU_UE			"mmu.ue"
65 
66 /* Psycho ereport classes */
67 
68 #define	PCI_PSY_SBH			"sbh"
69 
70 /* IO detected memory ereport classes */
71 #define	PCI_ECC_DRD_UE			"ecc.drue"
72 #define	PCI_ECC_DRD_CE			"ecc.drce"
73 #define	PCI_ECC_DWR_UE			"ecc.dwue"
74 #define	PCI_ECC_DWR_CE			"ecc.dwce"
75 #define	PCI_ECC_PIO_UE			"ecc.pue"
76 #define	PCI_ECC_PIO_CE			"ecc.pce"
77 #define	PCI_ECC_SEC_DRD_UE		"ecc.s-drue"
78 #define	PCI_ECC_SEC_DRD_CE		"ecc.s-drce"
79 #define	PCI_ECC_SEC_DWR_UE		"ecc.s-dwue"
80 #define	PCI_ECC_SEC_DWR_CE		"ecc.s-dwce"
81 #define	PCI_ECC_SEC_PIO_UE		"ecc.s-pue"
82 #define	PCI_ECC_SEC_PIO_CE		"ecc.s-pce"
83 
84 
85 /* Safari ereport classes */
86 #define	SAFARI_APERR			"saf.ape"
87 #define	SAFARI_UNMAP_ERR		"saf.um"
88 #define	SAFARI_TO_ERR			"saf.to"
89 #define	SAFARI_BUS_ERR			"saf.bus"
90 #define	SAFARI_DSTAT_ERR		"saf.dstat"
91 #define	SAFARI_BAD_CMD			"saf.bc"
92 #define	SAFARI_SSM_DIS			"saf.smm-dis"
93 #define	SAFARI_BAD_CMD_PCIA		"saf.bca"
94 #define	SAFARI_BAD_CMD_PCIB		"saf.bcb"
95 #define	SAFARI_PAR_ERR_INT_PCIB		"saf.parb"
96 #define	SAFARI_PAR_ERR_INT_PCIA		"saf.para"
97 #define	SAFARI_PAR_ERR_INT_SAF		"saf.pars"
98 #define	SAFARI_PLL_ERR_PCIB		"saf.pllb"
99 #define	SAFARI_PLL_ERR_PCIA		"saf.plla"
100 #define	SAFARI_PLL_ERR_SAF		"saf.plls"
101 #define	SAFARI_SAF_CIQ_TO		"saf.ciq-to"
102 #define	SAFARI_SAF_LPQ_TO		"saf.lpq-to"
103 #define	SAFARI_SAF_SFPQ_TO		"saf.sfpq-to"
104 #define	SAFARI_SAF_UFPQ_TO		"saf.ufpq-to"
105 #define	SAFARI_CPU0_PAR_SINGLE		"saf.cpu0-par"
106 #define	SAFARI_CPU0_PAR_BIDI		"saf.cpu0-bidi"
107 #define	SAFARI_CPU1_PAR_SINGLE		"saf.cpu1-par"
108 #define	SAFARI_CPU1_PAR_BIDI		"saf.cpu1-bidi"
109 
110 /* Jbus ereport classes */
111 #define	JBUS_APERR			"jbus.ape"
112 #define	JBUS_PWR_DATA_PERR		"jbus.pwpe"
113 #define	JBUS_DRD_DATA_PERR		"jbus.drpe"
114 #define	JBUS_DWR_DATA_PERR		"jbus.dwpe"
115 #define	JBUS_CTL_PERR			"jbus.cpe"
116 #define	JBUS_ILL_BYTE_EN		"jbus.ibe"
117 #define	JBUS_ILL_COH_IN			"jbus.iis"
118 #define	JBUS_SNOOP_ERR_RD		"jbus.srd"
119 #define	JBUS_SNOOP_ERR_RDS		"jbus.srds"
120 #define	JBUS_SNOOP_ERR_RDSA		"jbus.srdsa"
121 #define	JBUS_SNOOP_ERR_OWN		"jbus.sown"
122 #define	JBUS_SNOOP_ERR_RDO		"jbus.srdo"
123 #define	JBUS_BAD_CMD			"jbus.bc"
124 #define	JBUS_UNMAP_ERR			"jbus.um"
125 #define	JBUS_TO_ERR			"jbus.to"
126 #define	JBUS_BUS_ERR			"jbus.bus"
127 #define	JBUS_TO_EXP_ERR			"jbus.to-exp"
128 #define	JBUS_SNOOP_ERR_GR		"jbus.sgr"
129 #define	JBUS_SNOOP_ERR_PCI		"jbus.spci"
130 #define	JBUS_SNOOP_ERR			"jbus.snp"
131 
132 /* PBM ereport payload */
133 #define	PCI_PBM_CSR			"pbm-csr"
134 #define	PCI_PBM_AFSR			"pbm-afsr"
135 #define	PCI_PBM_AFAR			"pbm-afar"
136 #define	PCI_PBM_SLOT			"errant-slot"
137 #define	PCI_PBM_VALOG			"pbm-valog"
138 
139 /* IOMMU ereport payload */
140 #define	PCI_PBM_IOMMU_CTRL		"iommu-csr"
141 #define	PCI_PBM_IOMMU_TFAR		"iommu-tfar"
142 
143 /* IO detected memory error payload */
144 #define	PCI_ECC_AFSR			"ecc-afsr"
145 #define	PCI_ECC_AFAR			"ecc-afar"
146 #define	PCI_ECC_CTRL			"ecc-ctrl"
147 #define	PCI_ECC_SYND			"ecc-syndrome"
148 #define	PCI_ECC_TYPE			"ecc-err-type"
149 #define	PCI_ECC_DISP			"ecc-err-disposition"
150 #define	PCI_ECC_UNUM			"mem-unum"
151 #define	PCI_ECC_RESOURCE		"mem-resource"
152 
153 /* Safari ereport payload */
154 #define	SAFARI_CSR			"safari-csr"
155 #define	SAFARI_ERR			"safari-err"
156 #define	SAFARI_INTR			"safari-intr"
157 #define	SAFARI_ELOG			"safari-elog"
158 #define	SAFARI_PCR			"safari-pcr"
159 #define	SAFARI_RESOURCE			"safari-resource"
160 #define	PCI_PBM_LOG_1			"pbm-log1"
161 #define	PCI_PBM_LOG_2			"pbm-log2"
162 
163 /* Jbus ereport payload */
164 #define	JBUS_CSR			"jbus-csr"
165 #define	JBUS_ERR			"jbus-err"
166 #define	JBUS_INTR			"jbus-intr"
167 #define	JBUS_ELOG			"jbus-elog"
168 #define	JBUS_PCR			"jbus-pcr"
169 #define	JBUS_RESOURCE			"jbus-resource"
170 
171 #ifdef	__cplusplus
172 }
173 #endif
174 
175 #endif	/* _SYS_FM_IO_SUN4UPCI_H */
176