diff options
author | Matt K. Light <mklight@us.ibm.com> | 2016-05-18 09:35:06 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-18 18:29:20 -0400 |
commit | cf404df3bf9c76674a05b8abb902114ac40ec978 (patch) | |
tree | 6e3f864f561b01a5befef8470a078838211c08aa /src/import/hwpf | |
parent | ab154b1b80c185bf0b11731f0bd6d872177b352a (diff) | |
download | talos-hostboot-cf404df3bf9c76674a05b8abb902114ac40ec978.tar.gz talos-hostboot-cf404df3bf9c76674a05b8abb902114ac40ec978.zip |
add Target::isFunctional()
-PPE and Cronus would like to check if a target is functional
using different attributes. This method would abstract the
checking.
PPE would use ATTR_PG_*
Cronus would use ATTR_FUNCTIONAL
Change-Id: I59710cd118f756bed676fb94c38bbf0517f24730
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24721
Tested-by: Jenkins Server
Tested-by: PPE CI
Tested-by: Hostboot CI
Reviewed-by: Brian R. Silver <bsilver@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24723
Tested-by: FSP CI Jenkins
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf')
-rw-r--r-- | src/import/hwpf/fapi2/include/fapi2_target.H | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/fapi2_target.H b/src/import/hwpf/fapi2/include/fapi2_target.H index 7c0a8d8d4..a0ce0d1cb 100644 --- a/src/import/hwpf/fapi2/include/fapi2_target.H +++ b/src/import/hwpf/fapi2/include/fapi2_target.H @@ -311,6 +311,14 @@ class Target getOtherEnd(Target<T>& o_target, const TargetState i_state = TARGET_STATE_FUNCTIONAL) const; /// + /// @brief Is the target functional? + /// @return true if target is functional, false if non-functional + /// + + inline bool + isFunctional(void) const; + + /// /// @brief Copy from a Target<O> to a Target<K> /// @tparam O the target type of the other /// |