Add IPMI interface for CustomAccel service
Change-Id: I28a8976e382b457233ac521e9ab71f75abe029d1
Signed-off-by: Steve Foreman <foremans@google.com>
diff --git a/ipmi.cpp b/ipmi.cpp
index 1f760f4..715264b 100644
--- a/ipmi.cpp
+++ b/ipmi.cpp
@@ -1,4 +1,4 @@
-// Copyright 2021 Google LLC
+// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -20,6 +20,7 @@
#include "entity_name.hpp"
#include "eth.hpp"
#include "flash_size.hpp"
+#include "google_accel_oob.hpp"
#include "handler.hpp"
#include "host_power_off.hpp"
#include "machine_name.hpp"
@@ -67,6 +68,14 @@
return getFlashSize(data, handler);
case SysHostPowerOff:
return hostPowerOff(data, handler);
+ case SysAccelOobDeviceCount:
+ return accelOobDeviceCount(data, handler);
+ case SysAccelOobDeviceName:
+ return accelOobDeviceName(data, handler);
+ case SysAccelOobRead:
+ return accelOobRead(data, handler);
+ case SysAccelOobWrite:
+ return accelOobWrite(data, handler);
default:
std::fprintf(stderr, "Invalid subcommand: 0x%x\n", cmd);
return ::ipmi::responseInvalidCommand();