summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/attn
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2015-12-14 09:30:28 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-02-29 16:29:48 -0500
commitbee7f1cbcd5bf18acc539c9c9b6a14960dadea3d (patch)
tree2b7f1c777e10bc41101d7515e96122b3fd8cd1dc /src/usr/diag/attn
parent1fe31da7eeae17f43b6908f9eccf30d6a8b355dd (diff)
downloadtalos-hostboot-bee7f1cbcd5bf18acc539c9c9b6a14960dadea3d.tar.gz
talos-hostboot-bee7f1cbcd5bf18acc539c9c9b6a14960dadea3d.zip
Update constants and comments for P9 PIR format
Implemented a set of macros and constants that can be used everywhere to translate a PIR into its component parts and pull out individual pieces of data from a complete PIR. Also added and updated the references to the old ATTR_FABRIC_NODE_ID with ATTR_FABRIC_GROUP_ID. Change-Id: If9735f53940e5849a648729e4bf8ca0cfbb09f6e RTC: 88055 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/706 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/diag/attn')
-rw-r--r--src/usr/diag/attn/common/attntarget.C6
-rw-r--r--src/usr/diag/attn/ipl/attnsvc.C4
-rw-r--r--src/usr/diag/attn/ipl/test/attnfakepresenter.C6
-rw-r--r--src/usr/diag/attn/ipl/test/attnfaketarget.C6
4 files changed, 11 insertions, 11 deletions
diff --git a/src/usr/diag/attn/common/attntarget.C b/src/usr/diag/attn/common/attntarget.C
index fcc9df417..ed90b75f2 100644
--- a/src/usr/diag/attn/common/attntarget.C
+++ b/src/usr/diag/attn/common/attntarget.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014 */
+/* Contributors Listed Below - COPYRIGHT 2014,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -189,9 +189,9 @@ bool TargetServiceImpl::getAttribute(
switch (i_attribute)
{
- case ATTR_FABRIC_NODE_ID:
+ case ATTR_FABRIC_GROUP_ID:
- found = i_target->tryGetAttr<ATTR_FABRIC_NODE_ID>(u8);
+ found = i_target->tryGetAttr<ATTR_FABRIC_GROUP_ID>(u8);
o_val = u8;
break;
diff --git a/src/usr/diag/attn/ipl/attnsvc.C b/src/usr/diag/attn/ipl/attnsvc.C
index 2fe0bb934..c8ecbae35 100644
--- a/src/usr/diag/attn/ipl/attnsvc.C
+++ b/src/usr/diag/attn/ipl/attnsvc.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2015 */
+/* Contributors Listed Below - COPYRIGHT 2014,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -177,7 +177,7 @@ void Service::processIntrQMsgPreAck(const msg_t & i_msg)
{
uint64_t node = 0, chip = 0;
- getTargetService().getAttribute(ATTR_FABRIC_NODE_ID, *it, node);
+ getTargetService().getAttribute(ATTR_FABRIC_GROUP_ID, *it, node);
getTargetService().getAttribute(ATTR_FABRIC_CHIP_ID, *it, chip);
if(node == xisr.node
diff --git a/src/usr/diag/attn/ipl/test/attnfakepresenter.C b/src/usr/diag/attn/ipl/test/attnfakepresenter.C
index d44bdf7de..f5c23f733 100644
--- a/src/usr/diag/attn/ipl/test/attnfakepresenter.C
+++ b/src/usr/diag/attn/ipl/test/attnfakepresenter.C
@@ -1,11 +1,11 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
-/* $Source: src/usr/diag/attn/hostboot/test/attnfakepresenter.C $ */
+/* $Source: src/usr/diag/attn/ipl/test/attnfakepresenter.C $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014 */
+/* Contributors Listed Below - COPYRIGHT 2014,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -134,7 +134,7 @@ void FakePresenter::interrupt(
uint64_t node = 0, chip = 0;
- getTargetService().getAttribute(ATTR_FABRIC_NODE_ID, i_source, node);
+ getTargetService().getAttribute(ATTR_FABRIC_GROUP_ID, i_source, node);
getTargetService().getAttribute(ATTR_FABRIC_CHIP_ID, i_source, chip);
xisr.node = node;
diff --git a/src/usr/diag/attn/ipl/test/attnfaketarget.C b/src/usr/diag/attn/ipl/test/attnfaketarget.C
index 9f76135ea..9a4d5814a 100644
--- a/src/usr/diag/attn/ipl/test/attnfaketarget.C
+++ b/src/usr/diag/attn/ipl/test/attnfaketarget.C
@@ -1,11 +1,11 @@
/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
-/* $Source: src/usr/diag/attn/hostboot/test/attnfaketarget.C $ */
+/* $Source: src/usr/diag/attn/ipl/test/attnfaketarget.C $ */
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014 */
+/* Contributors Listed Below - COPYRIGHT 2014,2016 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -87,7 +87,7 @@ bool FakeProcTargetService::getAttribute(
switch (i_attribute)
{
- case ATTR_FABRIC_NODE_ID:
+ case ATTR_FABRIC_GROUP_ID:
o_val = 0;
break;
OpenPOWER on IntegriCloud