state-set: Add new enum for Operational Fault status
The spec DSP0249 specifies three enum values for Operational
Fault Status enum value (Set ID: 10). This commit adds the same.
Change-Id: Ib39c60db3e33b5ccdcef036bc900523989d148e7
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 512c2b9..cd62df5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,10 @@
## [Unreleased]
+### Added
+
+1. state-set: Add new enum for Operational Fault Status enum
+
## [0.6.0] - 2023-08-22
### Changed
diff --git a/include/libpldm/state_set.h b/include/libpldm/state_set.h
index c73d0d5..e47c476 100644
--- a/include/libpldm/state_set.h
+++ b/include/libpldm/state_set.h
@@ -155,6 +155,13 @@
PLDM_STATE_SET_OPERATIONAL_STRESS_STATUS_NORMAL = 1,
PLDM_STATE_SET_OPERATIONAL_STRESS_STATUS_STRESSED = 2,
};
+/* @brief List of states for Operational Fault status (ID 10).
+ */
+enum pldm_state_set_operational_fault_status_values {
+ PLDM_STATE_SET_OPERATIONAL_FAULT_STATUS_NORMAL = 1,
+ PLDM_STATE_SET_OPERATIONAL_FAULT_STATUS_ERROR = 2,
+ PLDM_STATE_SET_OPERATIONAL_FAULT_STATUS_NON_RECOVERABLE_ERROR = 3,
+};
/* @brief List of states for the Operational Running Status state set (ID 11).
*/