summaryrefslogtreecommitdiffstats
path: root/src/ppe/hwp/core/p9_hcd_core_pcb_arb.C
diff options
context:
space:
mode:
authormbroyles <mbroyles@us.ibm.com>2015-08-03 14:02:47 -0500
committerWilliam A. Bryan <wilbryan@us.ibm.com>2015-08-03 15:24:17 -0500
commitadade8c8ef30ed519322674c762d95663009c5d4 (patch)
treeb1c773b88ec7c896c0185482c869d841b5322d76 /src/ppe/hwp/core/p9_hcd_core_pcb_arb.C
parente304743c292e7161db5e2412d18a28c1b6f37a75 (diff)
downloadtalos-occ-adade8c8ef30ed519322674c762d95663009c5d4.tar.gz
talos-occ-adade8c8ef30ed519322674c762d95663009c5d4.zip
new ppe dir
Change-Id: I43d54c18ac4f3bce90a4f26510e443a55c446bba Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19509 Reviewed-by: William A. Bryan <wilbryan@us.ibm.com> Tested-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/ppe/hwp/core/p9_hcd_core_pcb_arb.C')
-rw-r--r--src/ppe/hwp/core/p9_hcd_core_pcb_arb.C83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/ppe/hwp/core/p9_hcd_core_pcb_arb.C b/src/ppe/hwp/core/p9_hcd_core_pcb_arb.C
new file mode 100644
index 0000000..4dbf22e
--- /dev/null
+++ b/src/ppe/hwp/core/p9_hcd_core_pcb_arb.C
@@ -0,0 +1,83 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/ppe/hwp/core/p9_hcd_core_pcb_arb.C $ */
+/* */
+/* 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_hcd_core_pcb_arb.C
+/// @brief Core Chiplet PCB Arbitration
+///
+/// *HWP HWP Owner : David Du <daviddu@us.ibm.com>
+/// *HWP FW Owner : Reshmi Nair <resnair5@in.ibm.com>
+/// *HWP Team : PM
+/// *HWP Consumed by : SBE:CME
+/// *HWP Level : 1
+///
+/// Procedure Summary:
+/// If CME,
+/// 1.Request PCB Mux, via write to PCB_MUX_REQ_C0 @ CCSCR_OR
+/// - setBit(5) @ CME_LOCAL_CORE_STOP_CONTROL_REGISTER_OR_0510
+/// 2.Poll for PCB Mux grant, via read from
+/// Polled Timeout: ns
+/// - getBit() @
+/// Else (SBE),
+/// Nop (as the CME is not running in bringing up the first Core)
+///
+
+//-----------------------------------------------------------------------------
+// Includes
+//-----------------------------------------------------------------------------
+#include <fapi2.H>
+//#include <common_scom_addresses.H>
+//will be replaced with real scom address header file
+#include "p9_hcd_core_pcb_arb.H"
+
+//-----------------------------------------------------------------------------
+// Constant Definitions: Core Chiplet PCB Arbitration
+//-----------------------------------------------------------------------------
+
+extern "C"
+{
+
+fapi2::ReturnCode
+p9_hcd_core_pcb_arb(
+ const fapi2::Target<fapi2::TARGET_TYPE_CORE>& i_target)
+{
+
+#if 0
+
+ fapi2::buffer<uint64_t> data;
+
+ return fapi2::FAPI2_RC_SUCCESS;
+
+ FAPI_CLEANUP();
+ return fapi2::FAPI2_RC_PLAT_ERR_SEE_DATA;
+
+#endif
+
+ return fapi2::FAPI2_RC_SUCCESS;
+
+} // Procedure
+
+
+} // extern C
+
OpenPOWER on IntegriCloud