diff options
author | Brian Silver <bsilver@us.ibm.com> | 2016-07-14 06:25:55 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-08-04 11:48:12 -0400 |
commit | 08948598a168b015d407480e45ef2aeb16a635fd (patch) | |
tree | a3cc5a79d6e58059f6e5815edf7d8c4d7db56a4b /src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H | |
parent | dd5220ae4014d4a1266c8cabbe495ba9d211d431 (diff) | |
download | talos-hostboot-08948598a168b015d407480e45ef2aeb16a635fd.tar.gz talos-hostboot-08948598a168b015d407480e45ef2aeb16a635fd.zip |
Add fake_vpd support
Fix vpd generation script to check freq errors
Change-Id: I106e30090fb0cd6d4fcaa5c3e006a629ac6906d3
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27082
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27103
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H b/src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H index d97f9e51b..45894b737 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/utils/fake_vpd.H @@ -16,3 +16,51 @@ /* deposited with the U.S. Copyright Office. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file fake_vpd.H +/// @brief A tool to return fake (fixed) system VPD for testing, development +/// +// *HWP HWP Owner: Brian Silver <bsilver@us.ibm.com> +// *HWP HWP Backup: Andre Marin <aamarin@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 2 +// *HWP Consumed by: HB:FSP +#ifndef DOXYGEN + +#ifndef _MSS_FAKE_SPD_H_ +#define _MSS_FAKE_SPD_H_ + +#include <fapi2.H> +#include <vpd_access.H> + +namespace mss +{ + +/// +/// @brief Return a blob of memory VPD data associated with the input target +/// @param[in] i_target a valid fapi2 target +/// @param[in] io_vpd_info fapi2::VPDInfo class that specifies which piece of data to return +/// @param[out] o_blob the blob of raw data from the vpd +/// @return FAPI2_RC_SUCCESS if there's no problem +/// @note passing nullptr for o_blob will return the size of the keyword +/// +/// Example: +/// fapi2::VPDInfo<fapi2::TARGET_TYPE_MCS> vpdInfo(MR_keyword); +/// vpdInfo.iv_freq = 2667; +/// +/// uint8_t * blob = NULL; +/// +/// FAPI_TRY(getVPD( mcs, vpdInfo, blob )); +/// blob = static_cast<uint8_t *>(malloc(vpdInfo.iv_size)); +/// FAPI_TRY(getVPD( mcs, vpdInfo, blob )); +/// blob now contains the VPD data for the MCS. +/// +fapi2::ReturnCode getVPD(const fapi2::Target<fapi2::TARGET_TYPE_MCS>& i_target, + fapi2::VPDInfo<fapi2::TARGET_TYPE_MCS>& io_vpd_info, + uint8_t* o_blob); + +} // ns mss + +#endif +#endif |