Patrick Venture | 4d49ae6 | 2018-09-17 11:35:32 -0700 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | aa37412 | 2019-03-15 15:09:10 -0700 | [diff] [blame^] | 3 | #include "handler.hpp" |
| 4 | |
William A. Kennington III | 2c9e162 | 2019-02-07 15:45:19 -0800 | [diff] [blame] | 5 | #include <ipmid/api.h> |
Patrick Venture | 4d49ae6 | 2018-09-17 11:35:32 -0700 | [diff] [blame] | 6 | |
| 7 | namespace google |
| 8 | { |
| 9 | namespace ipmi |
| 10 | { |
| 11 | |
Patrick Venture | aa37412 | 2019-03-15 15:09:10 -0700 | [diff] [blame^] | 12 | struct PsuResetRequest |
| 13 | { |
| 14 | uint8_t subcommand; |
| 15 | // Delay in seconds. |
| 16 | uint32_t delay; |
| 17 | } __attribute__((packed)); |
| 18 | |
Patrick Venture | 4d49ae6 | 2018-09-17 11:35:32 -0700 | [diff] [blame] | 19 | // Set a time-delayed PSU hard reset. |
| 20 | ipmi_ret_t PsuHardReset(const uint8_t* reqBuf, uint8_t* replyBuf, |
Patrick Venture | aa37412 | 2019-03-15 15:09:10 -0700 | [diff] [blame^] | 21 | size_t* dataLen, |
| 22 | const HandlerInterface* handler = &handlerImpl); |
Patrick Venture | 4d49ae6 | 2018-09-17 11:35:32 -0700 | [diff] [blame] | 23 | |
| 24 | } // namespace ipmi |
| 25 | } // namespace google |