summaryrefslogtreecommitdiffstats
path: root/src/usr/fsi/test/fsiddtest.H
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-04-25 14:29:54 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-05-09 10:59:46 -0500
commit91d3c3f897bdeb6bab4259eafaa42b24b669b1d2 (patch)
tree4426f49054ec0119e04099250032c68bed3bcf55 /src/usr/fsi/test/fsiddtest.H
parent7362a70f4b11b12578c938cb40a0143f6bfeda7d (diff)
downloadtalos-hostboot-91d3c3f897bdeb6bab4259eafaa42b24b669b1d2.tar.gz
talos-hostboot-91d3c3f897bdeb6bab4259eafaa42b24b669b1d2.zip
Update testcases to use Attributes for present and functional
Update testcases for scom, i2c, mvpd, fsi Change-Id: I357c4efb046c04da1c801ec257a1827e36a73e25 RTC: 39765 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/943 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/fsi/test/fsiddtest.H')
-rw-r--r--src/usr/fsi/test/fsiddtest.H13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/usr/fsi/test/fsiddtest.H b/src/usr/fsi/test/fsiddtest.H
index 3078e4261..c1e528741 100644
--- a/src/usr/fsi/test/fsiddtest.H
+++ b/src/usr/fsi/test/fsiddtest.H
@@ -230,27 +230,32 @@ class FsiDDTest : public CxxTest::TestSuite
uint64_t patterns_to_run = 0;
for( uint64_t x = 0; x < NUM_ADDRS; x++ )
{
+
// direct writes to slave regs
if( test_data[x].fsitarget == PROC0 )
{
if( ((0xFF0000 & test_data[x].addr) == 0x080000)
- && FSI::isSlavePresent(fsi_targets[PROCWRAP]) )
+ && (fsi_targets[PROCWRAP] != NULL)
+ && (fsi_targets[PROCWRAP]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional))
{
test_data[x].present = true;
}
else if( ((0xFF0000 & test_data[x].addr) == 0x040000)
- && FSI::isSlavePresent(fsi_targets[CENTAUR0]) )
+ && (fsi_targets[CENTAUR0] != NULL)
+ && (fsi_targets[CENTAUR0]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional))
{
test_data[x].present = true;
}
else if( ((0xFF0000 & test_data[x].addr) == 0x100000)
- && FSI::isSlavePresent(fsi_targets[PROC2]) )
+ && (fsi_targets[PROC2] != NULL)
+ && (fsi_targets[PROC2]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional))
{
test_data[x].present = true;
}
}
// otherwise only talk to chips that we see
- else if( FSI::isSlavePresent(fsi_targets[test_data[x].fsitarget]) )
+ else if (( fsi_targets[test_data[x].fsitarget] != NULL) &&
+ (fsi_targets[test_data[x].fsitarget]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional))
{
test_data[x].present = true;
}
OpenPOWER on IntegriCloud