summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSangeetha T S <sangeet2@in.ibm.com>2015-08-19 03:48:11 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-16 00:43:48 -0400
commit4053afae1d3e1727557af8db811c77ef55cd0a4e (patch)
tree5f9e5008c19e79b658d05c4f9c42b0d501fe3003
parent8492b9edc06041e936495d689349c26f593ba448 (diff)
downloadtalos-hostboot-4053afae1d3e1727557af8db811c77ef55cd0a4e.tar.gz
talos-hostboot-4053afae1d3e1727557af8db811c77ef55cd0a4e.zip
JET: Level 2, p9_pm_ocb_indir_setup_circular
Change-Id: I06be0092163585b3ca5a363427cc9fb9f3d8ce9f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19917 Tested-by: Jenkins Server Reviewed-by: Bilicon Patil <bilpatil@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25890 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.C29
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.H12
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.mk3
3 files changed, 28 insertions, 16 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.C
index fe3a30450..6649e475e 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.C
@@ -1,7 +1,7 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
-/* $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_indir_setup_circular.C $ */
+/* $Source: chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.C $ */
/* */
/* IBM CONFIDENTIAL */
/* */
@@ -19,11 +19,11 @@
/// @file p9_pm_ocb_indir_setup_circular.C
/// @brief Configure OCB Channels for Circular Push or Pull Mode
///
-// *HWP HWP Owner : Greg Still <stillgs@us.ibm.com>
-// *HWP Backup HWP Owner:
+// *HWP HWP Owner : Amit Kumar <akumar@us.ibm.com>
+// *HWP Backup HWP Owner: Greg Still <stillgs@us.ibm.com>
// *HWP FW Owner : Bilicon Patil <bilpatil@in.ibm.com>
// *HWP Team : PM
-// *HWP Level : 1
+// *HWP Level : 2
// *HWP Consumed by : HS
@@ -45,11 +45,24 @@
fapi2::ReturnCode p9_pm_ocb_indir_setup_circular(
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
- p9ocb::PM_OCB_CHAN_NUM i_ocb_chan,
- p9ocb::PM_OCB_CHAN_TYPE i_ocb_type)
+ const p9ocb::PM_OCB_CHAN_NUM i_ocb_chan,
+ const p9ocb::PM_OCB_CHAN_TYPE i_ocb_type)
{
- FAPI_IMP("Entering...");
+ FAPI_IMP("p9_pm_ocb_indir_setup_circular Enter");
FAPI_DBG("For channel %x as type %x", i_ocb_chan, i_ocb_type);
- return fapi2::FAPI2_RC_SUCCESS;
+ fapi2::ReturnCode l_rc = fapi2::FAPI2_RC_SUCCESS;
+ FAPI_EXEC_HWP(l_rc,
+ p9_pm_ocb_init,
+ i_target,
+ p9pm::PM_SETUP_PIB,
+ i_ocb_chan,
+ i_ocb_type,
+ 0, // ocb_bar
+ 0, // ocb_q_len
+ p9ocb::OCB_Q_OUFLOW_NULL,
+ p9ocb::OCB_Q_ITPTYPE_NULL);
+
+ FAPI_IMP("p9_pm_ocb_indir_setup_circular Exit");
+ return l_rc;
}
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.H
index 73a02543d..a465328ae 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.H
@@ -1,7 +1,7 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
-/* $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_indir_setup_circular.H $ */
+/* $Source: chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.H $ */
/* */
/* IBM CONFIDENTIAL */
/* */
@@ -22,7 +22,7 @@
// *HWP Backup HWP Owner:
// *HWP FW Owner : Bilicon Patil <bilpatil@in.ibm.com>
// *HWP Team : PM
-// *HWP Level : 1
+// *HWP Level : 2
// *HWP Consumed by : HS
@@ -35,8 +35,8 @@
// function pointer typedef definition for HWP call support
typedef fapi2::ReturnCode (*p9_pm_ocb_indir_setup_circular_FP_t)
(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&,
- p9ocb::PM_OCB_CHAN_NUM,
- p9ocb::PM_OCB_CHAN_TYPE);
+ const p9ocb::PM_OCB_CHAN_NUM,
+ const p9ocb::PM_OCB_CHAN_TYPE);
extern "C"
{
@@ -52,8 +52,8 @@ extern "C"
fapi2::ReturnCode p9_pm_ocb_indir_setup_circular(
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
- p9ocb::PM_OCB_CHAN_NUM i_ocb_chan,
- p9ocb::PM_OCB_CHAN_TYPE i_ocb_type);
+ const p9ocb::PM_OCB_CHAN_NUM i_ocb_chan,
+ const p9ocb::PM_OCB_CHAN_TYPE i_ocb_type);
} // extern "C"
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.mk b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.mk
index a43bf1119..6e3c53302 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.mk
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.mk
@@ -1,7 +1,7 @@
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
-# $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_indir_setup_circular.mk $
+# $Source: chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_setup_circular.mk $
#
# IBM CONFIDENTIAL
#
@@ -17,5 +17,4 @@
#
# IBM_PROLOG_END_TAG
PROCEDURE=p9_pm_ocb_indir_setup_circular
-libp9_pm_ocb_indir_setup_circular_DEPLIBS += p9_pm_utils
$(call BUILD_PROCEDURE)
OpenPOWER on IntegriCloud