diff options
author | Marty Gloff <mgloff@us.ibm.com> | 2016-05-19 09:30:00 -0500 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-07-18 15:32:26 -0500 |
commit | 1b968d7a2f1860e1704c77d7bf126486c46dd11f (patch) | |
tree | 61404e412c0a5c4285be6a9102f74a849190f15c /src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C | |
parent | 302ba45da68d13348596149b26c4934bc31171c7 (diff) | |
download | talos-hostboot-1b968d7a2f1860e1704c77d7bf126486c46dd11f.tar.gz talos-hostboot-1b968d7a2f1860e1704c77d7bf126486c46dd11f.zip |
Platform support for FAPI2 winkle/stop ring accessors
Add getMvpdRing function and supporting utility functions by porting P8
code and replacing FAPI interfaces with FAPI2 interfaces.
Change-Id: Ied4895f560177a8c68e57ac47db9d9769a04dbdd
RTC:142622
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24800
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26925
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C b/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C new file mode 100644 index 000000000..5ac93ec89 --- /dev/null +++ b/src/import/chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C @@ -0,0 +1,73 @@ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: chips/p9/procedures/hwp/accessors/p9_get_mvpd_ring.C $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* EKB Project */ +/* */ +/* COPYRIGHT 2012,2016 */ +/* [+] International Business Machines Corp. */ +/* */ +/* */ +/* 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. */ +/* */ +/* IBM_PROLOG_END_TAG */ +// $Id: p9_get_mvpd_ring.C,v 1.1 2012/07/19 22:00:40 mjjones Exp $ +/** + * @file p9_get_mvpd_ring.C + * + * @brief fetch repair rings from MVPD records + * + */ + +#include <stdint.h> + +// fapi2 support +#include <fapi2.H> + +#include <p9_get_mvpd_ring.H> +#include <p9_mvpd_ring_funcs.H> + +extern "C" +{ + using namespace fapi2; + +// getMvpdRing: Wrapper to call common function mvpdRingFunc + fapi2::ReturnCode getMvpdRing( fapi2::MvpdRecord i_record, + fapi2::MvpdKeyword i_keyword, + const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP> + & i_fapiTarget, + const uint8_t i_chipletId, + const uint8_t i_ringId, + uint8_t* i_pRingBuf, + uint32_t& io_rRingBufsize) + { + fapi2::ReturnCode l_fapirc; + + FAPI_DBG("getMvpdRing: entry ringId=0x%x, chipletId=0x%x, size=0x%x ", + i_ringId, + i_chipletId, + io_rRingBufsize ); + + // common get and set processing + l_fapirc = mvpdRingFunc(MVPD_RING_GET, + i_record, + i_keyword, + i_fapiTarget, + i_chipletId, + i_ringId, + i_pRingBuf, + io_rRingBufsize); + + + FAPI_DBG("getMvpdRing: exit rc=0x%x", + static_cast<uint32_t>(l_fapirc) ); + + return l_fapirc; + } + +} // extern "C" |