summaryrefslogtreecommitdiffstats
path: root/dcmihandler.hpp
diff options
context:
space:
mode:
authorKirill Pakhomov <k.pakhomov@yadro.com>2018-11-06 19:17:51 +0300
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-03-25 16:23:31 +0000
commitdb5d9b04543dea74b81b97fbed4a680fc3adc171 (patch)
tree96d421e040605ddc0cefafdb7eebd7806d372bc7 /dcmihandler.hpp
parent3325024067487320abddbf0ffb5a528b1743122a (diff)
downloadphosphor-host-ipmid-db5d9b04543dea74b81b97fbed4a680fc3adc171.tar.gz
phosphor-host-ipmid-db5d9b04543dea74b81b97fbed4a680fc3adc171.zip
dcmihandler: Fix Get DCMI Capabilities command
Get DCMI Capabilities (Discover) command returned wrong values for parameters exceeding 1 byte length. Also added the check for SEL entries number range per DCMI specification. Tested: the condition for value limit check works properly. Change-Id: Iee0d75594067630bb6094d05533c87e3ad82807e Signed-off-by: Kirill Pakhomov <k.pakhomov@yadro.com>
Diffstat (limited to 'dcmihandler.hpp')
-rw-r--r--dcmihandler.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dcmihandler.hpp b/dcmihandler.hpp
index 8b16e3d..a188c25 100644
--- a/dcmihandler.hpp
+++ b/dcmihandler.hpp
@@ -58,6 +58,8 @@ static constexpr auto gDCMICapabilitiesConfig =
"/usr/share/ipmi-providers/dcmi_cap.json";
static constexpr auto gDCMIPowerMgmtCapability = "PowerManagement";
static constexpr auto gDCMIPowerMgmtSupported = 0x1;
+static constexpr auto gMaxSELEntriesMask = 0xFFF;
+static constexpr auto gByteBitSize = 8;
namespace assettag
{
OpenPOWER on IntegriCloud