summaryrefslogtreecommitdiffstats
path: root/src/sbefw/sbefapiutil.H
diff options
context:
space:
mode:
authorspashabk-in <shakeebbk@in.ibm.com>2017-01-18 00:36:04 -0600
committerAMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>2017-02-03 05:37:00 -0500
commite07ac03757a7c6c23e926fec31a5528caf89f3ab (patch)
tree037932eb10cffa2b80247f9334695cb7446aa73b /src/sbefw/sbefapiutil.H
parentaadf9ad49188ed8a4af7eea119a7b8b24a7ecf61 (diff)
downloadtalos-sbe-e07ac03757a7c6c23e926fec31a5528caf89f3ab.tar.gz
talos-sbe-e07ac03757a7c6c23e926fec31a5528caf89f3ab.zip
Target Table update as per SBE spec
Change-Id: I60e8fbd871148e1f9f9fc0c08a502031b01c2446 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35022 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: AMIT J. TENDOLKAR <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'src/sbefw/sbefapiutil.H')
-rw-r--r--src/sbefw/sbefapiutil.H23
1 files changed, 19 insertions, 4 deletions
diff --git a/src/sbefw/sbefapiutil.H b/src/sbefw/sbefapiutil.H
index 4728807e..d8136107 100644
--- a/src/sbefw/sbefapiutil.H
+++ b/src/sbefw/sbefapiutil.H
@@ -5,7 +5,8 @@
/* */
/* OpenPOWER sbe Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016 */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -37,18 +38,32 @@
#include "fapi2.H"
#include "plat_hw_access.H"
+/* @brief - Map SBE target Types to Fapi Target Types
+ *
+ * @param[in] - i_sbeTargetType SBE target type
+ * @param[in] - i_chipletId Chiplet Id
+ *
+ * @return - fapi target type
+ */
+fapi2::TargetType sbeGetFapiTargetType(const uint16_t i_sbeTargetType,
+ const uint16_t i_chipletId);
+
/*@brief - create fapi target handle for the target type
*
* @param[in] - i_taretType - sbe target type
* @param[in] - i_chipletId - chiplet id
* @param[out] - o_tgtHndl - fapi target handle
+ * @param[in] - i_fapiTargetMask - expected fapi targets, by default
+ * no masking
*
* @return - true - on success
* false - on failure
*/
-bool sbeGetFapiTargetHandle(uint16_t i_targetType,
- uint16_t i_chipletId,
- fapi2::plat_target_handle_t &o_tgtHndl);
+bool sbeGetFapiTargetHandle(const uint16_t i_targetType,
+ const uint16_t i_chipletId,
+ fapi2::plat_target_handle_t &o_tgtHndl,
+ const fapi2::TargetType i_fapiTargetMask =
+ fapi2::TARGET_TYPE_ALL);
/*@brief - Map sbe ring access modes to fapi ring access modes
*
OpenPOWER on IntegriCloud