diff options
author | Thi Tran <thi@us.ibm.com> | 2015-10-30 11:10:43 -0500 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 15:31:48 -0600 |
commit | ee2a062059e865e564720fc3ee6618480586c416 (patch) | |
tree | 36278b439297552c90ed418a34d914077e6641e8 /src/import | |
parent | 9f41fa3cd378ffec67fa5b4dc21ec9bcae5ff68d (diff) | |
download | talos-hostboot-ee2a062059e865e564720fc3ee6618480586c416.tar.gz talos-hostboot-ee2a062059e865e564720fc3ee6618480586c416.zip |
p9_psi_scominit procedure (Level 1)
Change-Id: Ib68958f19a4da373cbc796b76ede8f1bca4c9dc9
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21624
Tested-by: Jenkins Server
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-by: CHRISTINA L. GRAVES <clgraves@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23168
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import')
3 files changed, 158 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.C b/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.C new file mode 100644 index 000000000..e19433150 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.C @@ -0,0 +1,65 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/nest/p9_psi_scominit.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// ---------------------------------------------------------------------------- +/// @file p9_psi_scominit.H +/// +/// Initializes PSI SCOM of the target proc. +/// +/// ---------------------------------------------------------------------------- +/// *HWP HWP Owner : Joe McGill <jmcgill@us.ibm.com> +/// *HWP FW Owner : Thi Tran <thi@us.ibm.com> +/// *HWP Team : Nest +/// *HWP Level : 1 +/// *HWP Consumed by : HB +/// ---------------------------------------------------------------------------- + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ +#include <p9_psi_scominit.H> + +///---------------------------------------------------------------------------- +/// Constant definitions +///---------------------------------------------------------------------------- + +extern "C" { + +///---------------------------------------------------------------------------- +/// Function definitions +///---------------------------------------------------------------------------- + +/// +/// @brief p9_psi_scominit procedure entry point +/// See doxygen in p9_psi_scominit.H +/// + fapi2::ReturnCode p9_psi_scominit( + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target) + { + FAPI_DBG("Entering p9_psi_scominit"); + fapi2::ReturnCode l_rc; + + // TODO: Add code here. + +// fapi_try_exit: + FAPI_DBG("Exiting p9_psi_scominit"); + + return fapi2::current_err; + } + +} // extern "C" diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.H b/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.H new file mode 100644 index 000000000..c6d7f283a --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.H @@ -0,0 +1,73 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/nest/p9_psi_scominit.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2015 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ +/// ---------------------------------------------------------------------------- +/// @file p9_psi_scominit.H +/// +/// @brief p9_psi_scominit HWP +/// +/// Initializes PSI SCOM of the target proc. +/// +/// ---------------------------------------------------------------------------- +/// *HWP HWP Owner : Joe McGill <jmcgill@us.ibm.com> +/// *HWP FW Owner : Thi Tran <thi@us.ibm.com> +/// *HWP Team : Nest +/// *HWP Level : 1 +/// *HWP Consumed by : HB +/// ---------------------------------------------------------------------------- + +#ifndef _P9_PSI_SCOMINIT_H_ +#define _P9_PSI_SCOMINIT_H_ + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ +#include <fapi2.H> + +// Function pointer typedef definition for HWP call support +typedef fapi2::ReturnCode (*p9_psi_scominit_FP_t)( + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&); + +//---------------------------------------------------------------------------- +// Constant definitions +//---------------------------------------------------------------------------- + + +//------------------------------------------------------------------------------ +// Function prototypes +//------------------------------------------------------------------------------ + +extern "C" +{ + +/// +/// @brief p9_psi_scominit procedure +/// +/// Initializes PSI SCOM of the target proc. +/// +/// @param[in] i_target Reference to TARGET_TYPE_PROC_CHIP target +/// +/// @return FAPI2_RC_SUCCESS if success, else error code. +/// + + fapi2::ReturnCode p9_psi_scominit( + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target); + +} // extern "C" + +#endif // _P9_PSI_SCOMINIT_H_ diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.mk b/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.mk new file mode 100644 index 000000000..18b231ebd --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/nest/p9_psi_scominit.mk @@ -0,0 +1,20 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: chips/p9/procedures/hwp/nest/p9_psi_scominit.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015 +# [+] International Business Machines Corp. +# +# +# 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. +# +# IBM_PROLOG_END_TAG +PROCEDURE=p9_psi_scominit +$(call BUILD_PROCEDURE) |