summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
diff options
context:
space:
mode:
authorsachin gupta <sgupta2m@in.ibm.com>2013-04-24 02:42:29 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-09-11 14:40:10 -0500
commit45582a26440be119bc57606a99ee85f7f2726c31 (patch)
treef44feab84933a2a25b2cb19fa4bf0a51754038ab /src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
parent5c3ade25a9bc86a41a4a9840202ead6ae4f3e7fc (diff)
downloadblackbird-hostboot-45582a26440be119bc57606a99ee85f7f2726c31.tar.gz
blackbird-hostboot-45582a26440be119bc57606a99ee85f7f2726c31.zip
PRD: IPL MNFG CE support
RTC: 47290 Change-Id: I94bd86b7b902a20e4f945abbac3b5556cd07f1bc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4187 Tested-by: Jenkins Server Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5974
Diffstat (limited to 'src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H')
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H b/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
index a43700e87..681bff7ee 100755
--- a/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
+++ b/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
@@ -34,6 +34,7 @@
#include <prdfCenAddress.H>
#include <prdfCenConst.H>
+#include <prdfPlatServices.H>
#include <prdfTargetFwdRef.H>
//##############################################################################
@@ -152,6 +153,16 @@ class CenSymbol
/** @return The DRAM index for this symbol. */
uint8_t getDram() const { return symbol2Dram( iv_symbol, iv_x4Dram ); }
+ /** @return rank associated with this symbol. */
+ CenRank getRank() const { return iv_rank; };
+
+ /**
+ * @brief Sets this symbol's pin to a new set of bad pins.
+ * @param The new pins.
+ * @return Non-SUCCESS if an internal function failed, SUCCESS otherwise.
+ */
+ int32_t setPins( uint8_t i_pins );
+
/** @return TRUE this symbol is on a x4 DRAM, FALSE otherwise. */
bool isX4Dram() const { return iv_x4Dram; }
@@ -171,20 +182,27 @@ class CenSymbol
* @brief Overrides the '<' operator.
* @param i_symbol The symbol to compare with.
* @return TRUE if this symbol is less than i_symbol, FALSE otherwise.
+ * @note Compares against iv_symbol and iv_rank. There is currently no
+ * need to compare against iv_mbaTarget.
*/
bool operator < ( const CenSymbol & i_symbol ) const
{
- return ( this->getSymbol() < i_symbol.getSymbol() );
+ return ( (iv_symbol < i_symbol.iv_symbol) ||
+ ( (iv_symbol == i_symbol.iv_symbol) &&
+ (iv_rank < i_symbol.iv_rank ) ) );
}
/**
* @brief Overrides the '==' operator.
* @param i_symbol The symbol to compare with.
* @return TRUE if the two symbols are equivalent, FALSE otherwise.
+ * @note Compares against iv_symbol and iv_rank. There is currently no
+ * need to compare against iv_mbaTarget.
*/
bool operator == ( const CenSymbol & i_symbol ) const
{
- return ( this->getSymbol() == i_symbol.getSymbol() );
+ return ( (iv_symbol == i_symbol.iv_symbol) &&
+ (iv_rank == i_symbol.iv_rank ) );
}
private: // functions
OpenPOWER on IntegriCloud