blob: d2c5fbe1d7c09ab323851b5843c013d8e0cfd2dc [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 = &handlerImpl);
} // namespace ipmi
} // namespace google