diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2018-09-25 13:55:47 -0500 |
---|---|---|
committer | William G. Hoffa <wghoffa@us.ibm.com> | 2018-10-09 16:45:28 -0500 |
commit | 52f52bb84c856d71466ee19acdd8943565be39cc (patch) | |
tree | 6ee4da08a9bdf9c6b627c1acc9a40054114b80dc /src/include/runtime/interface.h | |
parent | d6741cb3db68795586a21fc812806836135341ec (diff) | |
download | talos-hostboot-52f52bb84c856d71466ee19acdd8943565be39cc.tar.gz talos-hostboot-52f52bb84c856d71466ee19acdd8943565be39cc.zip |
Cleanup to Runtime SCOM RCs
Standardized a few more constants and cleaned up some comments
and FFDC to be more obvious
Change-Id: Ifd387123573d75002e2194037636a44702b705d2
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66616
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Richard Ward <rward15@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/runtime/interface.h')
-rw-r--r-- | src/include/runtime/interface.h | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index c59c0d142..70b6e7e1d 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -77,24 +77,28 @@ enum MemoryError_t }; -/** Common return codes to translate into pib error codes. */ -// RC for a piberr is equal to 0x1000 plus the pib error value, -// made into a negative -enum HbrtRcPiberr_t -{ - HBRT_RC_PIBERR_MASK = (0x00000000u - 0x00001007u), // 0xFFFF_EFF9 +/** Common return codes for scom_read, scom_write. */ - HBRT_RC_PIBERR_001_BUSY = (0x00000000u - 0x00001001u), // 0xFFFF_EFFF - HBRT_RC_PIBERR_010_OFFLINE = (0x00000000u - 0x00001002u), // 0xFFFF_EFFE - HBRT_RC_PIBERR_011_PGOOD = (0x00000000u - 0x00001003u), // 0xFFFF_EFFD - HBRT_RC_PIBERR_100_INVALIDADDR = (0x00000000u - 0x00001004u), // 0xFFFF_EFFC - HBRT_RC_PIBERR_101_CLOCKERR = (0x00000000u - 0x00001005u), // 0xFFFF_EFFB - HBRT_RC_PIBERR_110_PARITYERR = (0x00000000u - 0x00001006u), // 0xFFFF_EFFA - HBRT_RC_PIBERR_111_TIMEOUT = (0x00000000u - 0x00001007u), // 0xFFFF_EFF9 +/* RC for a piberr is equal to 0x1000 plus the pib error value, + made into a negative */ +#define HBRT_RC_PIBERR_MASK ((int)(0x0u - 0x1007u)) /* 0xFFFF_EFF9 */ - HBRT_RC_SOMEOTHERERROR = (0x00000000u - 0x00001008u) // 0xFFFF_EFF8 -}; +#define HBRT_RC_PIBERR_001_BUSY ((int)(0x0u - 0x1001u)) /* 0xFFFF_EFFF */ +#define HBRT_RC_PIBERR_010_OFFLINE ((int)(0x0u - 0x1002u)) /* 0xFFFF_EFFE */ +#define HBRT_RC_PIBERR_011_PGOOD ((int)(0x0u - 0x1003u)) /* 0xFFFF_EFFD */ +#define HBRT_RC_PIBERR_100_INVALIDADDR ((int)(0x0u - 0x1004u)) /* 0xFFFF_EFFC */ +#define HBRT_RC_PIBERR_101_CLOCKERR ((int)(0x0u - 0x1005u)) /* 0xFFFF_EFFB */ +#define HBRT_RC_PIBERR_110_PARITYERR ((int)(0x0u - 0x1006u)) /* 0xFFFF_EFFA */ +#define HBRT_RC_PIBERR_111_TIMEOUT ((int)(0x0u - 0x1007u)) /* 0xFFFF_EFF9 */ + +/* Memory channel failure caused an error out to buffer chip. */ +#define HBRT_RC_CHANNEL_FAILURE ((int)(0x0u - 0x1008u)) /* 0xFFFF_EFF8 */ + +/* Any host-specific RCs will be this value or bigger */ +#define HBRT_RC_NEXT_OPEN_RC ((int)(0x0u - 0x1009u)) /* 0xFFFF_EFF7 */ +/** End return codes for scom_read, scom_write. */ + /** * I2C Master Description: chip, engine and port packed into @@ -156,7 +160,7 @@ enum HbrtRcPiberr_t #define HBRT_RSVD_MEM__DATA "ibm,hbrt-data" #define HBRT_RSVD_MEM__ARCH_REG "ibm,arch-reg-data" -// Aligned reserved memory size for Opal +/* Aligned reserved memory size for Opal */ #define HBRT_RSVD_MEM_OPAL_ALIGN 64*KILOBYTE /** |