summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
authorNorman James <njames@us.ibm.com>2014-09-23 14:47:34 -0500
committerAndrew J. Geissler <andrewg@us.ibm.com>2014-12-18 09:13:52 -0600
commit492738975921b5eeab19573cc47a5536e867cb02 (patch)
tree5dbaa546c5f6b23231c75c377d99e02814ac01bb /src/usr/hwas
parent9e91fa4f9e2ce76c458f8839e2f573c3cbc90797 (diff)
downloadtalos-hostboot-492738975921b5eeab19573cc47a5536e867cb02.tar.gz
talos-hostboot-492738975921b5eeab19573cc47a5536e867cb02.zip
Added callout interface for parts such as PNOR and SBE
Parts supported for callout are PNOR, SBE, VRM, GPIO, etc Change-Id: I6734d58e8e44a7bfd71e87cc4f910bce9473f86d RTC: 109945 CMVC-Coreq: 945677 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13547 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'src/usr/hwas')
-rw-r--r--src/usr/hwas/common/hwasCallout.C24
-rw-r--r--src/usr/hwas/hwasPlatCallout.C23
2 files changed, 47 insertions, 0 deletions
diff --git a/src/usr/hwas/common/hwasCallout.C b/src/usr/hwas/common/hwasCallout.C
index 511dc61eb..92c5a8e7b 100644
--- a/src/usr/hwas/common/hwasCallout.C
+++ b/src/usr/hwas/common/hwasCallout.C
@@ -210,6 +210,30 @@ void processCallout(errlHndl_t &io_errl,
}
break;
} // CLOCK_CALLOUT
+ case (PART_CALLOUT):
+ {
+ TARGETING::Target *pTarget = NULL;
+ uint8_t * l_uData = (uint8_t *)(pCalloutUD + 1);
+ bool l_err = retrieveTarget(l_uData, pTarget, io_errl);
+
+ if (!l_err)
+ {
+ errlHndl_t errl = platHandlePartCallout(
+ pTarget,
+ pCalloutUD->partType,
+ pCalloutUD->priority,
+ io_errl,
+ pCalloutUD->deconfigState,
+ pCalloutUD->gardErrorType);
+ if (errl)
+ {
+ HWAS_ERR("processCallout: error platHandlePartCallout");
+ errlCommit(errl, HWAS_COMP_ID);
+ }
+ }
+ break;
+ } // PART_CALLOUT
+
default:
{
HWAS_ERR("bad data in Callout UD %x", pCalloutUD->type);
diff --git a/src/usr/hwas/hwasPlatCallout.C b/src/usr/hwas/hwasPlatCallout.C
index 1419c8c36..42df78b7d 100644
--- a/src/usr/hwas/hwasPlatCallout.C
+++ b/src/usr/hwas/hwasPlatCallout.C
@@ -256,4 +256,27 @@ errlHndl_t platHandleClockCallout(
return pError;
}
+//******************************************************************************
+// platHandleClockCallout
+//******************************************************************************
+errlHndl_t platHandlePartCallout(
+ TARGETING::Target *i_pTarget,
+ partTypeEnum i_partType,
+ callOutPriority i_priority,
+ errlHndl_t &io_errl,
+ DeconfigEnum i_deconfigState,
+ GARD_ErrorType i_gardErrorType)
+{
+ // WARNING:
+ // this hostboot code should not change io_errl, unless the caller of the
+ // processCallouts() function also changes, as today it (errlentry.C) calls
+ // from the errlEntry object
+
+ errlHndl_t errl = NULL;
+
+ // Hostboot does not handle or do any action for part callouts
+ return errl;
+}
+
+
} // namespace HWAS
OpenPOWER on IntegriCloud