summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2014-01-20 15:09:17 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-01-23 21:05:59 -0600
commit631a2ca83941e741f6464a553c84a5620b202773 (patch)
tree0842d00710df2bf9aaa70c1c52a6573643c3baf0 /src/usr
parentc51b20fa2a835b36de840dd1b3158b382c98fd5e (diff)
downloadtalos-hostboot-631a2ca83941e741f6464a553c84a5620b202773.tar.gz
talos-hostboot-631a2ca83941e741f6464a553c84a5620b202773.zip
Refresh FAPI files from eKB to get cvs change tags
Change-Id: I7852c503d0f6497f591581d272434b32eb88d285 RTC: 95764 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8163 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Donald E. Dahle <dedahle@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/hwpf/fapi/fapiErrorInfo.C5
-rw-r--r--src/usr/hwpf/fapi/fapiHwAccess.C95
-rwxr-xr-xsrc/usr/hwpf/fapi/fapiParseAttributeInfo.pl3
-rw-r--r--src/usr/hwpf/fapi/fapiReturnCode.C5
-rw-r--r--src/usr/hwpf/fapi/fapiReturnCodeDataRef.C5
-rw-r--r--src/usr/hwpf/fapi/fapiTarget.C5
-rw-r--r--src/usr/hwpf/plat/fapiPlatHwAccess.C29
7 files changed, 90 insertions, 57 deletions
diff --git a/src/usr/hwpf/fapi/fapiErrorInfo.C b/src/usr/hwpf/fapi/fapiErrorInfo.C
index ecac27b76..b72534012 100644
--- a/src/usr/hwpf/fapi/fapiErrorInfo.C
+++ b/src/usr/hwpf/fapi/fapiErrorInfo.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -20,6 +20,9 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: fapiErrorInfo.C,v 1.11 2013/11/11 19:33:45 mjjones Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/hwpf/working/fapi/fapiErrorInfo.C,v $
+
/**
* @file fapiErrorInfo.C
*
diff --git a/src/usr/hwpf/fapi/fapiHwAccess.C b/src/usr/hwpf/fapi/fapiHwAccess.C
index 98fa0802a..8c54e4d8c 100644
--- a/src/usr/hwpf/fapi/fapiHwAccess.C
+++ b/src/usr/hwpf/fapi/fapiHwAccess.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -20,6 +20,9 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: fapiHwAccess.C,v 1.14 2013/10/15 13:13:29 dcrowell Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/hwpf/working/fapi/fapiHwAccess.C,v $
+
/**
* @file fapiHwAccess.C
*
@@ -45,8 +48,11 @@
* Ring funcs
* rjknight 09/20/2012 Update fapiGetSpy to take
* a string as input
- * jknight 04/02/2013 Add fapi put/getSpyImage
+ * F876964 jknight Apr, 02,2013 fapi get/setSpyImage
* support
+ * F873646 srimeesa Mar 10,2013 64Bit SPYID and
+ * ClockDomain ID support
+ * F883863 atendolk 05/06/2013 Update to support MultiScom
*/
#include <fapi.H>
#include <fapiPlatHwAccess.H>
@@ -148,6 +154,43 @@ fapi::ReturnCode fapiPutScomUnderMask(const fapi::Target& i_target,
}
//******************************************************************************
+// fapiMultiScom function
+//******************************************************************************
+#ifdef FAPI_SUPPORT_MULTI_SCOM
+fapi::ReturnCode fapiMultiScom (
+ const fapi::Target& i_target,
+ fapi::MultiScom& io_multiScomObj)
+{
+ FAPI_DBG (ENTER_MRK "fapiMultiScom - i_target: %s, # input ops: %d",
+ i_target.toEcmdString (), io_multiScomObj.iv_ScomList.size ());
+
+ fapi::ReturnCode l_rc;
+
+ // Call the platform specific implemetation
+ l_rc = platMultiScom (i_target, io_multiScomObj);
+
+ if (!l_rc.ok ())
+ {
+ uint32_t l_retCode = l_rc;
+
+ FAPI_ERR ("fapiMultiScom Failed with RC: 0x%.8X! i_target: %s, "
+ "# input ops: %d, # ops complete: %d", l_retCode,
+ i_target.toEcmdString (),
+ io_multiScomObj.iv_ScomList.size (),
+ io_multiScomObj.iv_NumOfCompletes);
+ }
+
+ FAPI_DBG (EXIT_MRK "fapiMultiScom - i_target: %s, # input ops: %d, "
+ "#ops complete: %d", i_target.toEcmdString (),
+ io_multiScomObj.iv_ScomList.size (),
+ io_multiScomObj.iv_NumOfCompletes);
+
+ return l_rc;
+}
+#endif // FAPI_SUPPORT_MULTI_SCOM
+
+
+//******************************************************************************
// fapiGetCfamRegister function
//******************************************************************************
fapi::ReturnCode fapiGetCfamRegister(const fapi::Target& i_target,
@@ -262,7 +305,7 @@ fapi::ReturnCode fapiModifyCfamRegister(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
fapi::ReturnCode fapiGetRing(const fapi::Target& i_target,
- const uint32_t i_address,
+ const scanRingId_t i_address,
ecmdDataBufferBase & o_data,
const uint32_t i_ringMode)
{
@@ -274,13 +317,13 @@ fapi::ReturnCode fapiGetRing(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("fapiGetRing failed - Target %s, Addr 0x%.8X",
+ FAPI_ERR("fapiGetRing failed - Target %s, Addr 0x%.16llX",
i_target.toEcmdString(), i_address);
}
if( l_traceit )
{
- FAPI_SCAN( "TRACE : GETRING : %s : %.8X %.16llX",
+ FAPI_SCAN( "TRACE : GETRING : %s : %.16llX %.16llX",
i_target.toEcmdString(),
i_address,
o_data.getDoubleWord( 0 ) );
@@ -292,7 +335,7 @@ fapi::ReturnCode fapiGetRing(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
fapi::ReturnCode fapiPutRing(const fapi::Target& i_target,
- const uint32_t i_address,
+ const scanRingId_t i_address,
ecmdDataBufferBase & i_data,
const uint32_t i_ringMode)
{
@@ -304,13 +347,13 @@ fapi::ReturnCode fapiPutRing(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("fapiPutRing failed - Target %s, Addr 0x%.8X",
- i_target.toEcmdString(), i_address);
+ FAPI_ERR("fapiPutRing failed - Target %s, Addr 0x%.16llX",
+ i_target.toEcmdString(), i_address);
}
if( l_traceit )
{
- FAPI_SCAN( "TRACE : PUTRING : %s : %.8X %.16llX",
+ FAPI_SCAN( "TRACE : PUTRING : %s : %.16llX %.16llX",
i_target.toEcmdString(),
i_address,
i_data.getDoubleWord(0));
@@ -322,7 +365,7 @@ fapi::ReturnCode fapiPutRing(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
fapi::ReturnCode fapiModifyRing(const fapi::Target& i_target,
- const uint32_t i_address,
+ const scanRingId_t i_address,
ecmdDataBufferBase & i_data,
const fapi::ChipOpModifyMode i_modifyMode,
const uint32_t i_ringMode)
@@ -335,7 +378,7 @@ fapi::ReturnCode fapiModifyRing(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("platModifyRing failed - Target %s, Addr 0x%.8X,"
+ FAPI_ERR("platModifyRing failed - Target %s, Addr 0x%.16llX,"
"ModifyMode 0x%.8X", i_target.toEcmdString(),
i_address, i_modifyMode);
}
@@ -362,7 +405,7 @@ fapi::ReturnCode fapiModifyRing(const fapi::Target& i_target,
l_pMode = "?";
}
- FAPI_SCAN( "TRACE : MODRING : %s : %.8X %.16llX %s",
+ FAPI_SCAN( "TRACE : MODRING : %s : %.16llX %.16llX %s",
i_target.toEcmdString(),
i_address,
i_data.getDoubleWord(0),
@@ -381,10 +424,9 @@ fapi::ReturnCode fapiModifyRing(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
#ifdef FAPI_SUPPORT_SPY_AS_ENUM
fapi::ReturnCode _fapiGetSpy(const fapi::Target& i_target,
- const uint32_t i_spyId,
+ const spyId_t i_spyId,
ecmdDataBufferBase & o_data)
{
-
fapi::ReturnCode l_rc;
bool l_traceit = platIsScanTraceEnabled();
@@ -393,13 +435,13 @@ fapi::ReturnCode _fapiGetSpy(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("fapiGetSpy failed - Target %s, SpyId 0x%.8X",
+ FAPI_ERR("fapiGetSpy failed - Target %s, SpyId 0x%.16llX",
i_target.toEcmdString(), i_spyId);
}
if( l_traceit )
{
- FAPI_SCAN( "TRACE : GETSPY : %s : %.8X %.16llX",
+ FAPI_SCAN( "TRACE : GETSPY : %s : %.16llX %.16llX",
i_target.toEcmdString(),
i_spyId,
o_data.getDoubleWord(0));
@@ -442,7 +484,7 @@ fapi::ReturnCode _fapiGetSpy(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
fapi::ReturnCode _fapiPutSpy(const fapi::Target& i_target,
- const uint32_t i_spyId,
+ const spyId_t i_spyId,
ecmdDataBufferBase & i_data)
{
fapi::ReturnCode l_rc;
@@ -453,13 +495,13 @@ fapi::ReturnCode _fapiPutSpy(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("fapiPutSpy failed - Target %s, SpyId 0x%.8X",
- i_target.toEcmdString(), i_spyId);
+ FAPI_ERR("fapiPutSpy failed - Target %s, SpyId 0x%.16llX",
+ i_target.toEcmdString(), i_spyId);
}
if( l_traceit )
{
- FAPI_SCAN( "TRACE : PUTSPY : %s : %.8X %.16llX",
+ FAPI_SCAN( "TRACE : PUTSPY : %s : %.16llX %.16llX",
i_target.toEcmdString(),
i_spyId,
i_data.getDoubleWord(0));
@@ -567,7 +609,7 @@ fapi::ReturnCode _fapiPutSpyImage(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
fapi::ReturnCode _fapiGetSpyImage(const fapi::Target& i_target,
- const uint32_t i_spyId,
+ const spyId_t i_spyId,
ecmdDataBufferBase & o_data,
const ecmdDataBufferBase & i_imageData)
{
@@ -580,13 +622,13 @@ fapi::ReturnCode _fapiGetSpyImage(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("fapiGetSpyImage failed - Target %s, SpyId 0x%.8X",
+ FAPI_ERR("fapiGetSpyImage failed - Target %s, SpyId 0x%.16llX",
i_target.toEcmdString(), i_spyId);
}
if( l_traceit )
{
- FAPI_SCAN( "TRACE : GETSPYIMG : %s : %.8X %.16llX",
+ FAPI_SCAN( "TRACE : GETSPYIMG : %s : %.16llX %.16llX",
i_target.toEcmdString(),
i_spyId,
o_data.getDoubleWord(0));
@@ -599,7 +641,7 @@ fapi::ReturnCode _fapiGetSpyImage(const fapi::Target& i_target,
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
fapi::ReturnCode _fapiPutSpyImage(const fapi::Target& i_target,
- const uint32_t i_spyId,
+ const spyId_t i_spyId,
const ecmdDataBufferBase & i_data,
ecmdDataBufferBase & io_imageData)
{
@@ -611,13 +653,13 @@ fapi::ReturnCode _fapiPutSpyImage(const fapi::Target& i_target,
if (l_rc)
{
- FAPI_ERR("fapiPutSpyImage failed - Target %s, SpyId 0x%.8X",
+ FAPI_ERR("fapiPutSpyImage failed - Target %s, SpyId 0x%.16llX",
i_target.toEcmdString(), i_spyId);
}
if( l_traceit )
{
- FAPI_SCAN( "TRACE : PUTSPYIMG : %s : %.8X %.16llX",
+ FAPI_SCAN( "TRACE : PUTSPYIMG : %s : %.16llX %.16llX",
i_target.toEcmdString(),
i_spyId,
i_data.getDoubleWord(0));
@@ -628,4 +670,3 @@ fapi::ReturnCode _fapiPutSpyImage(const fapi::Target& i_target,
}
#endif
} // extern "C"
-
diff --git a/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl b/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl
index e9443e80f..1cb5cce0e 100755
--- a/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl
+++ b/src/usr/hwpf/fapi/fapiParseAttributeInfo.pl
@@ -6,7 +6,7 @@
#
# IBM CONFIDENTIAL
#
-# COPYRIGHT International Business Machines Corp. 2011,2013
+# COPYRIGHT International Business Machines Corp. 2011,2014
#
# p1
#
@@ -21,6 +21,7 @@
# Origin: 30
#
# IBM_PROLOG_END_TAG
+# $Id: fapiParseAttributeInfo.pl,v 1.21 2014/01/20 20:35:30 mjjones Exp $
#
# Purpose: This perl script will parse HWP Attribute XML files
# and add attribute information to a file called fapiAttributeIds.H
diff --git a/src/usr/hwpf/fapi/fapiReturnCode.C b/src/usr/hwpf/fapi/fapiReturnCode.C
index 6feb1d4e6..0b5312379 100644
--- a/src/usr/hwpf/fapi/fapiReturnCode.C
+++ b/src/usr/hwpf/fapi/fapiReturnCode.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -20,6 +20,9 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: fapiReturnCode.C,v 1.18 2013/11/11 19:33:34 mjjones Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/hwpf/working/fapi/fapiReturnCode.C,v $
+
/**
* @file fapiReturnCode.C
*
diff --git a/src/usr/hwpf/fapi/fapiReturnCodeDataRef.C b/src/usr/hwpf/fapi/fapiReturnCodeDataRef.C
index 8272afbd7..e367d060c 100644
--- a/src/usr/hwpf/fapi/fapiReturnCodeDataRef.C
+++ b/src/usr/hwpf/fapi/fapiReturnCodeDataRef.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -20,6 +20,9 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: fapiReturnCodeDataRef.C,v 1.8 2013/10/15 13:13:37 dcrowell Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/hwpf/working/fapi/fapiReturnCodeDataRef.C,v $
+
/**
* @file fapiReturnCodeDataRef.C
*
diff --git a/src/usr/hwpf/fapi/fapiTarget.C b/src/usr/hwpf/fapi/fapiTarget.C
index 0608ee2ac..057267477 100644
--- a/src/usr/hwpf/fapi/fapiTarget.C
+++ b/src/usr/hwpf/fapi/fapiTarget.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -20,6 +20,9 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: fapiTarget.C,v 1.9 2013/10/15 13:13:42 dcrowell Exp $
+// $Source: /afs/awd/projects/eclipz/KnowledgeBase/.cvsroot/eclipz/hwpf/working/fapi/fapiTarget.C,v $
+
/**
* @file fapiTarget.C
*
diff --git a/src/usr/hwpf/plat/fapiPlatHwAccess.C b/src/usr/hwpf/plat/fapiPlatHwAccess.C
index 7adb5068a..eac1049a2 100644
--- a/src/usr/hwpf/plat/fapiPlatHwAccess.C
+++ b/src/usr/hwpf/plat/fapiPlatHwAccess.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2013 */
+/* COPYRIGHT International Business Machines Corp. 2011,2014 */
/* */
/* p1 */
/* */
@@ -20,27 +20,6 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
-// This is an automatically generated prolog.
-//
-// $Source: src/usr/hwpf/plat/fapiPlatHwAccess.C $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2011
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END_TAG
/**
* @file fapiPlatHwAccess.C
*
@@ -575,7 +554,7 @@ fapi::ReturnCode platModifyCfamRegister(const fapi::Target& i_target,
// platGetRing function, the platform implementation
//******************************************************************************
fapi::ReturnCode platGetRing(const fapi::Target& i_target,
- const uint32_t i_address,
+ const scanRingId_t i_address,
ecmdDataBufferBase & o_data,
const uint32_t i_ringMode)
{
@@ -609,7 +588,7 @@ fapi::ReturnCode platGetRing(const fapi::Target& i_target,
// platPutRing function
//******************************************************************************
fapi::ReturnCode platPutRing(const fapi::Target& i_target,
- const uint32_t i_address,
+ const scanRingId_t i_address,
ecmdDataBufferBase & i_data,
const uint32_t i_ringMode)
{
@@ -644,7 +623,7 @@ fapi::ReturnCode platPutRing(const fapi::Target& i_target,
// platModifyRing function
//******************************************************************************
fapi::ReturnCode platModifyRing(const fapi::Target& i_target,
- const uint32_t i_address,
+ const scanRingId_t i_address,
ecmdDataBufferBase & i_data,
const fapi::ChipOpModifyMode i_modifyMode,
const uint32_t i_ringMode)
OpenPOWER on IntegriCloud