diff options
author | Raja Das <rajadas2@in.ibm.com> | 2016-02-09 03:10:11 -0600 |
---|---|---|
committer | AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com> | 2016-03-24 00:57:24 -0400 |
commit | 9b222a06e7013429df09bf7ebbbaead076ad5acc (patch) | |
tree | 61ba8d1d4c772ffcc0c0752616db44469afd6a69 /sbe/sbefw/sbeSpMsg.H | |
parent | 19139d2eb05f1211bd21e5ee3689ae9a215cf0fc (diff) | |
download | talos-sbe-9b222a06e7013429df09bf7ebbbaead076ad5acc.tar.gz talos-sbe-9b222a06e7013429df09bf7ebbbaead076ad5acc.zip |
Get/Put Occ Sram Support
Change-Id: I8f4669bfbca3d58d8f55d5d115d370bfa99ae49d
RTC:128980
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/20658
Tested-by: Jenkins Server
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe/sbefw/sbeSpMsg.H')
-rw-r--r-- | sbe/sbefw/sbeSpMsg.H | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/sbe/sbefw/sbeSpMsg.H b/sbe/sbefw/sbeSpMsg.H index a60ae274..ff49e2f2 100644 --- a/sbe/sbefw/sbeSpMsg.H +++ b/sbe/sbefw/sbeSpMsg.H @@ -78,7 +78,43 @@ typedef struct secondaryStatus = SBE_SEC_OPERATION_SUCCESSFUL; } -}sbeResponseGenericHeader_t; +}sbeRespGenHdr_t; + +/** + * @brief structure for generic Resp header with Len for fifo response. + * + */ +typedef struct +{ + uint32_t respLen; + sbeRespGenHdr_t respHdr; + + /** + * @brief set response length + * + * @param[in] i_len Length + * + * @return + */ + void setLength( const uint32_t i_len ) + { + respLen = i_len; + } + + /** + * @brief set initial values for response header + * + * @note We did not set this in constructor as based on use case + * it is possible that g_sbeCmdHdr does not have proper + * values at time of object creation. + * + */ + void init() + { + respHdr.init(); + } +}sbeRespGenHdrWithLen_t; + /** * @brief structure for ffdc header for fifo response. @@ -327,6 +363,17 @@ typedef struct }sbeMemAccessReqMsgHdr_t; +/** + * @brief Structure for SBE OCC Get/Put Sram Access ChipOps (0xA403/A404) + */ +typedef struct +{ + uint32_t reserved:24; // Not used + sbeSramAccessMode mode:8; // Channel select 0-3 + uint32_t addr; // 32-Bit Memory Address + uint32_t len; // Length of Data in Bytes +}sbeOccSramAccessReqMsgHdr_t; + // Maximum number of capabilities static const uint32_t SBE_MAX_CAPABILITIES = 18; @@ -345,7 +392,7 @@ typedef struct sbeCapabilityRespMsg }sbeCapabilityRespMsg_t; // TODO via RTC 128658 -// We may be able to replace this structure by sbeResponseGenericHeader_t +// We may be able to replace this structure by sbeRespGenHdr_t /** * @brief Command response structure to hold the primary and secondary |