From 94a57132d0db82ce9ad4d952d4ea02550aea84f2 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Sun, 22 Mar 2015 23:03:57 -0500 Subject: Add support for POWER_CONTROL_CAPABLE to ISDIMMs Change-Id: If9de980385cac7706b321a9fefc1158dc540b7e0 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16527 Tested-by: Jenkins Server Reviewed-by: William H. Schwartz Reviewed-by: Daniel M. Crowell Reviewed-by: A. Patrick Williams III --- src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdAttr.H | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdAttr.H b/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdAttr.H index 07ea5fc99..810cb4072 100644 --- a/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdAttr.H +++ b/src/include/usr/hwpf/hwp/mvpd_accessors/getMBvpdAttr.H @@ -46,11 +46,14 @@ namespace getAttrData const uint8_t NUM_PORTS = 2; //Each MBA has 2 ports const uint8_t NUM_DIMMS = 2; //Each port has 2 DIMMs const uint8_t NUM_RANKS = 4; //Number of ranks - const uint8_t PORT_SECTION_SIZE = 64; //Each port has 64 bytes + //Each port has 64 bytes of space, but only 62 bytes is useable + const uint8_t PORT_SECTION_SIZE = 64; + const uint8_t PORT_SECTION_USED = 62; struct port_attributes { - uint8_t port_attr[PORT_SECTION_SIZE]; + uint8_t port_attr[PORT_SECTION_USED]; + uint8_t nonport_data[PORT_SECTION_SIZE-PORT_SECTION_USED]; }; struct mba_attributes { @@ -102,6 +105,7 @@ namespace getAttrData UINT32_BY2 =0x0004, // uint32_t [2] UINT32_BY2_BY2 =0x0005, // uint32_t [2][2] UINT64 =0x0006, // uint64_t + UINT8 =0x0007, // uint8_t }; const uint16_t OUTPUT_TYPE_MASK = 0x00FF; @@ -111,6 +115,7 @@ namespace getAttrData typedef uint32_t UINT32_BY2_t [2]; typedef uint32_t UINT32_BY2_BY2_t [2][2]; typedef uint64_t UINT64_t; + typedef uint8_t UINT8_t; // Special processing // Rules: @@ -343,6 +348,8 @@ template<>class MBvpdAttrDataType { public: typedef fapi::ATTR_VPD_TSYS_ADR_Type Type; }; template<>class MBvpdAttrDataType { public: typedef fapi::ATTR_VPD_TSYS_DP18_Type Type; }; +template<>class MBvpdAttrDataType + { public: typedef fapi::ATTR_VPD_POWER_CONTROL_CAPABLE_Type Type; }; // Template function that checks that the type is as expected. -- cgit v1.2.3