diff options
author | Mike Jones <mjjones@us.ibm.com> | 2012-02-22 17:09:18 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-02-28 11:26:58 -0600 |
commit | e4c32d91dc6100d9f9bac47855b3f0c675530b1f (patch) | |
tree | cd40b68b135376f8b2d294b7af371405831482bd /src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H | |
parent | fec524004b0f9e15a8f8a9986e0415b4aa0f75b7 (diff) | |
download | talos-hostboot-e4c32d91dc6100d9f9bac47855b3f0c675530b1f.tar.gz talos-hostboot-e4c32d91dc6100d9f9bac47855b3f0c675530b1f.zip |
HWPF Attribute Support. DQ Attribute
Change-Id: I05e6f4f435574e25f65702c875e332e253927ff7
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/686
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H')
-rw-r--r-- | src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H b/src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H new file mode 100644 index 000000000..fc7703ebc --- /dev/null +++ b/src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H @@ -0,0 +1,77 @@ +// IBM_PROLOG_BEGIN_TAG +// This is an automatically generated prolog. +// +// $Source: src/include/usr/hwpf/hwp/dimmBadDqBitmapAccessHwp.H $ +// +// IBM CONFIDENTIAL +// +// COPYRIGHT International Business Machines Corp. 2012 +// +// p1 +// +// Object Code Only (OCO) source materials +// Licensed Internal Code Source Materials +// IBM HostBoot Licensed Internal Code +// +// The source code for this program is not published or other- +// wise divested of its trade secrets, irrespective of what has +// been deposited with the U.S. Copyright Office. +// +// Origin: 30 +// +// IBM_PROLOG_END +/** + * @file dimmBadDqBitmapAccessHwp.H + * + * @brief FW Team HWP that accesses the Bad DQ Bitmap. + */ + +/* + * Change Log ****************************************************************** + * Flag Defect/Feature User Date Description + * ------ -------------- ---------- ----------- ---------------------------- + * mjjones 02/17/2012 Created. + */ + +#ifndef DIMMBADDQBITMAPACCESSHWP_H_ +#define DIMMBADDQBITMAPACCESSHWP_H_ + +#include <fapi.H> +#include <dimmConsts.H> + +typedef fapi::ReturnCode (*dimmBadDqBitmapAccessHwp_FP_t)( + const fapi::Target &, + const uint8_t (&)[DIMM_DQ_MAX_DIMM_RANKS][DIMM_DQ_RANK_BITMAP_SIZE], + const bool); + +extern "C" +{ + +/** + * @brief FW Team HWP that accesses the Bad DQ Bitmap. It accesses the raw data + * from DIMM SPD and does any necessary processing to turn it into a + * bitmap from a Centaur DQ point of view. If the data in SPD is not + * valid then it has never been written and all zeroes are returned (no + * bad DQs). + * + * This HWP should be called by HWP/PLAT code to access the BAD DQ Bitmap + * + * Note that the MSB of each byte corresponds to the lowest DQ. + * if (data[1][0] == 0x80) then rank 1, Centaur DQ0 is bad + * if (data[1][0] == 0x40) then rank 1, Centaur DQ1 is bad + * if (data[1][1] == 0x20) then rank 1, Centaur DQ10 is bad + * + * @param[in] i_dimm Reference to DIMM Target + * @param[io] io_data Reference to bad DQ bitmap data for the DIMM. + * @param[in] i_get True if getting DQ Bitmap data. False if setting data. + * + * @return ReturnCode + */ +fapi::ReturnCode dimmBadDqBitmapAccessHwp( + const fapi::Target & i_dimm, + uint8_t (&io_data)[DIMM_DQ_MAX_DIMM_RANKS][DIMM_DQ_RANK_BITMAP_SIZE], + const bool i_get); + +} + +#endif |