From f9901c5de8785999e7771af2d38f450b5bb7e6b8 Mon Sep 17 00:00:00 2001 From: Sangeetha T S Date: Tue, 12 Jan 2016 02:27:55 -0600 Subject: p9_pm_occ_sram_init: Level 1 - Initial design of interface Change-Id: I7bfb8c3fe19bdc78989875ffa94de6152435c036 RTC: 144300 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23224 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25633 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- .../p9/procedures/hwp/pm/p9_pm_occ_sram_init.H | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/import/chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.H (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.H') diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.H b/src/import/chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.H new file mode 100644 index 000000000..ace741bec --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.H @@ -0,0 +1,65 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/pm/p9_pm_occ_sram_init.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2016 */ +/* [+] 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_pm_occ_sram_init.H +/// @brief Initialize the SRAM in the OCC +/// +// *HWP HWP Owner: Greg Still +// *HWP FW Owner: Sangeetha T S +// *HWP Team: PM +// *HWP Level: 1 +// *HWP Consumed by: FSP:HS +// + +#ifndef _P9_PM_OCC_SRAM_INIT_H_ +#define _P9_PM_OCC_SRAM_INIT_H_ + +//------------------------------------------------------------------------------ +// Includes +//------------------------------------------------------------------------------ +#include +#include + +// function pointer typedef definition for HWP call support +typedef fapi2::ReturnCode (*p9_pm_occ_sram_init_FP_t) ( + const fapi2::Target&, + const p9pm::PM_FLOW_MODE); + +extern "C" +{ + +//------------------------------------------------------------------------------ +// Function prototype +//------------------------------------------------------------------------------ +/// +/// @brief Initialize or Reset the OCC SRAM using necessary Platform +/// or Feature attributes +/// +/// @param[in] i_target Chip target +/// @param[in] i_mode Control mode for the procedure (PM_INIT, PM_RESET) +/// +/// @return FAPI2_RC_SUCCESS on success or error return code +/// + fapi2::ReturnCode p9_pm_occ_sram_init( + const fapi2::Target& i_target, + const p9pm::PM_FLOW_MODE i_mode); + +} + +#endif // _P9_PM_OCC_SRAM_INIT_H_ -- cgit v1.2.1