summaryrefslogtreecommitdiffstats
path: root/src/include/runtime
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2018-02-06 16:16:27 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-02-11 14:12:38 -0500
commit27bddb0e962f0b13135cfcbaaa76e5120a99724f (patch)
tree85f8573d1d2ce35435716815f47e80d1bdf071c1 /src/include/runtime
parentc9ad324035c7889d2fbb10e99844fd8148d05bbb (diff)
downloadtalos-hostboot-27bddb0e962f0b13135cfcbaaa76e5120a99724f.tar.gz
talos-hostboot-27bddb0e962f0b13135cfcbaaa76e5120a99724f.zip
Update attributes based on message from the FSP
At least one usecase exists where code on the FSP needs to update an attribute and have that value reflected inside of HBRT. Change-Id: Iad5057ecbb182f6f58879ba694d4b8adea485248 RTC:186991 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53486 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/runtime')
-rw-r--r--src/include/runtime/generic_hbrt_fsp_message.H20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/runtime/generic_hbrt_fsp_message.H b/src/include/runtime/generic_hbrt_fsp_message.H
index 5c9ca7eb0..0f28b5640 100644
--- a/src/include/runtime/generic_hbrt_fsp_message.H
+++ b/src/include/runtime/generic_hbrt_fsp_message.H
@@ -26,6 +26,8 @@
#define __RUNTIME__GENERIC_HBRT_FSP_MESSAGE_H
#include <targeting/common/attributes.H> // TARGETING::HwasState
+#include <attributeenums.H> // ATTRIBUTE_ID
+
/** @file generic_hbrt_fsp_message.H
* @brief A generic structure for passing data
@@ -71,6 +73,23 @@ struct HbrtFspData_t
uint32_t userData;
} PACKED ;
+
+/**
+ * A useful struct to access the HUID, attribute ID and attribute data
+ * from the GenericFspMboxMessage_t.data
+ *
+ * The HUID will be the first 4 bytes followed by a 4-byte attribute ID,
+ * then a 4-byte size of attribute data, and finally the attribute's data
+ *
+ */
+struct HbrtAttrSyncData_t
+{
+ uint32_t huid;
+ TARGETING::ATTRIBUTE_ID attrID;
+ uint32_t sizeOfAttrData;
+ uint8_t attrDataStart;
+} PACKED ;
+
/**
* This struct sends/receives an MBox message to the FSP
*/
@@ -119,6 +138,7 @@ struct GenericFspMboxMessage_t
MSG_TOD_BACKUP_RESET_INFORM_PHYP = 0x0002,
MSG_TOD_TOPOLOGY_DATA = 0x0003,
MSG_DECONFIG_TARGET = 0x0004,
+ MSG_ATTR_SYNC_REQUEST = 0x000000A5,
MSG_SBE_ERROR = 0x000000E1,
MSG_SBE_RECOVERY_SUCCESS = 0x000000E2,
MSG_SBE_RECOVERY_FAILED = 0x000000E3,
OpenPOWER on IntegriCloud