summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2014-03-26 12:44:57 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-04-04 10:46:22 -0500
commit1be9762f6c1112555176ba474fe9a294c2ff1d95 (patch)
treef9cd540d06baabfbaa6664eb4519315f2005c1cf /src/include/usr/hwpf
parent8c7a27be94470541d184cfec495b6cfe63953733 (diff)
downloadtalos-hostboot-1be9762f6c1112555176ba474fe9a294c2ff1d95.tar.gz
talos-hostboot-1be9762f6c1112555176ba474fe9a294c2ff1d95.zip
Manage core special wakeup state of in HostBoot
Change-Id: I0480f373a93e03722954ca14a95bf0e8f2b2928f CQ: SW252399 Backport: release-fips810 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9925 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf')
-rw-r--r--src/include/usr/hwpf/hwp/utility_procedures/p8_cpu_special_wakeup.H113
-rw-r--r--src/include/usr/hwpf/hwp/utility_procedures/proc_cpu_special_wakeup.H105
2 files changed, 218 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/hwp/utility_procedures/p8_cpu_special_wakeup.H b/src/include/usr/hwpf/hwp/utility_procedures/p8_cpu_special_wakeup.H
new file mode 100644
index 000000000..ae95bea07
--- /dev/null
+++ b/src/include/usr/hwpf/hwp/utility_procedures/p8_cpu_special_wakeup.H
@@ -0,0 +1,113 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/hwpf/hwp/utility_procedures/p8_cpu_special_wakeup.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* 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. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: p8_cpu_special_wakeup.H,v 1.7 2013/12/11 20:39:04 stillgs Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/chips/p8/working/procedures/ipl/fapi/p8_cpu_special_wakeup.H,v $
+//------------------------------------------------------------------------------
+// *|
+// *! (C) Copyright International Business Machines Corp. 2011
+// *! All Rights Reserved -- Property of IBM
+// *! *** IBM Confidential ***
+// *|
+// *! TITLE : proc_cpu_special_wakeup.H
+// *! DESCRIPTION : Set the EX chiplet into Special Wake-up via one of the
+// *! entity bits provided
+// *!
+// *! OWNER NAME : Greg Still Email: stillgs@us.ibm.com
+// *! BACKUP NAME : Pradeep CN Email: padeepcn@in.ibm.com
+// *!
+//------------------------------------------------------------------------------
+
+#ifndef _PROC_CPUSPECWKUP_H_
+#define _PROC_CPUSPECWKUP_H_
+
+
+//------------------------------------------------------------------------------
+// Constant definitions
+//------------------------------------------------------------------------------
+
+#ifndef _PROC_SPCWKUP_ENTITY
+#define _PROC_SPCWKUP_ENTITY
+
+#define NUM_SPCWKUP_ENTITIES 4
+enum PROC_SPCWKUP_ENTITY
+{
+ HOST,
+ FSP,
+ OCC,
+ PHYP = HOST,
+ SPW_ALL
+};
+
+
+
+#define NUM_SPCWKUP_OPS 3
+enum PROC_SPCWKUP_OPS
+{
+ SPCWKUP_DISABLE,
+ SPCWKUP_ENABLE,
+ SPCWKUP_INIT,
+ SPCWKUP_FORCE_DEASSERT
+};
+
+
+#endif // _PROC_SPCWKUP_TGTS
+
+
+
+
+//------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------
+
+
+// function pointer typedef definition for HWP call support
+typedef fapi::ReturnCode (*p8_cpu_special_wakeup_FP_t) (
+ const fapi::Target&,
+ PROC_SPCWKUP_OPS,
+ PROC_SPCWKUP_ENTITY );
+
+extern "C" {
+
+//------------------------------------------------------------------------------
+// Parameter structure definitions
+//------------------------------------------------------------------------------
+
+
+//------------------------------------------------------------------------------
+// Function prototype
+//------------------------------------------------------------------------------
+/// \param[in] i_ex_target EX target
+/// \param[in] i_entity Entity bit to use (OCC, PHYP, FSP)
+/// \param[in] i_operation operation to use (SPCWKUP_ENABLE, SPCWKUP_DISABLE)
+
+
+/// \retval ECMD_SUCCESS if something good happens,
+/// \retval BAD_RETURN_CODE otherwise
+fapi::ReturnCode
+p8_cpu_special_wakeup( const fapi::Target& i_ex_target,
+ PROC_SPCWKUP_OPS i_operation ,
+ PROC_SPCWKUP_ENTITY i_entity );
+
+} // extern "C"
+
+#endif // _PROC_CPUSPECWKUP_H_
diff --git a/src/include/usr/hwpf/hwp/utility_procedures/proc_cpu_special_wakeup.H b/src/include/usr/hwpf/hwp/utility_procedures/proc_cpu_special_wakeup.H
new file mode 100644
index 000000000..d58502ca7
--- /dev/null
+++ b/src/include/usr/hwpf/hwp/utility_procedures/proc_cpu_special_wakeup.H
@@ -0,0 +1,105 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/include/usr/hwpf/hwp/utility_procedures/proc_cpu_special_wakeup.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* 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. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: proc_cpu_special_wakeup.H,v 1.8 2012/08/21 11:39:37 pchatnah Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/chips/p8/working/procedures/ipl/fapi/proc_cpu_special_wakeup.H,v $
+//------------------------------------------------------------------------------
+// *|
+// *! (C) Copyright International Business Machines Corp. 2011
+// *! All Rights Reserved -- Property of IBM
+// *! *** IBM Confidential ***
+// *|
+// *! TITLE : proc_cpu_special_wakeup.H
+// *! DESCRIPTION : Set the EX chiplet into Special Wake-up via one of the
+// *! entity bits provided
+// *!
+// *! OWNER NAME : Greg Still Email: stillgs@us.ibm.com
+// *! BACKUP NAME : Pradeep CN Email: padeepcn@in.ibm.com
+// *!
+//------------------------------------------------------------------------------
+
+#ifndef _PROC_CPUSPECWKUP_H_
+#define _PROC_CPUSPECWKUP_H_
+
+
+//------------------------------------------------------------------------------
+// Constant definitions
+//------------------------------------------------------------------------------
+
+#ifndef _PROC_SPCWKUP_ENTITY
+#define _PROC_SPCWKUP_ENTITY
+enum PROC_SPCWKUP_ENTITY
+{
+ HOST = 0X1,
+ FSP = 0x2,
+ OCC = 0x3,
+ PHYP = HOST
+
+};
+
+
+enum PROC_SPCWKUP_OPS
+{
+ SPCWKUP_ENABLE = 0x1,
+ SPCWKUP_DISABLE = 0x2
+};
+
+#endif // _PROC_SPCWKUP_TGTS
+
+
+
+
+//------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------
+
+
+// function pointer typedef definition for HWP call support
+typedef fapi::ReturnCode (*proc_cpu_special_wakeup_FP_t) (const fapi::Target&, PROC_SPCWKUP_OPS , PROC_SPCWKUP_ENTITY );
+
+extern "C" {
+
+
+
+//------------------------------------------------------------------------------
+// Parameter structure definitions
+//------------------------------------------------------------------------------
+
+
+
+//------------------------------------------------------------------------------
+// Function prototype
+//------------------------------------------------------------------------------
+/// \param[in] i_target EX target
+/// \param[in] i_entity Entity bit to use (OCC, PHYP, FSP)
+/// \param[in] i_operation operation to use (SPCWKUP_ENABLE, SPCWKUP_DISABLE)
+
+
+/// \retval ECMD_SUCCESS if something good happens,
+/// \retval BAD_RETURN_CODE otherwise
+fapi::ReturnCode
+proc_cpu_special_wakeup(const fapi::Target& i_target, PROC_SPCWKUP_OPS i_operation , PROC_SPCWKUP_ENTITY i_entity );
+
+
+} // extern "C"
+
+#endif // _PROC_CPUSPECWKUP_H_
OpenPOWER on IntegriCloud