summaryrefslogtreecommitdiffstats
path: root/src/usr/isteps/istep08/call_proc_xbus_scominit.C
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2015-10-23 09:57:37 -0500
committerPatrick Williams <iawillia@us.ibm.com>2015-12-11 15:30:26 -0600
commit0d9998e37c153a2b32fb2e7014152e01823ace86 (patch)
tree51bb5a9863f0bf7393abacb765113c93d0121997 /src/usr/isteps/istep08/call_proc_xbus_scominit.C
parenta4ccd3d722669446c136632b6b501c0748ca3be3 (diff)
downloadtalos-hostboot-0d9998e37c153a2b32fb2e7014152e01823ace86.tar.gz
talos-hostboot-0d9998e37c153a2b32fb2e7014152e01823ace86.zip
P9 Isteps: Created directory structure for istep 8 wrappers
Change-Id: Ib7dcadad57637cb1a97e6920ca2930700551f866 RTC:137652 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21459 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/isteps/istep08/call_proc_xbus_scominit.C')
-rw-r--r--src/usr/isteps/istep08/call_proc_xbus_scominit.C167
1 files changed, 167 insertions, 0 deletions
diff --git a/src/usr/isteps/istep08/call_proc_xbus_scominit.C b/src/usr/isteps/istep08/call_proc_xbus_scominit.C
new file mode 100644
index 000000000..cf99232d0
--- /dev/null
+++ b/src/usr/isteps/istep08/call_proc_xbus_scominit.C
@@ -0,0 +1,167 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/isteps/istep08/call_proc_xbus_scominit.C $ */
+/* */
+/* OpenPOWER HostBoot 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 call_proc_xbus_scominit.C
+ *
+ * Support file for IStep: nest_chiplets
+ * Nest Chiplets
+ *
+ * HWP_IGNORE_VERSION_CHECK
+ *
+ */
+/******************************************************************************/
+// Includes
+/******************************************************************************/
+#include <stdint.h>
+
+#include <trace/interface.H>
+#include <initservice/taskargs.H>
+#include <errl/errlentry.H>
+
+#include <isteps/hwpisteperror.H>
+
+#include <errl/errludtarget.H>
+
+#include <initservice/isteps_trace.H>
+#include <initservice/initserviceif.H>
+
+// targeting support
+#include <targeting/common/commontargeting.H>
+#include <targeting/common/utilFilter.H>
+
+// MVPD
+#include <devicefw/userif.H>
+#include <vpd/mvpdenums.H>
+
+#include <config.h>
+
+// -- prototype includes --
+// Add any customized routines that you don't want overwritten into
+// "start_clocks_on_nest_chiplets_custom.C" and include
+// the prototypes here.
+// #include "nest_chiplets_custom.H"
+namespace ISTEP_08
+{
+
+using namespace ISTEP;
+using namespace ISTEP_ERROR;
+using namespace ERRORLOG;
+using namespace TARGETING;
+
+//*****************************************************************************
+// wrapper function to call proc_xbus_scominit
+//******************************************************************************
+void* call_proc_xbus_scominit( void *io_pArgs )
+{
+// errlHndl_t l_err = NULL;
+ IStepError l_StepError;
+
+ TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "call_proc_xbus_scominit entry" );
+
+ do
+ {
+
+ /* @TODO RTC:134078
+
+ EDI_EI_INITIALIZATION::TargetPairs_t l_XbusConnections;
+ // Note:
+ // i_noDuplicate parameter must be set to false because
+ // two separate calls would be needed:
+ // X0 <--> X1
+ // X1 <--> X0
+ // only the first target is used to issue SCOMs
+ l_err =
+ EDI_EI_INITIALIZATION::PbusLinkSvc::getTheInstance().getPbusConnections(
+ l_XbusConnections, TYPE_XBUS, false);
+ if (l_err)
+ {
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
+ "ERROR 0x%.8X : getPbusConnections XBUS returns error",
+ l_err->reasonCode());
+
+ // Create IStep error log and cross reference to error that occurred
+ l_StepError.addErrorDetails( l_err );
+ // Commit the error log
+ // Log should be deleted and set to NULL in errlCommit.
+ errlCommit(l_err, HWPF_COMP_ID);
+
+ // Shouldn't continue on this fatal error (no XBUS), break out
+ break;
+ }
+
+ for (EDI_EI_INITIALIZATION::TargetPairs_t::const_iterator
+ l_itr = l_XbusConnections.begin();
+ l_itr != l_XbusConnections.end(); ++l_itr)
+ {
+ const TARGETING::Target* l_thisXbusTarget = l_itr->first;
+ const TARGETING::Target* l_connectedXbusTarget = l_itr->second;
+
+ // Call HW procedure
+ TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace,
+ "Running proc_xbus_scominit HWP on "
+ "This XBUS target %.8X - Connected XBUS target %.8X",
+ TARGETING::get_huid(l_thisXbusTarget),
+ TARGETING::get_huid(l_connectedXbusTarget));
+
+ const fapi::Target l_thisXbusFapiTarget(
+ TARGET_TYPE_XBUS_ENDPOINT,
+ (const_cast<TARGETING::Target*>(l_thisXbusTarget)));
+
+ const fapi::Target l_connectedXbusFapiTarget(
+ TARGET_TYPE_XBUS_ENDPOINT,
+ (const_cast<TARGETING::Target*>(l_connectedXbusTarget)));
+ //@TODO RTC:134078
+ //FAPI_INVOKE_HWP(l_err, p9_xbus_scominit,
+ // l_thisXbusFapiTarget, l_connectedXbusFapiTarget);
+ if (l_err)
+ {
+ TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace,
+ "ERROR 0x%.8X : proc_xbus_scominit HWP returns error. "
+ "This XBUS target %.8X - Connected XBUS target %.8X",
+ l_err->reasonCode(),
+ TARGETING::get_huid(l_thisXbusTarget),
+ TARGETING::get_huid(l_connectedXbusTarget));
+
+ // capture the target data in the elog
+ ErrlUserDetailsTarget(l_thisXbusTarget).addToLog( l_err );
+ ErrlUserDetailsTarget(l_connectedXbusTarget).addToLog( l_err );
+
+ // Create IStep error log and cross ref to error that occurred
+ l_StepError.addErrorDetails( l_err );
+ // We want to continue to the next target instead of exiting,
+ // Commit the error log and move on
+ // Note: Error log should already be deleted and set to NULL
+ // after committing
+ errlCommit(l_err, HWPF_COMP_ID);
+ }
+
+ }
+*/
+ } while (0);
+
+ return l_StepError.getErrorHandle();
+}
+};
OpenPOWER on IntegriCloud