summaryrefslogtreecommitdiffstats
path: root/src/sbefw/sbeSpMsg.H
diff options
context:
space:
mode:
authorShakeeb <shakeebbk@in.ibm.com>2016-09-01 23:50:52 -0500
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2016-09-14 07:06:23 -0400
commit5681b4d8dd3f1dd49d967a74434151b35f97f64d (patch)
tree98f77e0093c21e55069dd1ec0797d845f52598b5 /src/sbefw/sbeSpMsg.H
parent55725bff75c15a0da730b4a6a81e64959bd82602 (diff)
downloadtalos-sbe-5681b4d8dd3f1dd49d967a74434151b35f97f64d.tar.gz
talos-sbe-5681b4d8dd3f1dd49d967a74434151b35f97f64d.zip
Changing FFDC package structure
Change-Id: I150b6e094660e8b639296ee313994c0bd41cf6ee RTC: 160155 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29236 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src/sbefw/sbeSpMsg.H')
-rw-r--r--src/sbefw/sbeSpMsg.H28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/sbefw/sbeSpMsg.H b/src/sbefw/sbeSpMsg.H
index c1b972bf..38251632 100644
--- a/src/sbefw/sbeSpMsg.H
+++ b/src/sbefw/sbeSpMsg.H
@@ -6,6 +6,7 @@
/* OpenPOWER sbe Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -147,9 +148,30 @@ typedef struct sbeResponseFfdc
{
uint32_t magicBytes:16;
uint32_t lenInWords:16; // length in word( 4 byte )
+ uint32_t seqId:16;
+ uint32_t cmdClass:8;
+ uint32_t cmd:8;
uint32_t fapiRc;
/**
+ * @brief set failed command information
+ *
+ * @param[in] i_seqId sequence Id of command
+ * @param[in] i_cmdClass command class
+ * @param[in] i_cmd command
+ *
+ * @return
+ */
+ void inline setCmdInfo(const uint16_t i_seqId,
+ const uint8_t i_cmdClass,
+ const uint8_t i_cmd)
+ {
+ seqId = i_seqId;
+ cmdClass = i_cmdClass;
+ cmd = i_cmd;
+ }
+
+ /**
* @brief set rc
*
* @param[in] i_rc FAPI RC
@@ -181,9 +203,11 @@ typedef struct sbeResponseFfdc
sbeResponseFfdc()
{
magicBytes = 0xFFDC;
- //TODO via 129076.
- //Need to change value for length once FFDC design is final.
+ seqId = 0;
+ cmdClass = SBE_CMD_CLASS_UNKNOWN;
+ cmd = SBE_CMD_UNKNOWN;
lenInWords = ( sizeof(uint32_t ) // For magicBytes + lenInWords
+ + sizeof(uint32_t) // For SeqId + CmdClass + Cmd
+ sizeof(fapiRc))
/ sizeof(uint32_t);
fapiRc = 0;
OpenPOWER on IntegriCloud