* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: err_defines.h
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
#ifndef __ERR_DEFINES_H__
#define __ERR_DEFINES_H__
#define ERR_INJ_ECCMASK 0x00
ERR_INJ_STDU | ERR_INJ_STAU | ERR_INJ_MRAU | ERR_INJ_TSAU | ERR_INJ_TCCU |\
ERR_INJ_SCAU | ERR_INJ_FRFU | ERR_INJ_IRFU |\
ERR_INJ_DMTU | ERR_INJ_DMDU | ERR_INJ_IMTU | ERR_INJ_IMDU)
#define ERR_INJ_REG_DATA (\
ERR_INJ_ECCMASK | (ERR_INJ_STDU << 17) | (ERR_INJ_STAU << 19) |\
(ERR_INJ_MRAU << 20) | (ERR_INJ_TSAU << 21) | (ERR_INJ_TCCU << 22) |\
(ERR_INJ_SCAU << 23) | (ERR_INJ_FRFU << 24) | (ERR_INJ_IRFU << 25) |\
(ERR_INJ_DMTU << 26) | (ERR_INJ_DMDU << 27) | (ERR_INJ_IMTU << 28) |\
(ERR_INJ_IMDU << 29) | (ERR_INJ_ENB << 31))
#ifndef CERER_SBDPU_SBDIOU
#define CERER_SBDPU_SBDIOU 0
CERER_CWQL2ND | CERER_CWQL2U | CERER_CWQL2C |\
CERER_MAL2ND | CERER_MAL2U | CERER_MAL2C |\
CERER_TCCU | CERER_TCCD | CERER_MAMU |\
CERER_SBDPU_SBDIOU | CERER_SBDPC | CERER_DCDP |\
CERER_DCTM | CERER_DCTP | CERER_DCVP |\
CERER_ICDP | CERER_ICTM | CERER_ICTP |\
CERER_ICVP | CERER_L2ND | CERER_L2U |\
CERER_L2C | CERER_SBAPP | CERER_TCUP |\
CERER_TCCP | CERER_SCAU | CERER_SCAC |\
CERER_TSAU | CERER_TSAC | CERER_MRAU |\
CERER_SBDLU | CERER_SBDLC | CERER_DCL2ND |\
CERER_DCL2U | CERER_DCL2C | CERER_DTDP |\
CERER_DTTM | CERER_DTTP | CERER_FRF |\
CERER_IRF | CERER_ICL2ND | CERER_ICL2U |\
CERER_ICL2C | CERER_HWTWL2 | CERER_HWTWMU |\
CERER_ITTM | CERER_ITDP | CERER_ITTP)
#define CERER_DATA 0xecf5c1f3f8bfffff
CERER_CWQL2ND | (CERER_CWQL2U << 1) | (CERER_CWQL2C << 2) |\
(CERER_MAL2ND << 3) | (CERER_MAL2U << 4) | (CERER_MAL2C << 5) |\
(CERER_TCCU << 6) | (CERER_TCCD << 7) | (CERER_MAMU << 8) |\
(CERER_SBDPU_SBDIOU << 9) | (CERER_SBDPC << 10) | (CERER_DCDP << 11) |\
(CERER_DCTM << 12) | (CERER_DCTP << 13) | (CERER_DCVP << 14) |\
(CERER_ICDP << 15) | (CERER_ICTM << 16) | (CERER_ICTP << 17) |\
(CERER_ICVP << 18) | (CERER_L2ND << 19) | (CERER_L2U << 20) |\
(CERER_L2C << 21) | (CERER_SBAPP << 23) | (CERER_TCUP << 27) |\
(CERER_TCCP << 28) | (CERER_SCAU << 29) | (CERER_SCAC << 30) |\
(CERER_TSAU << 31) | (CERER_TSAC << 32) | (CERER_MRAU << 33) |\
(CERER_SBDLU << 36) | (CERER_SBDLC << 37) | (CERER_DCL2ND << 38) |\
(CERER_DCL2U << 39) | (CERER_DCL2C << 40) | (CERER_DTDP << 46) |\
(CERER_DTTM << 47) | (CERER_DTTP << 48) | (CERER_FRF << 50) |\
(CERER_IRF << 52) | (CERER_ICL2ND << 53) | (CERER_ICL2U << 54) |\
(CERER_ICL2C << 55) | (CERER_HWTWL2 << 58) | (CERER_HWTWMU << 59) |\
(CERER_ITTM << 61) | (CERER_ITDP << 62) | (CERER_ITTP << 63))
CETER_DHCCE | (CETER_DE << 1) | (CETER_PSCCE << 2))
#define H_HT0_Sw_Recoverable_Error_0x40 Soc_Recoverable_Sw_error_trap
#define H_HT0_Hw_Corrected_Error_0x63 Soc_Corrected_Hw_error_trap
#define H_HT0_Data_access_error_0x32 Soc_Precise_data_access_error_trap
#define H_HT0_Instruction_Access_MMU_Error_0x71 inst_access_mmu_error_handler
#define H_HT0_Instruction_access_error_0x0a inst_access_error_handler
#ifndef H_HT0_Internal_Processor_Error_0x29
#define H_HT0_Internal_Processor_Error_0x29 int_proc_err_handler
#define H_HT0_Data_Access_MMU_Error_0x72 data_access_mmu_error_handler
#define H_HT0_Data_access_error_0x32 data_access_error_handler
#define H_HT0_Hw_Corrected_Error_0x63 hw_corrected_error_handler
#define H_HT0_Sw_Recoverable_Error_0x40 sw_recoverable_error_handler
#define H_HT0_Store_Error_0x07 store_error_handler
#define DESR_SRE_L2C 0x14
#define DFESR_USER_PRIV 0x00
#define DFESR_SUP_PRIV 0x1
#define DFESR_HP_PRIV 0x2
#define ASI_NUCLEUS_QUAD_LDD 0x24
#define ASI_LSU_CONTROL 0x45
#define ASI_DCACHE_DATA 0x46
#define ASI_DCACHE_TAG 0x47
#define ASI_ITLB_DATA_ACCESS 0x55
#define ASI_ITLB_TAG_READ 0x56
#define ASI_DTLB_DATA_ACCESS 0x5D
#define ASI_DTLB_TAG_READ 0x5E
#define ASI_ICACHE_INSTR 0x66
#define ASI_ICACHE_TAG 0x67
#define VA_ASI_ITLB_TAG_ACCESS 0x30
#define VA_ASI_DTLB_TAG_ACCESS 0x30
#define SES_INIT_VALUE 0x10000000
#define TT_Instruction_Access_Error 0xa
#define TT_FP_Exception_Other 0x22
#define TT_Internal_Processor_Error 0x29
#define TT_Data_Access_Error 0x32
#define TT_Corrected_ECC 0x63
#define TT_Sw_Correctable_ECC 0x40
#define TT_Fast_IMMU_Miss 0x64
#define TT_MA_Interrupt 0x74
#define TT_Data_Error 0x78
#define L2CS_PA0 0xA900000000
#define L2CS_PA1 0xB900000000
#define L2EE_PA0 0xAA00000000
#define L2EE_PA1 0xBA00000000
#define L2ES_PA0 0xAB00000000
#define L2ES_PA1 0xBB00000000
#define L2EA_PA0 0xAC00000000
#define L2EA_PA1 0xBC00000000
#define L2EI_PA0 0xAD00000000
#define L2EI_PA1 0xBD00000000
#define L2ES_TID L2ES_VCID
#define L2ES_LRU L2ES_LRF
#define L2ES_LVU L2ES_LVF
#define DRAM_CSR_STEP 4096
#define DRAM_ES_PA 0x8400000280
#define DRAM_EI_PA 0x8400000290
#define JBI_ERR_INJECT 0x8000004800
#define JBI_ERR_CONFIG 0x8000010000
#define JBI_ERROR_LOG 0x8000010020
#define JBI_ERROR_OVF 0x8000010028
#define JBI_LOG_ENB 0x8000010030
#define JBI_SIG_ENB 0x8000010038
#define JBI_TRANS_TIMEOUT 0x8000010090
#define IOB_INT_MAN_ERR 0x9800000008
#define IOB_INT_CTL_ERR 0x9800000408
#define IOB_RESET_STATUS 0x9800000810
#define JBI_ERR_DPAR_WR 15
#define JBI_ERR_DPAR_RD 14
#define JBI_ERR_REP_UE 12
#define JBI_ERR_NONEX_RD 8
#define JBI_ERR_READ_TO 5
#define SSI_TIMEOUT 0xff00010088
#define SSI_LOG 0xff00000018
#define SOC_ESR_REG 0x8000003000
#define SOC_ELE_REG 0x8000003008
#define SOC_EIE_REG 0x8000003010
#define SOC_EJR_REG 0x8000003018
#define SOC_FEE_REG 0x8000003020
#define SOC_PER_REG 0x8000003028
#define SOC_SII_SYN_REG 0x8000003030
#define SOC_NCU_SYN_REG 0x8000003038
#define SOC_SII_ERR_SYND_REG 0x8000003030
#define SOC_NCU_ERR_SYND_REG 0x8000003038
#define DRAM_ERR_ADDR_REG_PA_0 0x8400000288
#define DRAM_ERR_ADDR_REG_PA_1 0x8400001288
#define DRAM_ERR_ADDR_REG_PA_2 0x8400002288
#define DRAM_ERR_ADDR_REG_PA_3 0x8400003288
#define DRAM_ERR_CNT_REG_PA_0 0x8400000298
#define DRAM_ERR_CNT_REG_PA_1 0x8400001298
#define DRAM_ERR_CNT_REG_PA_2 0x8400002298
#define DRAM_ERR_CNT_REG_PA_3 0x8400003298
#define DRAM_FBR_CNT_REG_PA_0 0x8400000c10
#define DRAM_FBR_CNT_REG_PA_1 0x8400001c10
#define DRAM_FBR_CNT_REG_PA_2 0x8400002c10
#define DRAM_FBR_CNT_REG_PA_3 0x8400003c10
#define DRAM_FBD_ERR_SYND_REG_PA_0 0x8400000c00
#define DRAM_FBD_ERR_SYND_REG_PA_1 0x8400001c00
#define DRAM_FBD_ERR_SYND_REG_PA_2 0x8400002c00
#define DRAM_FBD_ERR_SYND_REG_PA_3 0x8400003c00
#define DRAM_FBD_INJ_ERR_SRC_REG_PA_0 0x8400000c08
#define DRAM_FBD_INJ_ERR_SRC_REG_PA_1 0x8400001c08
#define DRAM_FBD_INJ_ERR_SRC_REG_PA_2 0x8400002c08
#define DRAM_FBD_INJ_ERR_SRC_REG_PA_3 0x8400003c08
#endif /* __ERR_DEFINES_H__ */