summaryrefslogtreecommitdiffstats
path: root/src/ppe/hwp/nest/p9_sbe_mcs_setup.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppe/hwp/nest/p9_sbe_mcs_setup.H')
-rw-r--r--src/ppe/hwp/nest/p9_sbe_mcs_setup.H64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/ppe/hwp/nest/p9_sbe_mcs_setup.H b/src/ppe/hwp/nest/p9_sbe_mcs_setup.H
new file mode 100644
index 0000000..014499a
--- /dev/null
+++ b/src/ppe/hwp/nest/p9_sbe_mcs_setup.H
@@ -0,0 +1,64 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/ppe/hwp/nest/p9_sbe_mcs_setup.H $ */
+/* */
+/* OpenPOWER OnChipController Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* Licensed under the Apache License, Version 2.0 (the "License"); */
+/* you may not use this file except in compliance with the License. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+//------------------------------------------------------------------------------
+/// @file p9_sbe_mcs_setup.H
+///
+/// @brief Configure one MCS unit on the master chip to low point of
+/// coherency acknowledge preparations(lpc_ack preps). in support
+/// of dcbz(Data Cache Block Zero) operations executed by HBI code
+/// (while still running cache contained prior to memory configuration).
+//------------------------------------------------------------------------------
+// *HWP HW Owner : Girisankar Paulraj <gpaulraj@in.ibm.com>
+// *HWP HW Backup Owner : Joe McGill <jcmgill@us.ibm.com>
+// *HWP FW Owner : Thi N. Tran <thi@us.ibm.com>
+// *HWP Team : Nest
+// *HWP Level : 1
+// *HWP Consumed by : SBE
+//------------------------------------------------------------------------------
+
+
+#ifndef _P9_SBE_MCS_SETUP_H_
+#define _P9_SBE_MCS_SETUP_H_
+
+
+#include <fapi2.H>
+
+
+typedef fapi2::ReturnCode (*p9_sbe_mcs_setup_FP_t)(const
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> &);
+
+/// @brief This function configures MCS BAR registers on master SBE chip
+/// to support of dcbz operation execution by HBI code and response
+/// on lpc_ack preps
+///
+/// @param[in] i_target Reference to TARGET_TYPE_PROC_CHIP target
+/// @return FAPI2_RC_SUCCESS if success, else error code.
+extern "C"
+{
+ fapi2::ReturnCode p9_sbe_mcs_setup(const
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> & i_target);
+}
+
+#endif
OpenPOWER on IntegriCloud