summaryrefslogtreecommitdiffstats
path: root/src/import/chips
diff options
context:
space:
mode:
authorGreg Still <stillgs@us.ibm.com>2016-05-01 20:30:22 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-10-13 12:53:20 -0400
commit65d24fe5887de131b93117955929341581eba3ce (patch)
tree163745de9dfd964aa518c8dc6a1130fba5b3db73 /src/import/chips
parent1c7a06375e97727d42f7c65d5a09225f55a676c0 (diff)
downloadtalos-sbe-65d24fe5887de131b93117955929341581eba3ce.tar.gz
talos-sbe-65d24fe5887de131b93117955929341581eba3ce.zip
p9_quad_power_off.C Level 1
Change-Id: I297ca5f13a91a5f4d2b3220c3c8d715e80f01a7d RTC: 148918 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23918 Tested-by: Jenkins Server Reviewed-by: Sangeetha T S <sangeet2@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/31153 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C66
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H78
2 files changed, 144 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
new file mode 100644
index 00000000..a2e84a87
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
@@ -0,0 +1,66 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] 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_quad_power_off.C
+/// @brief Power off the EQ -- including the functional cores associatated
+/// with it.
+///
+// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com>
+// *HWP HWP Backup Owner: Greg Still <stillgs@us.ibm.com>
+// *HWP FW Owner: Sangeetha T S <sangeet2@in.ibm.com>
+// *HWP Team: PM
+// *HWP Level: 1
+// *HWP Consumed by: FSP:HS
+///
+/// @verbatim
+/// High-level procedure flow:
+/// - for each good EC associated with the targeted EQ, power it off
+/// - power off the EQ
+/// @endverbatim
+///
+//------------------------------------------------------------------------------
+
+
+// ----------------------------------------------------------------------
+// Includes
+// ----------------------------------------------------------------------
+
+#include <p9_quad_power_off.H>
+
+// ----------------------------------------------------------------------
+// Procedure Function
+// ----------------------------------------------------------------------
+
+fapi2::ReturnCode
+p9_quad_power_off(
+ const fapi2::Target<fapi2::TARGET_TYPE_EQ>& i_eq_target)
+{
+ FAPI_INF("> p9_quad_power_off...");
+
+
+//fapi_try_exit:
+ FAPI_INF("< p9_quad_power_off...");
+ return fapi2::current_err;
+}
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H
new file mode 100644
index 00000000..8b58a946
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H
@@ -0,0 +1,78 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H $ */
+/* */
+/* OpenPOWER sbe Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2016 */
+/* [+] 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_block_wakeup_intr.H
+/// @brief Set/reset the BLOCK_REG_WKUP_SOURCES bit in the PPM
+/// associated with an EX chiplet
+///
+// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com>
+// *HWP Backup HWP Owner: Greg Still <stillgs@us.ibm.com>
+// *HWP FW Owner: Sangeetha T S <sangeet2@in.ibm.com>
+// *HWP Team: PM
+// *HWP Level: 1
+// *HWP Consumed by: FSP:HS
+///
+///-----------------------------------------------------------------------------
+
+#ifndef _P9_QUADPOWEROFF_H_
+#define _P9_QUADPOWEROFF_H_
+
+//------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------
+
+#include <fapi2.H>
+#include <p9_quad_scom_addresses.H>
+#include <p9_quad_scom_addresses_fld.H>
+
+//------------------------------------------------------------------------------
+// Constant definitions
+//------------------------------------------------------------------------------
+
+// function pointer typedef definition for HWP call support
+typedef fapi2::ReturnCode (*p9_quad_power_off_FP_t) (
+ const fapi2::Target<fapi2::TARGET_TYPE_EQ>&);
+
+extern "C"
+{
+
+//------------------------------------------------------------------------------
+// Function prototype
+//------------------------------------------------------------------------------
+
+/// @brief Power off the EQ -- including the functional cores associatated
+/// with it.
+///
+/// @param[in] i_eq_target EQ target
+///
+/// @return FAPI2_RC_SUCCESS if success, else error code.
+
+ fapi2::ReturnCode
+ p9_quad_power_off(
+ const fapi2::Target<fapi2::TARGET_TYPE_CORE>& i_core_target);
+
+} // extern "C"
+
+#endif // _P9_QUADPOWEROFF_H_
OpenPOWER on IntegriCloud