summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--import/hwpf/fapi2/include/fapi2_target.H8
-rw-r--r--import/hwpf/fapi2/include/plat/target.H14
2 files changed, 22 insertions, 0 deletions
diff --git a/import/hwpf/fapi2/include/fapi2_target.H b/import/hwpf/fapi2/include/fapi2_target.H
index 7c0a8d8d..a0ce0d1c 100644
--- a/import/hwpf/fapi2/include/fapi2_target.H
+++ b/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
///
diff --git a/import/hwpf/fapi2/include/plat/target.H b/import/hwpf/fapi2/include/plat/target.H
index 4b07f46e..4d0c203f 100644
--- a/import/hwpf/fapi2/include/plat/target.H
+++ b/import/hwpf/fapi2/include/plat/target.H
@@ -171,6 +171,20 @@ Target<K, V>::getOtherEnd(Target<T>& o_target, const TargetState i_state) const
}
///
+/// @brief Is the target functional?
+/// @return true if target is functional, false if non-functional
+///
+
+template<TargetType K, typename V>
+inline bool
+Target<K, V>::isFunctional(void) const
+{
+ // Platform check if target is good
+ // Could check ATTR_FUNCTIONAL or ATTR_PG_*
+ return true;
+}
+
+///
/// @brief Return the string interpretation of this target
/// @tparam T The type of the target
/// @param[in] i_target Target<T>
OpenPOWER on IntegriCloud