summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/test
diff options
context:
space:
mode:
authorSachin Gupta <sgupta2m@in.ibm.com>2013-12-18 15:58:02 +0530
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-01-24 22:28:44 -0600
commit8dbc8970d6c0cbab9dfe64f48fcb0fca2b0cfe2b (patch)
tree813dc4f5fe1caa05e4ac5808b50828f5223c2ee1 /src/usr/diag/prdf/test
parent517e9753d105918a67c04754dae90d2d8e546db1 (diff)
downloadblackbird-hostboot-8dbc8970d6c0cbab9dfe64f48fcb0fca2b0cfe2b.tar.gz
blackbird-hostboot-8dbc8970d6c0cbab9dfe64f48fcb0fca2b0cfe2b.zip
PRD: Handling scom failure in case of channel CS on HB
Change-Id: Ie8fd8e702b65cc7c7aacc0d176e790b59b008318 RTC: 44889 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7788 Tested-by: Jenkins Server Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8335
Diffstat (limited to 'src/usr/diag/prdf/test')
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimHomRegisterAccess.C8
-rwxr-xr-xsrc/usr/diag/prdf/test/prdfsimHomRegisterAccess.H6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.C b/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.C
index 0c692740a..2b6b2484e 100755
--- a/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.C
+++ b/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* COPYRIGHT International Business Machines Corp. 2012,2014 */
/* */
/* p1 */
/* */
@@ -38,13 +38,13 @@ SimScomAccessor::~SimScomAccessor()
}
-uint32_t SimScomAccessor::Access(TARGETING::TargetHandle_t i_target,
+errlHndl_t SimScomAccessor::Access(TARGETING::TargetHandle_t i_target,
BIT_STRING_CLASS & bs,
uint64_t registerId,
MopRegisterAccess::Operation operation) const
{
PRDF_DENTER("SimScomAccessor::Access()");
- uint32_t rc = SUCCESS;
+ errlHndl_t errlH = NULL;
ScrDB::SimOp l_op = ScrDB::MAX_OP;
do
@@ -65,7 +65,7 @@ uint32_t SimScomAccessor::Access(TARGETING::TargetHandle_t i_target,
PRDF_DEXIT("SimScomAccessor::Access()");
- return rc;
+ return errlH;
}
} // End namespace PRDF
diff --git a/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.H b/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.H
index 87f3176fa..e2407730d 100755
--- a/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.H
+++ b/src/usr/diag/prdf/test/prdfsimHomRegisterAccess.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* COPYRIGHT International Business Machines Corp. 2012,2014 */
/* */
/* p1 */
/* */
@@ -63,12 +63,12 @@ class SimScomAccessor : public ScomAccessor
@param BIT_STRING_CLASS - holds data read or to write
@param register address
@param [READ|WRITE]
- @returns [SUCCESS|FAIL]
+ @returns NULL if success, valid error handle otherwise
@pre bs.Length() must be size of register data to read/write
@post For read operation, bs is modified to reflect hardware register state
@note
*/
- virtual uint32_t Access(TARGETING::TargetHandle_t i_target,
+ virtual errlHndl_t Access(TARGETING::TargetHandle_t i_target,
BIT_STRING_CLASS & bs,
uint64_t registerId,
MopRegisterAccess::Operation operation) const;
OpenPOWER on IntegriCloud