diff options
author | Mike Jones <mjjones@us.ibm.com> | 2012-07-19 17:05:38 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-07-30 17:15:51 -0500 |
commit | 0dbf0dfdd65a967045976979a33569db73fc0878 (patch) | |
tree | ed2fda18d7ac8213f3d2d660e8fccb645d5ffbfe /src/usr/hwpf/hwp/RepairRingFunc.C | |
parent | 0a7124143589d15b534f7f2384fecc5a5cd0725f (diff) | |
download | talos-hostboot-0dbf0dfdd65a967045976979a33569db73fc0878.tar.gz talos-hostboot-0dbf0dfdd65a967045976979a33569db73fc0878.zip |
HWPF: Update FAPI Module VPD field access function
In a design meeting, it was agreed that the FAPI Module VPD field access
function would be changed to take a record and keyword enumerator, rather than
having a separate function for each MVPD field.
Change-Id: I0072f2010dbb85ca9edd390ebd5b3730826f3ed0
RTC: 43796
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1404
Tested-by: Jenkins Server
Reviewed-by: Van H. Lee <vanlee@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/hwp/RepairRingFunc.C')
-rw-r--r-- | src/usr/hwpf/hwp/RepairRingFunc.C | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/usr/hwpf/hwp/RepairRingFunc.C b/src/usr/hwpf/hwp/RepairRingFunc.C index 2d63f4c60..3b84f19f6 100644 --- a/src/usr/hwpf/hwp/RepairRingFunc.C +++ b/src/usr/hwpf/hwp/RepairRingFunc.C @@ -21,7 +21,7 @@ * * IBM_PROLOG_END_TAG */ - +// $Id: RepairRingFunc.C,v 1.1 2012/07/19 22:00:40 mjjones Exp $ /** * @file RepairRingFunc.C * @@ -99,21 +99,23 @@ fapi::ReturnCode getRepairRing( const fapi::Target &i_fapiTarget, FAPI_DBG( "getRepairRing: get MVPD #R buffer" ); - // call fapiGetMvpdPdr once with a NULL pointer to get the buffer size - // no error should be returned. - l_fapirc = fapiGetMvpdPdr( i_fapiTarget, - NULL, - l_pdRLen ); + // call fapiGetMvpdField once with a NULL pointer to get the buffer + // size no error should be returned. + l_fapirc = fapiGetMvpdField( fapi::MVPD_RECORD_CP00, + fapi::MVPD_KEYWORD_PDR, + i_fapiTarget, + NULL, + l_pdRLen ); if ( l_fapirc ) { - FAPI_ERR("getRepairRing: fapiGetMvpdPdr failed to get buffer size"); + FAPI_ERR("getRepairRing: fapiGetMvpdField failed to get buffer size"); io_rRingBufsize = 0; // break out with fapirc break; } - FAPI_DBG( "getRepairRing: fapiGetMvpdPdr returned l_pdRLen=0x%x", + FAPI_DBG( "getRepairRing: fapiGetMvpdField returned l_pdRLen=0x%x", l_pdRLen ); // allocate buffer for the record @@ -130,12 +132,14 @@ fapi::ReturnCode getRepairRing( const fapi::Target &i_fapiTarget, } // load repair ring from MVPD for this target - l_fapirc = fapiGetMvpdPdr( i_fapiTarget, - l_pdRRecord, - l_pdRLen ); + l_fapirc = fapiGetMvpdField( fapi::MVPD_RECORD_CP00, + fapi::MVPD_KEYWORD_PDR, + i_fapiTarget, + l_pdRRecord, + l_pdRLen ); if ( l_fapirc ) { - FAPI_ERR("getRepairRing: fapiGetMvpdPdr failed"); + FAPI_ERR("getRepairRing: fapiGetMvpdField failed"); io_rRingBufsize = 0; // break out with fapirc |