diff options
| author | Bill Schwartz <whs@us.ibm.com> | 2013-10-29 19:16:43 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-11-08 15:21:50 -0600 |
| commit | c811df7983a6dbb0d56b96badb58ed785ddd0b72 (patch) | |
| tree | fc7c1dccec5b4a282be1df4e446e43b1f73fb066 /src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H | |
| parent | 06fdca58e18f8a6dae366a12e03b97c7b28d5742 (diff) | |
| download | blackbird-hostboot-c811df7983a6dbb0d56b96badb58ed785ddd0b72.tar.gz blackbird-hostboot-c811df7983a6dbb0d56b96badb58ed785ddd0b72.zip | |
Centaur VPD Attributes: Version, 2N_Mode_Enabled, and Address Mirroring
ATTR_VPD_VERSION - add attribute and hwp accessor to return Record VINI
Keyword VZ
ATTR_VPD_DRAM_2N_MODE_ENABLED - add attribute and new HWP accessor using
MR hwp accessor to retrieve DRAM_2N_MODE.
ATTR_VPD_DRAM_ADDRESS_MIRRORING - Change from DIMM to MBA target
Change-Id: I05875c5e89966906a928d3c82925e33507962db9
RTC: 89859
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6949
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H')
| -rw-r--r-- | src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H b/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H new file mode 100644 index 000000000..112d34ca2 --- /dev/null +++ b/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H @@ -0,0 +1,59 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.H $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2013 */ +/* */ +/* 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 otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ +// $Id: getMBvpdDram2NModeEnabled.H,v 1.1 2013/10/30 21:02:44 whs Exp $ +/** + * @file getMBvpdDram2NModeEnabled.H + * + * @brief MBVPD Accessor for providing the ATTR_VPD_DRAM_2N_MODE_ENABLED + * attribute + */ + +#ifndef _HWP_GETMBVPDDRAM2NMODEENABLED_ +#define _HWP_GETMBVPDDRAM2NMODEENABLED_ + +#include <fapi.H> + +// function pointer typedef definition for HWP call support +typedef fapi::ReturnCode (*getMBvpdDram2NModeEnabled_FP_t) + (const fapi::Target &, uint8_t &); + +extern "C" +{ +/** + * @brief Get the ATTR_DRAM_2N_MODE_ENABLED FAPI attribute + * + * Return whether Dram 2N Mode is enabled based on the MR keyword + * DRAM_2N_MODE value. The DRAM_2N_Mode values for both ports of the mba + * must be equal, otherwise an error is returned. + * + * @param[in] i_mbaTarget - Reference to mba Target + * @param[out] o_val - ATTR_VPD_DRAM_2N_MODE_ENABLED enumeration value + * + * @return fapi::ReturnCode FAPI_RC_SUCCESS if success, else error code + */ +fapi::ReturnCode getMBvpdDram2NModeEnabled( + const fapi::Target & i_mbaTarget, + uint8_t & o_val); +} + +#endif |

