platform-mc: Support pollForPlatFormEventMessage
Supports polling all events synchronously when the terminus sends
`pldmMessagePollEvent` with the event id. BMC will use the received
event id as input for `pollForPlatformEventMessage` command to retrieve
the event data.
Change-Id: If01f63f30d3f57f8423c863ec776e83dda8e3042
Signed-off-by: Dung Cao <dung@os.amperecomputing.com>
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
diff --git a/platform-mc/terminus.hpp b/platform-mc/terminus.hpp
index 464897f..1986da0 100644
--- a/platform-mc/terminus.hpp
+++ b/platform-mc/terminus.hpp
@@ -148,6 +148,21 @@
/** @brief A list of numericSensors */
std::vector<std::shared_ptr<NumericSensor>> numericSensors{};
+ /** @brief The flag indicates that the terminus FIFO contains a large
+ * message that will require a multipart transfer via the
+ * PollForPlatformEvent command
+ */
+ bool pollEvent;
+
+ /** @brief The sensor id is used in pollForPlatformMessage command */
+ uint16_t pollEventId;
+
+ /** @brief The dataTransferHandle from `pldmMessagePollEvent` event and will
+ * be used as `dataTransferHandle` for pollForPlatformMessage
+ * command.
+ */
+ uint32_t pollDataTransferHandle;
+
/** @brief Get Sensor Auxiliary Names by sensorID
*
* @param[in] id - sensor ID