summaryrefslogtreecommitdiffstats
path: root/hwpf/include
diff options
context:
space:
mode:
authorSantosh Puranik <santosh.puranik@in.ibm.com>2016-07-18 05:27:58 -0500
committerGregory S. Still <stillgs@us.ibm.com>2016-07-18 12:23:36 -0400
commitb06df3e99d5c2a1f2ada40206c9f317cbe2f1b6f (patch)
tree0c3df08484d4f43ca715dbb946bfe5525e866acf /hwpf/include
parentfb90c414ce973311513a531e58bfd31b54d3004a (diff)
downloadtalos-sbe-b06df3e99d5c2a1f2ada40206c9f317cbe2f1b6f.tar.gz
talos-sbe-b06df3e99d5c2a1f2ada40206c9f317cbe2f1b6f.zip
Update to plat_getTargetHandleByChipletNumber
Templatized to take in a fapi2 Target type Change-Id: Icd55f82e6c8dd0bed92eb245678722ec15f12617 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27127 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'hwpf/include')
-rw-r--r--hwpf/include/plat/plat_target_utils.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/hwpf/include/plat/plat_target_utils.H b/hwpf/include/plat/plat_target_utils.H
index 6c84eaf5..33dc7740 100644
--- a/hwpf/include/plat/plat_target_utils.H
+++ b/hwpf/include/plat/plat_target_utils.H
@@ -59,13 +59,15 @@ namespace fapi2
Target<TARGET_TYPE_PROC_CHIP> plat_getChipTarget();
/// @brief Function to return a platform target handle, given the chiplet
- // number
+ // number and the fapi2 Target type
+ // @tparam K The fapi2 TargetType
// @param i_chipletNumber The chiplet number of the target
// @return Platform handle
// @note The caller can use the platform handle to construct a Target of
// it's choice. Ex:
// fapi2::Target<fapi2::TARGET_TYPE_CORE>
- // l_core(plat_getTargetHandleByChipletNumber(0x20);
+ // l_core(plat_getTargetHandleByChipletNumber<fapi2::TARGET_TYPE_CORE>(0x20);
+ template <TargetType K>
plat_target_handle_t plat_getTargetHandleByChipletNumber(
const uint8_t i_chipletNumber);
}
OpenPOWER on IntegriCloud