pldmtool: Add new entity types in the pdr support list

Added new entity types in the GetPDR command interface to parse
the newly added entity types. Added new types for disk backplane,
fan, nvme drive, dimm, tod battery, pcie slot and pcie cable card.

Testing Result for some entity types:

pldmtool platform GetPDR -d 156
{
    "nextRecordHandle": 157,
    "responseCount": 27,
    "recordHandle": 156,
    "PDRHeaderVersion": 1,
    "PDRType": "State Sensor PDR",
    "recordChangeNumber": 0,
    "dataLength": 17,
    "PLDMTerminusHandle": 0,
    "sensorID": 55,
    "entityType": "Slot",
    "entityInstanceNumber": 1,
    "containerID": 3,
    "sensorInit": "noInit",
    "sensorAuxiliaryNamesPDR": false,
    "compositeSensorCount": 1,
    "stateSetID[0]": "17",
    "possibleStatesSize[0]": 1,
    "possibleStates[0]": " 1 2"
}

pldmtool platform GetPDR -d 170
{
    "nextRecordHandle": 171,
    "responseCount": 27,
    "recordHandle": 170,
    "PDRHeaderVersion": 1,
    "PDRType": "State Sensor PDR",
    "recordChangeNumber": 0,
    "dataLength": 17,
    "PLDMTerminusHandle": 0,
    "sensorID": 69,
    "entityType": "Real Time Clock (RTC)",
    "entityInstanceNumber": 1,
    "containerID": 3,
    "sensorInit": "noInit",
    "sensorAuxiliaryNamesPDR": false,
    "compositeSensorCount": 1,
    "stateSetID[0]": "17",
    "possibleStatesSize[0]": 1,
    "possibleStates[0]": " 1 2"
}

Signed-off-by: Jayashankar Padath <jayashankar.padath@in.ibm.com>
Change-Id: Iddf290d68cf20d3c274a41079ac6c4ff1f805310
diff --git a/pldmtool/pldm_platform_cmd.cpp b/pldmtool/pldm_platform_cmd.cpp
index 18f0ef0..7c844fa 100644
--- a/pldmtool/pldm_platform_cmd.cpp
+++ b/pldmtool/pldm_platform_cmd.cpp
@@ -112,6 +112,7 @@
         {PLDM_ENTITY_VIRTUAL_MACHINE_MANAGER, "Virtual Machine Manager"},
         {PLDM_ENTITY_SYSTEM_CHASSIS, "System chassis (main enclosure)"},
         {PLDM_ENTITY_SYS_BOARD, "System Board"},
+        {PLDM_ENTITY_DRIVE_BACKPLANE, "Drive backplane"},
         {PLDM_ENTITY_MEMORY_MODULE, "Memory Module"},
         {PLDM_ENTITY_PROC_MODULE, "Processor Module"},
         {PLDM_ENTITY_CHASSIS_FRONT_PANEL_BOARD,
@@ -120,7 +121,13 @@
         {PLDM_ENTITY_PROC, "Processor"},
         {PLDM_ENTITY_MGMT_CONTROLLER, "Management Controller"},
         {PLDM_ENTITY_CONNECTOR, "Connector"},
+        {PLDM_ENTITY_FAN, "Fan"},
+        {PLDM_ENTITY_SOLID_STATE_SRIVE, "Solid State Drive"},
         {PLDM_ENTITY_POWER_SUPPLY, "Power Supply"},
+        {PLDM_ENTITY_MEMORY_CHIP, "Memory chip"},
+        {PLDM_ENTITY_REAL_TIME_CLOCK, "Real Time Clock (RTC)"},
+        {PLDM_ENTITY_SLOT, "Slot"},
+        {PLDM_ENTITY_CABLE, "Cable (electrical or optical)"},
         {11521, "System (logical)"},
     };