summaryrefslogtreecommitdiffstats
path: root/src/usr/htmgt/htmgt_occ.C
diff options
context:
space:
mode:
authorAndres Lugo-Reyes <aalugore@us.ibm.com>2016-10-24 18:02:08 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-12-20 00:22:27 -0500
commitbdf8d5b8b6ab68f1882d18b1fad721f465b8aa74 (patch)
treeb8b5eb683ec2c66ae89443516cc57a2d5a5fb8d5 /src/usr/htmgt/htmgt_occ.C
parentc4692b79f73b6867c76d22e608c4a831d69bdb03 (diff)
downloadtalos-hostboot-bdf8d5b8b6ab68f1882d18b1fad721f465b8aa74.tar.gz
talos-hostboot-bdf8d5b8b6ab68f1882d18b1fad721f465b8aa74.zip
P9 Updates for occ communication code
This commit contains updates for p9 OCC communication code to no longer use the deprecated ecmdDataBufferBase class. Change-Id: I96b6be564a6edee1f66099583f030d3b519acb60 Depends-on: I6182163e569ac97f06e3ddfbb69deab90e849de3 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31876 Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Christopher J. Cain <cjcain@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/htmgt_occ.C')
-rw-r--r--src/usr/htmgt/htmgt_occ.C11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/usr/htmgt/htmgt_occ.C b/src/usr/htmgt/htmgt_occ.C
index 173090aab..f15968cad 100644
--- a/src/usr/htmgt/htmgt_occ.C
+++ b/src/usr/htmgt/htmgt_occ.C
@@ -37,11 +37,11 @@
#include <targeting/common/targetservice.H>
#include <console/consoleif.H>
#include <sys/time.h>
-#include <ecmdDataBufferBase.H>
#include <occ/occAccess.H>
#include <occ/occ.H>
#include <occ/occ_common.H>
#include <errl/errludlogregister.H>
+#include <buffer.H>
namespace HTMGT
{
@@ -932,14 +932,17 @@ namespace HTMGT
// Read SRAM response buffer to check for OCC checkpoint
errlHndl_t l_err = NULL;
const uint16_t l_length = 8;
- ecmdDataBufferBase l_buffer(l_length*8); // convert to bits
+
+ fapi2::buffer<uint64_t> l_buffer;
l_err = HBOCC::readSRAM(occ->getTarget(),
OCC_RSP_SRAM_ADDR,
- l_buffer);
+ l_buffer.pointer(),
+ l_length);
if (NULL == l_err)
{
// Check response status for checkpoint (byte 6-7)
- const uint16_t checkpoint = l_buffer.getHalfWord(3);
+ uint16_t checkpoint = 0;
+ l_buffer.extractToRight<48,16>(checkpoint);
if (checkpoint != lastCheckpoint)
{
TMGT_INF("_waitForOccCheckpoint: OCC%d Checkpoint "
OpenPOWER on IntegriCloud