summaryrefslogtreecommitdiffstats
path: root/src/include/usr/ecmddatabuffer
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2011-10-05 13:52:52 -0500
committerThi N. Tran <thi@us.ibm.com>2011-10-10 10:42:23 -0500
commit4de170997eee6244b2091bb8bf065ae2da1396d7 (patch)
tree99275148dda9cb03afe005b86ec42746ded135a4 /src/include/usr/ecmddatabuffer
parent9de4a404823c4315d90992d5d08a7fe1794a74c3 (diff)
downloadtalos-hostboot-4de170997eee6244b2091bb8bf065ae2da1396d7.tar.gz
talos-hostboot-4de170997eee6244b2091bb8bf065ae2da1396d7.zip
Added putScomUnderMask/get/put/modifyCfamRegister interfaces
Updated with review comments from set 1 Updated with review comments from set 3 Change-Id: Iaea4c37fe130cb04e99ebdea872ff4c690156f4d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/424 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/include/usr/ecmddatabuffer')
-rw-r--r--src/include/usr/ecmddatabuffer/ecmdDataBuffer.H19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/usr/ecmddatabuffer/ecmdDataBuffer.H b/src/include/usr/ecmddatabuffer/ecmdDataBuffer.H
index 203a966cc..1b65e643e 100644
--- a/src/include/usr/ecmddatabuffer/ecmdDataBuffer.H
+++ b/src/include/usr/ecmddatabuffer/ecmdDataBuffer.H
@@ -130,6 +130,25 @@ public:
*/
uint32_t flushTo0();
+ /**
+ * @brief Set a word of data in buffer
+ * @param i_wordoffset Offset of word to set
+ * @param i_value 32 bits of data to put into word
+ * @retval ECMD_DBUF_SUCCESS on success
+ * @retval ECMD_DBUF_BUFFER_OVERFLOW i_wordoffset is not contained in the size of this buffer
+ *
+ * NOTE : If the buffer length != word boundary, when setting the last word
+ * data in i_value past the buffer length is cleared before being stored in the buffer
+ */
+ uint32_t setWord(uint32_t i_wordoffset, uint32_t i_value);
+
+ /**
+ * @brief Fetch a word from ecmdDataBuffer
+ * @param i_wordoffset Offset of word to fetch
+ * @retval Value of word requested
+ */
+ uint32_t getWord(uint32_t i_wordoffset) const;
+
protected:
uint32_t iv_Capacity; ///< Actual buffer capacity - always >= getNumWords()
uint32_t iv_NumBits; ///< Specified buffer size in bits
OpenPOWER on IntegriCloud