summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-10-03 03:58:05 -0500
committerDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-10-11 10:17:12 -0500
commite245e4e932279a112325dae06d7c12cf9e8ed833 (patch)
tree0be93f1578b547b6911c1f09f4c70b259e67b2a7 /types.hpp
parente84841ce7e833d527709c557e9e25829f4e3893c (diff)
downloadphosphor-host-ipmid-e245e4e932279a112325dae06d7c12cf9e8ed833.tar.gz
phosphor-host-ipmid-e245e4e932279a112325dae06d7c12cf9e8ed833.zip
IPMI changes to mark non present as non functional
When marking a unit as functional, both functional state and presence need to be checked to avoid marking non-present units as functional. Change-Id: If7b710c39f1c2590b82378ebdb7014dc924599ff Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/types.hpp b/types.hpp
index d3be704..0177c8f 100644
--- a/types.hpp
+++ b/types.hpp
@@ -51,6 +51,18 @@ struct Values
};
/**
+ * @enum PreReqValues
+ * Pre-req conditions for a property.
+ */
+struct PreReqValues
+{
+ Value assert; //Value in case of assert.
+ Value deassert; //Value in case of deassert.
+};
+
+using PreReqOffsetValueMap = std::map<Offset, PreReqValues>;
+
+/**
* @struct SetSensorReadingReq
*
* IPMI Request data for Set Sensor Reading and Event Status Command
@@ -88,9 +100,11 @@ using GetSensorResponse = std::array<uint8_t, sizeof(GetReadingResponse)>;
using OffsetValueMap = std::map<Offset,Values>;
-using DbusPropertyMap = std::map<DbusProperty,OffsetValueMap>;
+using DbusPropertyValues = std::pair<PreReqOffsetValueMap, OffsetValueMap>;
+
+using DbusPropertyMap = std::map<DbusProperty, DbusPropertyValues>;
-using DbusInterfaceMap = std::map<DbusInterface,DbusPropertyMap>;
+using DbusInterfaceMap = std::map<DbusInterface, DbusPropertyMap>;
using InstancePath = std::string;
using Type = uint8_t;
OpenPOWER on IntegriCloud