blob: e399007655cc8f5948312274e2137c29cc0c6b24 [file] [log] [blame]
linyuny8cfa4c42021-06-16 13:53:08 -07001#pragma once
2
3#include "handler.hpp"
4
5#include <ipmid/api.h>
6
7namespace google
8{
9namespace ipmi
10{
11
12struct HostPowerOffRequest
13{
14 uint8_t subcommand;
15 // Delay in seconds.
16 uint32_t delay;
17} __attribute__((packed));
18
19// Disable the fallback watchdog with given time delay and Power Off Host
20ipmi_ret_t hostPowerOff(const uint8_t* reqBuf, uint8_t* replyBuf,
21 size_t* dataLen, const HandlerInterface* handler);
22
23} // namespace ipmi
24} // namespace google