sun4upci.h revision 1bbdaf51e5a066c12cca745ff7cdd1e08d91b5fa
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/*
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER START
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The contents of this file are subject to the terms of the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Common Development and Distribution License, Version 1.0 only
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * (the "License"). You may not use this file except in compliance
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * with the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * or http://www.opensolaris.org/os/licensing.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * See the License for the specific language governing permissions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * and limitations under the License.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * When distributing Covered Code, include this CDDL HEADER in each
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * If applicable, add the following below this CDDL HEADER, with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * fields enclosed by brackets "[]" replaced with your own identifying
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * information: Portions Copyright [yyyy] [name of copyright owner]
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy *
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * CDDL HEADER END
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/*
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Use is subject to license terms.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
4b5c8e93cab28d3c65ba9d407fd8f46e3be1db1cMatthew Ahrens#ifndef _SYS_FM_IO_SUN4UPCI_H
4b5c8e93cab28d3c65ba9d407fd8f46e3be1db1cMatthew Ahrens#define _SYS_FM_IO_SUN4UPCI_H
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy
4b5c8e93cab28d3c65ba9d407fd8f46e3be1db1cMatthew Ahrens#pragma ident "%Z%%M% %I% %E% SMI"
4b5c8e93cab28d3c65ba9d407fd8f46e3be1db1cMatthew Ahrens
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#ifdef __cplusplus
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyextern "C" {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#endif
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* Sun4u PCI FMA Event Protocol definitions */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_PSYCHO "psy"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SCHIZO "sch"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_TOMATILLO "tom"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_XMITS "xmits"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* PBM ereport classes */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_PBM_TTO "pbm.tto"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_PBM_RETRY "pbm.rl"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SEC_PBM_TTO "pbm.s-tto"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SEC_PBM_RETRY "pbm.s-rl"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SEC_MA "pbm.s-ma"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SEC_REC_TA "pbm.s-rta"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SEC_MDPE "pbm.s-mdpe"
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define PCI_PBM_TARG_TTO "pbm.target-tto"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_PBM_TARG_RETRY "pbm.target-rl"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy/* Schizo/Tomatillo ereport classes */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SCH_MMU_ERR "mmu"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SCH_BUS_UNUSABLE_ERR "bu"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SEC_SCH_BUS_UNUSABLE_ERR "s-bu"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SCH_SLOT_LOCK_ERR "sl"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_SCH_SBH "sbh"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_TOM_MMU_BAD_TSBTBW "mmu.btt"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_TOM_MMU_BAD_VA "mmu.bva"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_TOM_MMU_PROT_ERR "mmu.prot"
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define PCI_TOM_MMU_INVAL_ERR "mmu.inval"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_TOM_MMU_TO_ERR "mmu.to"
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define PCI_TOM_MMU_UE "mmu.ue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* Psycho ereport classes */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_PSY_SBH "sbh"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* IO detected memory ereport classes */
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define PCI_ECC_DRD_UE "ecc.drue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_DRD_CE "ecc.drce"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_DWR_UE "ecc.dwue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_DWR_CE "ecc.dwce"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_PIO_UE "ecc.pue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_PIO_CE "ecc.pce"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_SEC_DRD_UE "ecc.s-drue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_SEC_DRD_CE "ecc.s-drce"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_SEC_DWR_UE "ecc.s-dwue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_SEC_DWR_CE "ecc.s-dwce"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_SEC_PIO_UE "ecc.s-pue"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define PCI_ECC_SEC_PIO_CE "ecc.s-pce"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy/* Safari ereport classes */
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_APERR "saf.ape"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_UNMAP_ERR "saf.um"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_TO_ERR "saf.to"
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define SAFARI_BUS_ERR "saf.bus"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_DSTAT_ERR "saf.dstat"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_BAD_CMD "saf.bc"
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define SAFARI_SSM_DIS "saf.smm-dis"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_BAD_CMD_PCIA "saf.bca"
1d32ba663e202c24a5a1f2e5aef83fffb447cb7fJohn Wren Kennedy#define SAFARI_BAD_CMD_PCIB "saf.bcb"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_PAR_ERR_INT_PCIB "saf.parb"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_PAR_ERR_INT_PCIA "saf.para"
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy#define SAFARI_PAR_ERR_INT_SAF "saf.pars"
#define SAFARI_PLL_ERR_PCIB "saf.pllb"
#define SAFARI_PLL_ERR_PCIA "saf.plla"
#define SAFARI_PLL_ERR_SAF "saf.plls"
#define SAFARI_SAF_CIQ_TO "saf.ciq-to"
#define SAFARI_SAF_LPQ_TO "saf.lpq-to"
#define SAFARI_SAF_SFPQ_TO "saf.sfpq-to"
#define SAFARI_SAF_UFPQ_TO "saf.ufpq-to"
#define SAFARI_CPU0_PAR_SINGLE "saf.cpu0-par"
#define SAFARI_CPU0_PAR_BIDI "saf.cpu0-bidi"
#define SAFARI_CPU1_PAR_SINGLE "saf.cpu1-par"
#define SAFARI_CPU1_PAR_BIDI "saf.cpu1-bidi"
/* Jbus ereport classes */
#define JBUS_APERR "jbus.ape"
#define JBUS_PWR_DATA_PERR "jbus.pwpe"
#define JBUS_DRD_DATA_PERR "jbus.drpe"
#define JBUS_DWR_DATA_PERR "jbus.dwpe"
#define JBUS_CTL_PERR "jbus.cpe"
#define JBUS_ILL_BYTE_EN "jbus.ibe"
#define JBUS_ILL_COH_IN "jbus.iis"
#define JBUS_SNOOP_ERR_RD "jbus.srd"
#define JBUS_SNOOP_ERR_RDS "jbus.srds"
#define JBUS_SNOOP_ERR_RDSA "jbus.srdsa"
#define JBUS_SNOOP_ERR_OWN "jbus.sown"
#define JBUS_SNOOP_ERR_RDO "jbus.srdo"
#define JBUS_BAD_CMD "jbus.bc"
#define JBUS_UNMAP_ERR "jbus.um"
#define JBUS_TO_ERR "jbus.to"
#define JBUS_BUS_ERR "jbus.bus"
#define JBUS_TO_EXP_ERR "jbus.to-exp"
#define JBUS_SNOOP_ERR_GR "jbus.sgr"
#define JBUS_SNOOP_ERR_PCI "jbus.spci"
#define JBUS_SNOOP_ERR "jbus.snp"
/* PBM ereport payload */
#define PCI_PBM_CSR "pbm-csr"
#define PCI_PBM_AFSR "pbm-afsr"
#define PCI_PBM_AFAR "pbm-afar"
#define PCI_PBM_SLOT "errant-slot"
#define PCI_PBM_VALOG "pbm-valog"
/* IOMMU ereport payload */
#define PCI_PBM_IOMMU_CTRL "iommu-csr"
#define PCI_PBM_IOMMU_TFAR "iommu-tfar"
/* IO detected memory error payload */
#define PCI_ECC_AFSR "ecc-afsr"
#define PCI_ECC_AFAR "ecc-afar"
#define PCI_ECC_CTRL "ecc-ctrl"
#define PCI_ECC_SYND "ecc-syndrome"
#define PCI_ECC_TYPE "ecc-err-type"
#define PCI_ECC_DISP "ecc-err-disposition"
#define PCI_ECC_UNUM "mem-unum"
#define PCI_ECC_RESOURCE "mem-resource"
/* Safari ereport payload */
#define SAFARI_CSR "safari-csr"
#define SAFARI_ERR "safari-err"
#define SAFARI_INTR "safari-intr"
#define SAFARI_ELOG "safari-elog"
#define SAFARI_PCR "safari-pcr"
#define SAFARI_RESOURCE "safari-resource"
#define PCI_PBM_LOG_1 "pbm-log1"
#define PCI_PBM_LOG_2 "pbm-log2"
/* Jbus ereport payload */
#define JBUS_CSR "jbus-csr"
#define JBUS_ERR "jbus-err"
#define JBUS_INTR "jbus-intr"
#define JBUS_ELOG "jbus-elog"
#define JBUS_PCR "jbus-pcr"
#define JBUS_RESOURCE "jbus-resource"
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FM_IO_SUN4UPCI_H */