From e66830b6bb8ea7651cb5c06821313174b0ecd77c Mon Sep 17 00:00:00 2001 From: Andre Marin Date: Fri, 2 Nov 2018 08:33:30 -0500 Subject: [PATCH] Add exp_draminit and fix data_structs constants Change-Id: I01569a9c21c2a32a3eab12b236d8ca2ab8d02756 Original-Change-Id: Ic8011ed9b6261ce2849b2c51f79c9533261222bf Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67837 Reviewed-by: STEPHEN GLANCY Tested-by: Jenkins Server Tested-by: HWSV CI Tested-by: Hostboot CI Reviewed-by: Louis Stermole Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80970 Reviewed-by: RAJA DAS Tested-by: RAJA DAS --- .../hwp/memory/lib/shared/exp_consts.H | 33 +++++++++++++++++++ .../xml/error_info/mss_exp_errors.xml | 22 ++++++++++++- .../lib/utils/shared/mss_generic_consts.H | 3 +- 3 files changed, 56 insertions(+), 2 deletions(-) diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H index 387a21beb..472abea24 100644 --- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H +++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H @@ -167,6 +167,39 @@ enum addrSide }// i2c + +namespace omi +{ + +/// +/// @brief HOST-FW Commands and Responses +/// +enum cmd_and_response_id +{ + FW_DDR_INTERFACE_INIT = 0x01, + FW_TEMP_SENSOR_INIT = 0x02, + FW_ERR_LOGGING_INTERFACE_INIT = 0x03, + FW_GO_COMMAND = 0x04, + FW_ADAPTER_PROPERTIES_GET = 0x05, + FW_STATUS_GET = 0x06, + FW_TEMPERATURE_GET = 0x07, + FW_ERROR_LOG_GET = 0x08, + FW_SPD_DATA_SET = 0x09, + FW_BINARY_UPGRADE = 0x0A, + FW_FLASH_LOADER_VERSION_INFO = 0x0B, +}; + +/// +/// @brief Response argument parameters +/// +enum response_arg +{ + SUCCESS = 0, + ERROR_CODE = 1, +}; + +}// omi + }// exp }// mss diff --git a/src/import/chips/ocmb/explorer/procedures/xml/error_info/mss_exp_errors.xml b/src/import/chips/ocmb/explorer/procedures/xml/error_info/mss_exp_errors.xml index c5061b457..a0a9c9734 100644 --- a/src/import/chips/ocmb/explorer/procedures/xml/error_info/mss_exp_errors.xml +++ b/src/import/chips/ocmb/explorer/procedures/xml/error_info/mss_exp_errors.xml @@ -40,7 +40,7 @@ - RC_MSS_EXP_STATUS_CODE_UNSUCCESSFUL + RC_MSS_EXP_I2C_FW_STATUS_CODE_FAILED Explorer status code for command ID EXP_FW_STATUS did not return SUCCESS @@ -98,4 +98,24 @@ + + RC_MSS_EXP_RSP_ARG_FAILED + + The response_argument field of the host_fw_response_struct returned a FAILURE + + RSP_ID + ERROR_CODE + + CODE + MEDIUM + + + TARGET + HIGH + + + TARGET + + + diff --git a/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H b/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H index d378179d4..6082120ca 100644 --- a/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H +++ b/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H @@ -47,7 +47,8 @@ namespace mss /// enum common_consts { - DEFAULT_POLL_LIMIT = 50, ///< the number of poll attempts in the event we can't calculate another + DEFAULT_POLL_LIMIT = 50, ///< the number of poll attempts in the event we can't calculate another + MEMCMP_EQUAL = 0, ///< Equal comparison value for memcmp }; ///