Add new oem command to set accel power mode

Signed-off-by: Gaurav Gandhi <gauravgandhi@google.com>
Change-Id: Ie0b47477b7ae9e8ae206ac0645571a7a79dbda40
diff --git a/handler_impl.hpp b/handler_impl.hpp
index 7b58523..fe12728 100644
--- a/handler_impl.hpp
+++ b/handler_impl.hpp
@@ -74,6 +74,10 @@
     void accelOobWrite(std::string_view name, uint64_t address,
                        uint8_t num_bytes, uint64_t data) const override;
     void linuxBootDone() const override;
+    void accelSetVrSettings(::ipmi::Context::ptr ctx, uint8_t chip_id,
+                            uint8_t settings_id, uint16_t value) const override;
+    uint16_t accelGetVrSettings(::ipmi::Context::ptr ctx, uint8_t chip_id,
+                                uint8_t settings_id) const override;
 
   protected:
     // Exposed for dependency injection
@@ -102,6 +106,9 @@
         {0x1E, "cooling_unit"},
         {0x20, "memory_device"}};
 
+    const std::unordered_map<uint8_t, std::string> _vrSettingsMap{
+        {0, "idle_mode_"}, {1, "power_break_"}, {2, "loadline_"}};
+
     nlohmann::json _entityConfig{};
 
     std::vector<std::tuple<uint32_t, std::string>> _pcie_i2c_map;