summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2013-06-13 10:55:44 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-07-01 10:18:00 -0500
commitd125363f31f9277d1791966e5c694580d1b5e6fe (patch)
treed758d43a3bb1053f63823b1dd717a80505b05571 /src/usr/hwpf/plat
parent50c029f1ac96bc844550000cb5ee4e9fac4ad462 (diff)
downloadtalos-hostboot-d125363f31f9277d1791966e5c694580d1b5e6fe.tar.gz
talos-hostboot-d125363f31f9277d1791966e5c694580d1b5e6fe.zip
VPD Accessor functions for Slope/Intercept
Create a HWP accessor to retrieve power slope and intercept data attributes from cvpd record VSPD keyword MW and MV. Change-Id: Ia7516505a03695c80d565523242e5c2350402cd0 RTC: 67125 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4999 Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat')
-rw-r--r--src/usr/hwpf/plat/fapiPlatAttributeService.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatAttributeService.C b/src/usr/hwpf/plat/fapiPlatAttributeService.C
index 9db439a93..d1e0459a1 100644
--- a/src/usr/hwpf/plat/fapiPlatAttributeService.C
+++ b/src/usr/hwpf/plat/fapiPlatAttributeService.C
@@ -45,6 +45,7 @@
#include <hwpf/hwp/mvpd_accessors/getMBvpdPhaseRotatorData.H>
#include <hwpf/hwp/mvpd_accessors/getMBvpdAddrMirrorData.H>
#include <hwpf/hwp/mvpd_accessors/getMBvpdTermData.H>
+#include <hwpf/hwp/mvpd_accessors/getMBvpdSlopeInterceptData.H>
// The following file checks at compile time that all HWPF attributes are
// handled by Hostboot. This is done to ensure that the HTML file listing
@@ -1305,6 +1306,19 @@ fapi::ReturnCode fapiPlatGetTermData (
return l_rc;
}
+fapi::ReturnCode fapiPlatGetSlopeInterceptData (
+ const fapi::Target * i_pTarget,
+ const fapi::MBvpdSlopeIntercept i_attr,
+ uint32_t & o_Val)
+{
+ // Call a VPD Accessor HWP to get the data
+ fapi::ReturnCode l_rc;
+ FAPI_EXEC_HWP(l_rc, getMBvpdSlopeInterceptData,
+ *i_pTarget, i_attr, o_Val);
+ return l_rc;
+}
+
+
fapi::ReturnCode fapiPlatGetEnableAttr ( fapi::AttributeId i_id,
const fapi::Target * i_pFapiTarget, uint8_t & o_enable )
{
OpenPOWER on IntegriCloud