diff options
Diffstat (limited to 'src/usr/diag/prdf/common/plat/p9/prdfP9Dmi_common.C')
-rw-r--r-- | src/usr/diag/prdf/common/plat/p9/prdfP9Dmi_common.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/usr/diag/prdf/common/plat/p9/prdfP9Dmi_common.C b/src/usr/diag/prdf/common/plat/p9/prdfP9Dmi_common.C index 801b25f89..ffd874ace 100644 --- a/src/usr/diag/prdf/common/plat/p9/prdfP9Dmi_common.C +++ b/src/usr/diag/prdf/common/plat/p9/prdfP9Dmi_common.C @@ -50,6 +50,23 @@ namespace p9_dmi //############################################################################## /** + * @brief Analysis code that is called before the main analyze() function. + * @param i_chip A DMI chip. + * @param io_sc The step code data struct. + * @param o_analyzed True if analysis is done on this chip, false otherwise. + * @return Non-SUCCESS if an internal function fails, SUCCESS otherwise. + */ +int32_t PreAnalysis( ExtensibleChip * i_chip, STEP_CODE_DATA_STRUCT & io_sc, + bool & o_analyzed ) +{ + o_analyzed = false; + + // Check for a channel failure before analyzing this chip. + return MemUtils::handleChnlFail<TYPE_DMI>( i_chip, io_sc ); +} +PRDF_PLUGIN_DEFINE( p9_dmi, PreAnalysis ); + +/** * @brief Plugin function called after analysis is complete but before PRD * exits. * @param i_chip A DMI chip. |