summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c/eepromCache.H
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-06-21 16:11:32 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-06-26 16:45:21 -0500
commit3805319f1d630c6bc9c022b3e9eeb601aa3ffbf4 (patch)
tree0d5327e039f273391bfc9b20269968a683b6bd14 /src/usr/i2c/eepromCache.H
parent6fccf28881ecc8adb2c6f1ed877e1f41967ab8a6 (diff)
downloadtalos-hostboot-3805319f1d630c6bc9c022b3e9eeb601aa3ffbf4.tar.gz
talos-hostboot-3805319f1d630c6bc9c022b3e9eeb601aa3ffbf4.zip
Add HCDB Support for eeprom cache process
While parsing the EEPROMs of the system as part of the EECACHE process if we detect a part has been replaced, removed, or added then we must call markTargetChanged to notify hwas to take appropriate actions. This commit also introduces the new preloaded EECACHE section for simics. Change-Id: I9f2a8a62d5c6f9a6c66a0c0c7ed5ed86f7d94aec RTC: 211109 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78762 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@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: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/i2c/eepromCache.H')
-rw-r--r--src/usr/i2c/eepromCache.H15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/usr/i2c/eepromCache.H b/src/usr/i2c/eepromCache.H
index fa0c340bd..9e0e140d8 100644
--- a/src/usr/i2c/eepromCache.H
+++ b/src/usr/i2c/eepromCache.H
@@ -151,6 +151,21 @@ errlHndl_t setIsValidCacheEntry(const TARGETING::Target * i_target,
/**
*
+* @brief Update the record entry in the Table of Contents of the EECACHE
+* section of pnor to either mark the contents of the cache to be
+* valid or invalid
+*
+* @param[in] i_eepromRecordHeader eepromRecord oject already filled in (including eepromRole)
+*
+* @param[in] i_isValid Mark eeprom cache valid or invalid ?
+*
+* @return errlHndl_t - nullptr if successful, otherwise a pointer to the
+* error log.
+*
+*/
+errlHndl_t setIsValidCacheEntry(const eepromRecordHeader& i_eepromRecordHeader, bool i_isValid);
+/**
+*
* @brief Print the info found in the Table of Contents of the EECACHE
* section of pnor to trace buffer
*
OpenPOWER on IntegriCloud