summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat/fapiPlatMvpdAccess.C
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2012-11-14 17:44:58 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-11-26 11:47:47 -0600
commit692e2d0be68203b35f802189178a0a8aa86e3198 (patch)
treec328e08ae5e551d5a174d8e155b8259ddb40bd89 /src/usr/hwpf/plat/fapiPlatMvpdAccess.C
parentd50453d4bb2bdd9eb8f346fc6990349aa08cf957 (diff)
downloadtalos-hostboot-692e2d0be68203b35f802189178a0a8aa86e3198.tar.gz
talos-hostboot-692e2d0be68203b35f802189178a0a8aa86e3198.zip
MVPD Accessor Function: #G Rings
Get/Set Repair Ring becomes Get/Set Mvpd Func. Passing record and keyword to generalize to include #G as well as #R The renames look like deleted and new files. Moved more common code to mvpdRingFuncs.C. Get/Set are thin wrappers. Add the #G keyword to fapPlatMvpdAccess and Mvpd DD Add another return code to mvpd_errors Add endian tranformation to fapi and fapi platform. Cronus needs this. Mvpd is in big indian. Word access wrapped in maros. Add set ability to set a smaller ring, shift the rest of the rings left set a larger ring, shift the rest of the rings right if it fits append a ring that was not there before, if it fits Much of the test case is #if'ed out pending mvpd dd write RTC 39177 I'm still working on adding #G and #R rings to procdata.dat which will cover part of RTC 51716. I run the complete tests in unit test. Change-Id: I5b04cd0fcff3046b8d0b7c8a4caf51da258187ee RTC: 52849 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2344 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/usr/hwpf/plat/fapiPlatMvpdAccess.C')
-rw-r--r--src/usr/hwpf/plat/fapiPlatMvpdAccess.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatMvpdAccess.C b/src/usr/hwpf/plat/fapiPlatMvpdAccess.C
index 977a9a7cc..e7faf46ef 100644
--- a/src/usr/hwpf/plat/fapiPlatMvpdAccess.C
+++ b/src/usr/hwpf/plat/fapiPlatMvpdAccess.C
@@ -128,7 +128,7 @@ fapi::ReturnCode MvpdKeywordXlate(const fapi::MvpdKeyword i_fapiKeyword,
// Create a lookup table for converting a FAPI MVPD keyword enumerator to a
// Hostboot MVPD keyword enumerator. This is a simple array and relies on
// the FAPI record enumerators starting at zero and incrementing.
- const uint8_t NUM_MVPD_KEYWORDS = 0x1f;
+ const uint8_t NUM_MVPD_KEYWORDS = 0x20;
static const MVPD::mvpdKeyword
mvpdFapiKeywordToHbKeyword[NUM_MVPD_KEYWORDS] =
{
@@ -163,6 +163,7 @@ fapi::ReturnCode MvpdKeywordXlate(const fapi::MvpdKeyword i_fapiKeyword,
MVPD::OC,
MVPD::FO,
MVPD::pdI,
+ MVPD::pdG,
};
fapi::ReturnCode l_rc;
OpenPOWER on IntegriCloud