summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2014-11-14 12:40:26 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-01-23 08:12:16 -0600
commitf51150123d9a0fe86c63d9681dc819cb97db7c1d (patch)
tree511031d637684db8191da8fe16f4ed66981f22fe /src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C
parent3e6cdd074bc5a55cda9e33d35826a273867dcfcf (diff)
downloadblackbird-hostboot-f51150123d9a0fe86c63d9681dc819cb97db7c1d.tar.gz
blackbird-hostboot-f51150123d9a0fe86c63d9681dc819cb97db7c1d.zip
Fix support for multiple VPD versions in mbvpd accessors
The current Term Data and Phase Rotator hwp accessors address version specific quirks in vpd layout by code. The current Term Data and Phase Rotator accessors will be replaced with a table driven approach that will take advantage of the majority of the layout being common between all versions and provide a table driven approach to exceptions. Change-Id: I132b7bf6d066e6c4ccad4d6acae290cc8e8b85e5 RTC: 117485 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14507 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Elizabeth Liner <eliner@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C')
-rw-r--r--src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C b/src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C
index d36a25730..b5b4b95ad 100644
--- a/src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C
+++ b/src/usr/hwpf/hwp/mvpd_accessors/getMBvpdDram2NModeEnabled.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2013,2014 */
+/* Contributors Listed Below - COPYRIGHT 2013,2015 */
+/* [+] 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. */
@@ -20,7 +22,7 @@
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
-// $Id: getMBvpdDram2NModeEnabled.C,v 1.3 2014/02/12 22:11:39 mjjones Exp $
+// $Id: getMBvpdDram2NModeEnabled.C,v 1.4 2014/12/11 13:35:35 whs Exp $
/**
* @file getMBvpdDram2NModeEnabled.C
*
@@ -35,7 +37,7 @@
#include <fapi.H>
#include <fapiUtil.H>
#include <getMBvpdDram2NModeEnabled.H>
-#include <getMBvpdPhaseRotatorData.H>
+#include <getMBvpdAttr.H>
extern "C"
{
@@ -53,10 +55,11 @@ fapi::ReturnCode getMBvpdDram2NModeEnabled(
do {
// Retrieve the Dram 2N Mode from the MR keyword
FAPI_EXEC_HWP(l_fapirc,
- getMBvpdPhaseRotatorData,
+ getMBvpdAttr,
i_mbaTarget,
- fapi::PHASE_ROT_DRAM_2N_MODE,
- l_dram2NMode);
+ fapi::ATTR_VPD_DRAM_2N_MODE_ENABLED,
+ &l_dram2NMode,
+ sizeof(l_dram2NMode));
if (l_fapirc)
{
FAPI_ERR("getMBvpdDram2NModeEnabled: Read of VZ keyword failed");
OpenPOWER on IntegriCloud