blob: 657b65ca79267334ac9a42964a3efa00b200a32b [file] [log] [blame]
Patrick Venture4d49ae62018-09-17 11:35:32 -07001#pragma once
2
Patrick Ventureaa374122019-03-15 15:09:10 -07003#include "handler.hpp"
4
William A. Kennington III2c9e1622019-02-07 15:45:19 -08005#include <ipmid/api.h>
Patrick Venture4d49ae62018-09-17 11:35:32 -07006
7namespace google
8{
9namespace ipmi
10{
11
Patrick Ventureaa374122019-03-15 15:09:10 -070012struct PsuResetRequest
13{
14 uint8_t subcommand;
15 // Delay in seconds.
16 uint32_t delay;
17} __attribute__((packed));
18
Patrick Venture4d49ae62018-09-17 11:35:32 -070019// Set a time-delayed PSU hard reset.
20ipmi_ret_t PsuHardReset(const uint8_t* reqBuf, uint8_t* replyBuf,
Patrick Ventureaa374122019-03-15 15:09:10 -070021 size_t* dataLen,
22 const HandlerInterface* handler = &handlerImpl);
Patrick Venture4d49ae62018-09-17 11:35:32 -070023
24} // namespace ipmi
25} // namespace google