blob: d45ce7f7ed670d346a5afda0a95d767688e6fdae [file] [log] [blame]
#pragma once
#include "handler.hpp"
#include <ipmid/api.h>
namespace google
{
namespace ipmi
{
struct PsuResetRequest
{
uint8_t subcommand;
// Delay in seconds.
uint32_t delay;
} __attribute__((packed));
// Set a time-delayed PSU hard reset.
ipmi_ret_t psuHardReset(const uint8_t* reqBuf, uint8_t* replyBuf,
size_t* dataLen, const HandlerInterface* handler);
} // namespace ipmi
} // namespace google