Add new oem command to set accel power mode
Signed-off-by: Gaurav Gandhi <gauravgandhi@google.com>
Change-Id: Ie0b47477b7ae9e8ae206ac0645571a7a79dbda40
diff --git a/ipmi.cpp b/ipmi.cpp
index 2c765be..d8d94e9 100644
--- a/ipmi.cpp
+++ b/ipmi.cpp
@@ -46,7 +46,7 @@
namespace ipmi
{
-Resp handleSysCommand(HandlerInterface* handler, ::ipmi::Context::ptr,
+Resp handleSysCommand(HandlerInterface* handler, ::ipmi::Context::ptr ctx,
uint8_t cmd, std::span<const uint8_t> data)
{
switch (cmd)
@@ -87,6 +87,10 @@
return pcieBifurcation(data, handler);
case SysLinuxBootDone:
return linuxBootDone(data, handler);
+ case SysGetAccelVrSettings:
+ return accelGetVrSettings(ctx, data, handler);
+ case SysSetAccelVrSettings:
+ return accelSetVrSettings(ctx, data, handler);
default:
stdplus::print(stderr, "Invalid subcommand: {:#x}\n", cmd);
return ::ipmi::responseInvalidCommand();