summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H
diff options
context:
space:
mode:
authorJoe McGill <jmcgill@us.ibm.com>2015-09-22 22:15:06 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-10 22:14:58 -0400
commit44ab1ab0422516b8fb6375870c52ec6aab979096 (patch)
tree614d10292cbf65ccc23658b6b3697dcbf2a2e99b /src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H
parent93efcd1d68dcce6680a6f68b048ccfd94863541b (diff)
downloadtalos-hostboot-44ab1ab0422516b8fb6375870c52ec6aab979096.tar.gz
talos-hostboot-44ab1ab0422516b8fb6375870c52ec6aab979096.zip
Shift HWP content to align with desired EKB layout
Change-Id: I112307522eeb9934842d07d922bb0894e19a6866 Original-Change-Id: Id22bf63b31e0631685139b9695c5a443cf4f2298 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20714 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25665 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H103
1 files changed, 103 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H
new file mode 100644
index 000000000..40f5fdb99
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_ocb_indir_access.H
@@ -0,0 +1,103 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: chips/p9/procedures/ipl/hwp/p9_pm_ocb_indir_access.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* EKB Project */
+/* */
+/* COPYRIGHT 2015 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* IBM_PROLOG_END_TAG */
+// @file p9_pm_ocb_indir_access.H
+// @brief Access procedure to the OCC OCB indirect channels
+
+// *HWP HWP Owner : Greg Still <stillgs@us.ibm.com>
+// *HWP Backup HWP Owner:
+// *HWP FW Owner : Bilicon Patil <bilpatil@in.ibm.com>
+// *HWP Team : PM
+// *HWP Level : 1
+// *HWP Consumed by : HS
+
+#ifndef _P9_PM_OCBINDIRACC_H_
+#define _P9_PM_OCBINDIRACC_H_
+
+//------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------
+#include <fapi2.H>
+#include <p9_pm_ocb_init.H>
+
+//------------------------------------------------------------------------------
+// Constant definitions
+//------------------------------------------------------------------------------
+
+namespace p9ocb
+{
+enum P9_OCB_ACCESS_OP
+{
+ OCB_GET = 0x1,
+ OCB_PUT = 0x2
+};
+}
+
+
+// function pointer typedef definition for HWP call support
+typedef fapi2::ReturnCode (*p9_pm_ocb_indir_access_FP_t)
+(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
+ p9ocb::P9_OCB_CHAN_NUM i_ocb_chan,
+ p9ocb::P9_OCB_ACCESS_OP i_ocb_op,
+ const uint32_t i_ocb_req_length,
+ fapi2::buffer<uint64_t>& io_ocb_buffer,
+ uint32_t& o_ocb_act_length,
+ const bool i_oci_address_valid,
+ const uint32_t i_oci_address);
+
+//------------------------------------------------------------------------------
+// Function prototype
+//------------------------------------------------------------------------------
+
+extern "C"
+{
+
+/// @brief Provides for the abstract access to an OCB indirect channel that has
+/// been configured previously via p9_pm_ocb_indir_setup_[linear/circular]
+/// procedures
+///
+/// @param[in] &i_target Chip target
+/// @param[in] i_ocb_chan OCB channel number (0, 1, 2, 3)
+/// @param[in] i_ocb_op Operation (Get, Put)
+/// @param[in] i_ocb_req_length Requested length in the number of 8B
+/// elements to be accessed (unit origin)
+/// Number of bytes = (i_ocb_req_length) *
+/// 8B
+/// @param[in/out] &io_ocb_buffer Reference to fappi2::buffer
+/// @param[out] &o_ocb_act_length Address containing to contain the actual
+/// length in the number of 8B elements to
+/// be accessed (zero origin)
+/// Number of bytes = (i_ocb_act_length+1) *
+/// 8B
+/// @param[in] i_oci_address_valid Indicator that oci_address is to be used
+/// @param[in] i_oci_address OCI Address to be used for the operation
+/// @return FAPI2_RC_SUCCESS on success, else error.
+
+ fapi2::ReturnCode p9_pm_ocb_indir_access(
+ const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
+ p9ocb::P9_OCB_CHAN_NUM i_ocb_chan,
+ p9ocb::P9_OCB_ACCESS_OP i_ocb_op,
+ const uint32_t i_ocb_req_length,
+ fapi2::buffer<uint64_t>& io_ocb_buffer,
+ uint32_t& o_ocb_act_length,
+ const bool i_oci_address_valid,
+ const uint32_t i_oci_address);
+
+} // extern "C"
+
+#endif // _P9_PM_OCBINDIRACC_H_
OpenPOWER on IntegriCloud