diff options
| author | Dan Crowell <dcrowell@us.ibm.com> | 2017-01-31 12:37:00 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-02-27 12:37:26 -0500 |
| commit | 71d3e7f06404203885ae2b4a96676e5c1f921b42 (patch) | |
| tree | 2122686a91305522d8008f750ce0e7314db1bca6 /src/include | |
| parent | 9b5f6cece30b2ce9b36768bb4b70fb128ba7bfa6 (diff) | |
| download | talos-hostboot-71d3e7f06404203885ae2b4a96676e5c1f921b42.tar.gz talos-hostboot-71d3e7f06404203885ae2b4a96676e5c1f921b42.zip | |
Add several test/debug interfaces for HBRT run_cmd
getattr : read an attribute
readpnor : read data from pnor flash
getscom : read a scom register
putscom : write a scom register
errorlog : create and commit an error log
Change-Id: Id401915c998e5b59b0d940a51a4c60a593efe3e7
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35739
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/usr/targeting/common/target.H | 18 | ||||
| -rw-r--r-- | src/include/usr/util/util_reasoncodes.H | 3 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/include/usr/targeting/common/target.H b/src/include/usr/targeting/common/target.H index d54df271b..7452a4946 100644 --- a/src/include/usr/targeting/common/target.H +++ b/src/include/usr/targeting/common/target.H @@ -71,6 +71,16 @@ namespace fapi2 } } + +// for friend declaration +namespace Util +{ + void cmd_getattr( char*& o_output, + uint32_t i_huid, + uint32_t i_attrId, + uint32_t i_size ); +} + namespace util { class Mutex; @@ -595,6 +605,14 @@ class Target */ friend class TargetAttrBulkSync; + /* + * @brief allow rt_cmds to use private _tryGetAttr. + */ + friend void Util::cmd_getattr( char*& o_output, + uint32_t i_huid, + uint32_t i_attrId, + uint32_t i_size ); + } PACKED; template<const ATTRIBUTE_ID A> diff --git a/src/include/usr/util/util_reasoncodes.H b/src/include/usr/util/util_reasoncodes.H index 8fd6d484c..4df8d3897 100644 --- a/src/include/usr/util/util_reasoncodes.H +++ b/src/include/usr/util/util_reasoncodes.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2016 */ +/* Contributors Listed Below - COPYRIGHT 2012,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -39,6 +39,7 @@ namespace Util UTIL_LIDMGR_GETLIDPNOR = 0x05, // UtilLidMgr::getLidPnor UTIL_LIDMGR_RT = 0x06, UTIL_LIDMGR_CLEANUP = 0x07, // UtilLidMgr::cleanup + UTIL_RT_CMDS = 0x08, // rt_cmds.C }; enum ReasonCode |

