summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2013-04-27 22:12:56 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-06-11 09:11:25 -0500
commit25a05966a93786736212b4f35aa84929423a48e4 (patch)
tree3be7d985ec3938b43671ff01e93ff8db5eae9de1 /src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
parentbb2e9e1adac63e8b12c881b546b757f8d8de5697 (diff)
downloadtalos-hostboot-25a05966a93786736212b4f35aa84929423a48e4.tar.gz
talos-hostboot-25a05966a93786736212b4f35aa84929423a48e4.zip
PRD: TD controller for MDIA
Change-Id: I6453a1fef37cbd7f9d3c105af8349688ad62c0c2 RTC: 22866 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4248 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4935
Diffstat (limited to 'src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H')
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H15
1 files changed, 13 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 0bfc86dfd..a43700e87 100755
--- a/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
+++ b/src/usr/diag/prdf/common/plat/pegasus/prdfCenSymbol.H
@@ -81,9 +81,10 @@ class CenSymbol
* @brief Constructor from components
*/
CenSymbol( TARGETING::TargetHandle_t i_mba, CenRank i_rank,
- WiringType i_wiringType, uint8_t i_symbol, uint8_t i_pins ) :
+ WiringType i_wiringType, uint8_t i_symbol, uint8_t i_pins,
+ bool i_x4Dram ) :
iv_mbaTarget(i_mba), iv_rank(i_rank), iv_wiringType(i_wiringType),
- iv_symbol(i_symbol), iv_pins(i_pins)
+ iv_symbol(i_symbol), iv_pins(i_pins), iv_x4Dram(i_x4Dram)
{}
public: // functions
@@ -148,6 +149,12 @@ class CenSymbol
/** @return The port select for this symbol. */
uint8_t getPortSlct() const { return symbol2PortSlct( iv_symbol ); }
+ /** @return The DRAM index for this symbol. */
+ uint8_t getDram() const { return symbol2Dram( iv_symbol, iv_x4Dram ); }
+
+ /** @return TRUE this symbol is on a x4 DRAM, FALSE otherwise. */
+ bool isX4Dram() const { return iv_x4Dram; }
+
/** @return The symbol of the given Centaur DQ and port select. */
static uint8_t cenDq2Symbol( uint8_t i_CenDq, uint8_t i_ps );
@@ -157,6 +164,9 @@ class CenSymbol
/** @return The port select for given symbol. */
static uint8_t symbol2PortSlct( uint8_t i_symbol );
+ /** @return The DRAM index for the given symbol. */
+ static uint8_t symbol2Dram( uint8_t i_symbol, bool isX4Dram );
+
/**
* @brief Overrides the '<' operator.
* @param i_symbol The symbol to compare with.
@@ -199,6 +209,7 @@ class CenSymbol
WiringType iv_wiringType; ///< This symbol's wiring type.
uint8_t iv_symbol; ///< This symbol's numerical value.
uint8_t iv_pins; ///< See enum DqMask.
+ bool iv_x4Dram; ///< TRUE x4 DRAM, FALSE x8 DRAM.
};
} // end namespace PRDF
OpenPOWER on IntegriCloud