From d36ed97ae96d57cf63171f30a0154e5cf0e74925 Mon Sep 17 00:00:00 2001 From: Mike Jones Date: Wed, 11 Jul 2012 16:25:28 -0500 Subject: Add proc_scomoverride_chiplets stub to Hostboot Change-Id: I561f168d7679dfb290f615eaade20493efc64695 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1340 Tested-by: Jenkins Server Reviewed-by: Van H. Lee Reviewed-by: CAMVAN T. NGUYEN Reviewed-by: A. Patrick Williams III --- src/usr/hwpf/hwp/nest_chiplets/nest_chiplets.C | 46 ++++---------------------- 1 file changed, 7 insertions(+), 39 deletions(-) (limited to 'src/usr/hwpf/hwp/nest_chiplets/nest_chiplets.C') diff --git a/src/usr/hwpf/hwp/nest_chiplets/nest_chiplets.C b/src/usr/hwpf/hwp/nest_chiplets/nest_chiplets.C index 7aae8fcdd..8af4ee023 100644 --- a/src/usr/hwpf/hwp/nest_chiplets/nest_chiplets.C +++ b/src/usr/hwpf/hwp/nest_chiplets/nest_chiplets.C @@ -59,10 +59,10 @@ #include "nest_chiplets.H" #include "proc_start_clocks_chiplets/proc_start_clocks_chiplets.H" #include "proc_chiplet_scominit/proc_chiplet_scominit.H" +#include "proc_scomoverride_chiplets/proc_scomoverride_chiplets.H" // Uncomment these files as they become available: // #include "proc_a_x_pci_dmi_pll_setup/proc_a_x_pci_dmi_pll_setup.H" -// #include "proc_scomoverride_chiplets/proc_scomoverride_chiplets.H" namespace NEST_CHIPLETS { @@ -280,51 +280,19 @@ void call_proc_scomoverride_chiplets( void *io_pArgs ) errlHndl_t l_errl = NULL; TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_proc_scomoverride_chiplets entry" ); - -#if 0 - // @@@@@ CUSTOM BLOCK: @@@@@ - // figure out what targets we need - // customize any other inputs - // set up loops to go through all targets (if parallel, spin off a task) - - // print call to hwp and dump physical path of the target(s) - TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "===== proc_scomoverride_chiplets HWP(? ? ? )", - ? - ? - ? ); - // dump physical path to targets - EntityPath l_path; - l_path = l_@targetN_target->getAttr(); - l_path.dump(); - TRACFCOMP( g_trac_mc_init, "===== " ); - // cast OUR type of target to a FAPI type of target. - const fapi::Target l_fapi_@targetN_target( - TARGET_TYPE_MEMBUF_CHIP, - reinterpret_cast - (const_cast(l_@targetN_target)) ); - - // call the HWP with each fapi::Target - l_fapirc = proc_scomoverride_chiplets( ? , ?, ? ); + FAPI_INVOKE_HWP(l_errl, proc_scomoverride_chiplets); - // process return code. - if ( l_fapirc== fapi::FAPI_RC_SUCCESS ) + if (l_errl) { - TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "SUCCESS : proc_scomoverride_chiplets HWP(? ? ? )" ); + TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, "ERROR 0x%.8X : proc_scomoverride_chiplets HWP returns error", + l_errl->reasonCode()); } else { - /** - * @todo fapi error - just print out for now... - */ - TRACFCOMP( ISTEPS_TRACE::g_trac_isteps_trace, - "ERROR 0x%.8X: proc_scomoverride_chiplets HWP(? ? ?) ", - static_cast(l_fapirc) ); + TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, "SUCCESS : proc_scomoverride_chiplets HWP"); } - // @@@@@ END CUSTOM BLOCK: @@@@@ -#endif + TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_proc_scomoverride_chiplets exit" ); -- cgit v1.2.1