/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: chips/p9/procedures/hwp/perv/p9_ram_putreg.C $ */ /* */ /* 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_ram_putreg.C /// @brief Utility to implement Put Register by ramming /// //----------------------------------------------------------------------------------- // *HWP HWP Owner : Liu Yang Fan // *HWP HWP Backup Owner : Gou Peng Fei // *HWP FW Owner : Thi Tran // *HWP Team : Perv // *HWP Level : 2 // *HWP Consumed by : None (Cronus test only) //----------------------------------------------------------------------------------- //----------------------------------------------------------------------------------- // Includes //----------------------------------------------------------------------------------- #include //----------------------------------------------------------------------------------- // Function definitions //----------------------------------------------------------------------------------- fapi2::ReturnCode p9_ram_putreg(const fapi2::Target& i_target, const uint8_t i_thread, const Enum_RegType i_type, const uint32_t i_reg_num, const fapi2::buffer* i_buffer) { FAPI_INF("Start"); // instantiate the basic RamCore class RamCore ram(i_target, i_thread); // call RamCore put_reg method FAPI_TRY(ram.put_reg(i_type, i_reg_num, i_buffer)); fapi_try_exit: FAPI_INF("End"); return fapi2::current_err; }