From 0a1b60c34e55018e233c64b292e16c3479d2145c Mon Sep 17 00:00:00 2001 From: Marty Gloff Date: Tue, 17 Oct 2017 08:23:52 -0500 Subject: Concurrent code update of HBRT - Update Structure Update Hostboot targeting data in the new targeting structure from the current targeting data. It will have the logic to save and restore values as appropriate. Change-Id: I7ae4a0c2e58548f6f1a6229f40b9fda833670e86 RTC: 180908 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48504 Reviewed-by: Roland Veloz Reviewed-by: Matt Derksen Reviewed-by: Brian E. Bakke Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/usr/runtime/rt_targeting.H | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'src/include/usr/runtime') diff --git a/src/include/usr/runtime/rt_targeting.H b/src/include/usr/runtime/rt_targeting.H index 5895c9fad..a8e01c20b 100644 --- a/src/include/usr/runtime/rt_targeting.H +++ b/src/include/usr/runtime/rt_targeting.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014,2016 */ +/* Contributors Listed Below - COPYRIGHT 2014,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -54,7 +54,7 @@ namespace RT_TARG rtChipId_t &o_targetId); /** - * @brier Convert a runtime chip_id (target) into a TARGETING::Target + * @brief Convert a runtime chip_id (target) into a TARGETING::Target * @param[in] The rt chipId * @param[out] The TARGETING::Target pointer * @return error log handle on error else NULL @@ -62,6 +62,28 @@ namespace RT_TARG errlHndl_t getHbTarget(rtChipId_t i_rt_chip_id, TARGETING::Target *& o_target); + /** + * @brief Save/Restore attribute values from current Reserved Memory data + * into new LID Structure data + * @param[in] Pointer to current Reserved Memory targeting binary data + * @param[in/out] Pointer to new LID Structure targeting binary data + * @return 0 on success, else return code + */ + int saveRestoreAttrs(void *i_rsvdMemPtr, + void *io_lidStructPtr); + + /** + * @brief Validate LID Structure against Reserved Memory. Check that the + * TargetingHeader eyecatchers are valid, that the TargetingHeader number of + * sections match, and that the types and sizes of each TargetingSection + * match. + * @param[in] Pointer to new LID Structure targeting binary data + * @param[in] Pointer to current Reserved Memory targeting binary data + * @return 0 on success, else return code + */ + int validateData(void *i_lidStructPtr, + void *i_rsvdMemPtr); + /** * @brief Apply ATTR_TMP overrides to be available for run time */ -- cgit v1.2.3