diff options
author | Santosh Puranik <santosh.puranik@in.ibm.com> | 2016-06-06 06:39:05 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-06-14 04:44:31 -0400 |
commit | ed0c31af587b36edcd88ce3d1622c43d89809f08 (patch) | |
tree | c10e4cfeec28b6b6303291dc5740b93374dea869 /import/hwpf/fapi2/include/plat | |
parent | 356541b21f50a9cea89738beec22bf6b726dadc2 (diff) | |
download | talos-sbe-ed0c31af587b36edcd88ce3d1622c43d89809f08.tar.gz talos-sbe-ed0c31af587b36edcd88ce3d1622c43d89809f08.zip |
Add getChipletNumber to Target class
Change-Id: I78335d4c3b986d2733e47271457ea340b8ad043e
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25392
Tested-by: Jenkins Server
Tested-by: PPE CI
Tested-by: Hostboot CI
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: Matt K. Light <mklight@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Dev-Ready: 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/25393
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/hwpf/fapi2/include/plat')
-rw-r--r-- | import/hwpf/fapi2/include/plat/target.H | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/import/hwpf/fapi2/include/plat/target.H b/import/hwpf/fapi2/include/plat/target.H index 7e552dfe..ffc88e41 100644 --- a/import/hwpf/fapi2/include/plat/target.H +++ b/import/hwpf/fapi2/include/plat/target.H @@ -167,6 +167,21 @@ Target<K, V>::isFunctional(void) const } /// +/// @brief Returns the chiplet number associated with the Target +/// @return The chiplet number for the Target. 0 is returned if the +/// Target does not have a chiplet number (for ex, the PROC_CHIP Target) +/// @note For logical targets such as the EX, the chiplet number of +/// their immediate parent chiplet is returned +/// +template<TargetType K, typename V> +inline uint8_t +Target<K, V>::getChipletNumber(void) const +{ + // Platform can return the chiplet number stored in it's Target handle + return 0; +} + +/// /// @brief Return the string interpretation of this target /// @tparam T The type of the target /// @param[in] i_target Target<T> |