pldmtool: GetPLDMCommands: Support more PLDM Platform command numbers
Support more supported PLDM platform command numbers in table "Table 110
- Command numbers" of DSP0248 V1.3.0 when `GetPLDMCommands` is called.
Change-Id: Id8d706a41602010bee67b2aaea621766883da9cb
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
diff --git a/pldmtool/pldm_base_cmd.cpp b/pldmtool/pldm_base_cmd.cpp
index 5d02a7f..4a3ae88 100644
--- a/pldmtool/pldm_base_cmd.cpp
+++ b/pldmtool/pldm_base_cmd.cpp
@@ -47,15 +47,44 @@
{"SetDateTime", PLDM_SET_DATE_TIME}};
const std::map<const char*, pldm_platform_commands> pldmPlatformCmds{
+ {"GetTerminusUID", PLDM_GET_TERMINUS_UID},
+ {"SetEventReceiver", PLDM_SET_EVENT_RECEIVER},
+ {"GetEventReceiver", PLDM_GET_EVENT_RECEIVER},
+ {"PlatformEventMessage", PLDM_PLATFORM_EVENT_MESSAGE},
+ {"PollForPlatformEventMessage", PLDM_POLL_FOR_PLATFORM_EVENT_MESSAGE},
+ {"EventMessageSupported", PLDM_EVENT_MESSAGE_SUPPORTED},
+ {"EventMessageBufferSize", PLDM_EVENT_MESSAGE_BUFFER_SIZE},
+ {"SetNumericSensorEnable", PLDM_SET_NUMERIC_SENSOR_ENABLE},
+ {"GetSensorReading", PLDM_GET_SENSOR_READING},
+ {"GetSensorThresholds", PLDM_GET_SENSOR_THRESHOLDS},
+ {"SetSensorThresholds", PLDM_SET_SENSOR_THRESHOLDS},
+ {"RestoreSensorThresholds", PLDM_RESTORE_SENSOR_THRESHOLDS},
+ {"GetSensorHysteresis", PLDM_GET_SENSOR_HYSTERESIS},
+ {"SetSensorHysteresis", PLDM_SET_SENSOR_HYSTERESIS},
+ {"InitNumericSensor", PLDM_INIT_NUMERIC_SENSOR},
+ {"SetStateSensorEnables", PLDM_SET_STATE_SENSOR_ENABLES},
+ {"GetStateSensorReadings", PLDM_GET_STATE_SENSOR_READINGS},
+ {"InitStateSensor", PLDM_INIT_STATE_SENSOR},
+ {"SetNumericEffecterEnable", PLDM_SET_NUMERIC_EFFECTER_ENABLE},
{"SetNumericEffecterValue", PLDM_SET_NUMERIC_EFFECTER_VALUE},
+ {"GetNumericEffecterValue", PLDM_GET_NUMERIC_EFFECTER_VALUE},
+ {"SetStateEffecterEnables", PLDM_SET_STATE_EFFECTER_ENABLES},
{"SetStateEffecterStates", PLDM_SET_STATE_EFFECTER_STATES},
{"GetStateEffecterStates", PLDM_GET_STATE_EFFECTER_STATES},
+ {"GetPLDMEventLogInfo", PLDM_GET_PLDM_EVENT_LOG_INFO},
+ {"EnablePLDMEventLogging", PLDM_ENABLE_PLDM_EVENT_LOGGING},
+ {"ClearPLDMEventLog", PLDM_CLEAR_PLDM_EVENT_LOG},
+ {"GetPLDMEventLogTimestamp", PLDM_GET_PLDM_EVENT_LOG_TIMESTAMP},
+ {"SetPLDMEventLogTimestamp", PLDM_SET_PLDM_EVENT_LOG_TIMESTAMP},
+ {"ReadPLDMEventLog", PLDM_READ_PLDM_EVENT_LOG},
+ {"GetPLDMEventLogPolicyInfo", PLDM_GET_PLDM_EVENT_LOG_POLICY_INFO},
+ {"SetPLDMEventLogPolicy", PLDM_SET_PLDM_EVENT_LOG_POLICY},
+ {"FindPLDMEventLogEntry", PLDM_FIND_PLDM_EVENT_LOG_ENTRY},
+ {"GetPDRRepositoryInfo", PLDM_GET_PDR_REPOSITORY_INFO},
{"GetPDR", PLDM_GET_PDR},
- {"GetNumericEffecterValue", PLDM_GET_NUMERIC_EFFECTER_VALUE},
- {"SetEventReceiver", PLDM_SET_EVENT_RECEIVER},
- {"GetSensorReading", PLDM_GET_SENSOR_READING},
- {"GetStateSensorReadings", PLDM_GET_STATE_SENSOR_READINGS},
- {"PlatformEventMessage", PLDM_PLATFORM_EVENT_MESSAGE}};
+ {"FindPDR", PLDM_FIND_PDR},
+ {"RunInitAgent", PLDM_RUN_INIT_AGENT},
+ {"GetPDRRepositorySignature", PLDM_GET_PDR_REPOSITORY_SIGNATURE}};
const std::map<const char*, pldm_fru_commands> pldmFruCmds{
{"GetFRURecordTableMetadata", PLDM_GET_FRU_RECORD_TABLE_METADATA},