linyuny | 8cfa4c4 | 2021-06-16 13:53:08 -0700 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include "handler.hpp" |
| 4 | |
| 5 | #include <ipmid/api.h> |
| 6 | |
| 7 | namespace google |
| 8 | { |
| 9 | namespace ipmi |
| 10 | { |
| 11 | |
| 12 | struct 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 |
| 20 | ipmi_ret_t hostPowerOff(const uint8_t* reqBuf, uint8_t* replyBuf, |
| 21 | size_t* dataLen, const HandlerInterface* handler); |
| 22 | |
| 23 | } // namespace ipmi |
| 24 | } // namespace google |