summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/test
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2012-07-09 16:51:16 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-07-12 13:37:17 -0500
commit314fb004240afaf365d4a78e2e29ce1ae3f84081 (patch)
tree76e22a6eadce025227313d8767889f52e42a6259 /src/usr/hwpf/test
parentc71d22e87eea8c6bf0ac40e261784b2794195ba9 (diff)
downloadtalos-hostboot-314fb004240afaf365d4a78e2e29ce1ae3f84081.tar.gz
talos-hostboot-314fb004240afaf365d4a78e2e29ce1ae3f84081.zip
HWPF Attribute Support: ATTR_FUNCTIONAL
This HWPF attribute was requested by the HW team in order to query if a Target is functional. The common_attributes.xml file will be checked into eKB. The other code is Hostboot support. Change-Id: I451344a2c68e5e799c3da50097f1826470c0f771 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1332 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/test')
-rw-r--r--src/usr/hwpf/test/hwpftest.H13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/hwpf/test/hwpftest.H b/src/usr/hwpf/test/hwpftest.H
index 7c36f26c0..25e749f70 100644
--- a/src/usr/hwpf/test/hwpftest.H
+++ b/src/usr/hwpf/test/hwpftest.H
@@ -483,6 +483,19 @@ public:
break;
}
+ // Test ATTR_FUNCTIONAL attribute access through FAPI
+ uint8_t l_functional = 0xff;
+ l_rc = FAPI_ATTR_GET(ATTR_FUNCTIONAL, &l_fapiTarget, l_functional);
+ if (l_rc != fapi::FAPI_RC_SUCCESS)
+ {
+ TS_FAIL("testHwpf5: ATTR_FUNCTIONAL. Error from GET");
+ break;
+ }
+ else
+ {
+ FAPI_INF("testHwpf5: Master chip ATTR_FUNCTIONAL: %d", l_functional);
+ }
+
//printk("EC = %d\n", l_EC_R);
/*
OpenPOWER on IntegriCloud