diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2016-09-30 13:17:50 -0500 |
---|---|---|
committer | Zane C. Shelley <zshelle@us.ibm.com> | 2016-10-12 09:20:41 -0400 |
commit | 0b7c4b006db5fc7333a83ea927b0dc0004a97167 (patch) | |
tree | c69c38d7a1a587c78308762cc54b6a3633979396 /src/usr/diag | |
parent | 66555fc888741e710ffab19e8f0a7c2b2341d0bf (diff) | |
download | talos-hostboot-0b7c4b006db5fc7333a83ea927b0dc0004a97167.tar.gz talos-hostboot-0b7c4b006db5fc7333a83ea927b0dc0004a97167.zip |
PRD: add dummy classes for TPS
Change-Id: I00bde014f687aee25a744fec7cb16002acdc6a5d
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30563
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30989
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag')
-rw-r--r-- | src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.C | 77 | ||||
-rw-r--r-- | src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.H | 75 | ||||
-rw-r--r-- | src/usr/diag/prdf/plat/mem/prdfMemTps_rt.C | 77 | ||||
-rw-r--r-- | src/usr/diag/prdf/plat/mem/prdfMemTps_rt.H | 75 | ||||
-rw-r--r-- | src/usr/diag/prdf/plat/mem/prdf_plat_mem_hb_only.mk | 2 |
5 files changed, 306 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.C b/src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.C new file mode 100644 index 000000000..bd1c34a58 --- /dev/null +++ b/src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.C @@ -0,0 +1,77 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.C $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] 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 prdfMemTps_ipl.C */ + +// Platform includes +#include <prdfMemTps_ipl.H> + +using namespace TARGETING; + +namespace PRDF +{ + +//------------------------------------------------------------------------------ + +// TODO: RTC 157608 Actual implementation of this procedure will be done later. +uint32_t TpsEvent<TYPE_MCA>::nextStep( STEP_CODE_DATA_STRUCT & io_sc, + bool & o_done ) +{ + #define PRDF_FUNC "[TpsEvent<TYPE_MCA>::nextStep] " + + uint32_t o_rc = SUCCESS; + + o_done = true; + + PRDF_ERR( PRDF_FUNC "function not implemented yet" ); + + return o_rc; + + #undef PRDF_FUNC +} + +//------------------------------------------------------------------------------ + +// TODO: RTC 157888 Actual implementation of this procedure will be done later. +uint32_t TpsEvent<TYPE_MBA>::nextStep( STEP_CODE_DATA_STRUCT & io_sc, + bool & o_done ) +{ + #define PRDF_FUNC "[TpsEvent<TYPE_MBA>::nextStep] " + + uint32_t o_rc = SUCCESS; + + o_done = true; + + PRDF_ERR( PRDF_FUNC "function not implemented yet" ); + + return o_rc; + + #undef PRDF_FUNC +} + +//------------------------------------------------------------------------------ + +} // end namespace PRDF + diff --git a/src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.H b/src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.H new file mode 100644 index 000000000..f3984f314 --- /dev/null +++ b/src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.H @@ -0,0 +1,75 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/prdf/plat/mem/prdfMemTps_ipl.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] 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 prdfMemTps_ipl.H */ + +#ifndef __prdfMemTps_ipl_H +#define __prdfMemTps_ipl_H + +// Platform includes +#include <prdfMemTdQueue.H> + +namespace PRDF +{ + +// Only implement specializations of TpsEvent. +template<TARGETING::TYPE T> class TpsEvent; + +// TODO: RTC 157889 Actual implementation of this procedure will be done later. +/** @brief Two-Phase Scrub procedure for MCA (IPL only). */ +template <> +class TpsEvent<TARGETING::TYPE_MCA> : public TdEntry +{ + public: // functions + + /** @brief Constructor */ + TpsEvent<TARGETING::TYPE_MCA>( ExtensibleChip * i_chip, MemRank i_rank ) : + TdEntry(TPS_EVENT, i_chip, i_rank) + {} + + uint32_t nextStep( STEP_CODE_DATA_STRUCT & io_sc, bool & o_done ); + +}; + +// TODO: RTC 157888 Actual implementation of this procedure will be done later. +/** @brief Two-Phase Scrub procedure for MBA (IPL only). */ +template <> +class TpsEvent<TARGETING::TYPE_MBA> : public TdEntry +{ + public: // functions + + /** @brief Constructor */ + TpsEvent<TARGETING::TYPE_MBA>( ExtensibleChip * i_chip, MemRank i_rank ) : + TdEntry(TPS_EVENT, i_chip, i_rank) + {} + + uint32_t nextStep( STEP_CODE_DATA_STRUCT & io_sc, bool & o_done ); + +}; + +} // end namespace PRDF + +#endif // __prdfMemTps_ipl_H + diff --git a/src/usr/diag/prdf/plat/mem/prdfMemTps_rt.C b/src/usr/diag/prdf/plat/mem/prdfMemTps_rt.C new file mode 100644 index 000000000..00c6147ba --- /dev/null +++ b/src/usr/diag/prdf/plat/mem/prdfMemTps_rt.C @@ -0,0 +1,77 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/prdf/plat/mem/prdfMemTps_rt.C $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] 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 prdfMemTps_rt.C */ + +// Platform includes +#include <prdfMemTps_rt.H> + +using namespace TARGETING; + +namespace PRDF +{ + +//------------------------------------------------------------------------------ + +// TODO: RTC 136126 Actual implementation of this procedure will be done later. +uint32_t TpsEvent<TYPE_MCA>::nextStep( STEP_CODE_DATA_STRUCT & io_sc, + bool & o_done ) +{ + #define PRDF_FUNC "[TpsEvent<TYPE_MCA>::nextStep] " + + uint32_t o_rc = SUCCESS; + + o_done = true; + + PRDF_ERR( PRDF_FUNC "function not implemented yet" ); + + return o_rc; + + #undef PRDF_FUNC +} + +//------------------------------------------------------------------------------ + +// TODO: RTC 157888 Actual implementation of this procedure will be done later. +uint32_t TpsEvent<TYPE_MBA>::nextStep( STEP_CODE_DATA_STRUCT & io_sc, + bool & o_done ) +{ + #define PRDF_FUNC "[TpsEvent<TYPE_MBA>::nextStep] " + + uint32_t o_rc = SUCCESS; + + o_done = true; + + PRDF_ERR( PRDF_FUNC "function not implemented yet" ); + + return o_rc; + + #undef PRDF_FUNC +} + +//------------------------------------------------------------------------------ + +} // end namespace PRDF + diff --git a/src/usr/diag/prdf/plat/mem/prdfMemTps_rt.H b/src/usr/diag/prdf/plat/mem/prdfMemTps_rt.H new file mode 100644 index 000000000..ee5a23e3f --- /dev/null +++ b/src/usr/diag/prdf/plat/mem/prdfMemTps_rt.H @@ -0,0 +1,75 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/diag/prdf/plat/mem/prdfMemTps_rt.H $ */ +/* */ +/* OpenPOWER HostBoot Project */ +/* */ +/* Contributors Listed Below - COPYRIGHT 2016 */ +/* [+] 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 prdfMemTps_rt.H */ + +#ifndef __prdfMemTps_rt_H +#define __prdfMemTps_rt_H + +// Platform includes +#include <prdfMemTdQueue.H> + +namespace PRDF +{ + +// Only implement specializations of TpsEvent. +template<TARGETING::TYPE T> class TpsEvent; + +// TODO: RTC 136126 Actual implementation of this procedure will be done later. +/** @brief Two-Phase Scrub procedure for MCA (RT only). */ +template <> +class TpsEvent<TARGETING::TYPE_MCA> : public TdEntry +{ + public: // functions + + /** @brief Constructor */ + TpsEvent<TARGETING::TYPE_MCA>( ExtensibleChip * i_chip, MemRank i_rank ) : + TdEntry(TPS_EVENT, i_chip, i_rank) + {} + + uint32_t nextStep( STEP_CODE_DATA_STRUCT & io_sc, bool & o_done ); + +}; + +// TODO: RTC 157888 Actual implementation of this procedure will be done later. +/** @brief Two-Phase Scrub procedure for MBA (RT only). */ +template <> +class TpsEvent<TARGETING::TYPE_MBA> : public TdEntry +{ + public: // functions + + /** @brief Constructor */ + TpsEvent<TARGETING::TYPE_MBA>( ExtensibleChip * i_chip, MemRank i_rank ) : + TdEntry(TPS_EVENT, i_chip, i_rank) + {} + + uint32_t nextStep( STEP_CODE_DATA_STRUCT & io_sc, bool & o_done ); + +}; + +} // end namespace PRDF + +#endif // __prdfMemTps_rt_H + diff --git a/src/usr/diag/prdf/plat/mem/prdf_plat_mem_hb_only.mk b/src/usr/diag/prdf/plat/mem/prdf_plat_mem_hb_only.mk index 250ab0286..596f3a8f1 100644 --- a/src/usr/diag/prdf/plat/mem/prdf_plat_mem_hb_only.mk +++ b/src/usr/diag/prdf/plat/mem/prdf_plat_mem_hb_only.mk @@ -49,6 +49,7 @@ ifneq (${HOSTBOOT_RUNTIME},1) # plat/mem/ (non-rule plugin related) prd_obj += prdfMemScrubUtils.o prd_obj += prdfMemTdCtlr_ipl.o +prd_obj += prdfMemTps_ipl.o prd_obj += prdfMemVcm_ipl.o prd_obj += prdfP9McbistDomain.o @@ -62,6 +63,7 @@ ifeq (${HOSTBOOT_RUNTIME},1) # plat/mem/ (non-rule plugin related) prd_obj += prdfMemTdCtlr_rt.o +prd_obj += prdfMemTps_rt.o prd_obj += prdfMemVcm_rt.o endif |