William A. Kennington III | 61d5f7b | 2018-02-09 15:23:53 -0800 | [diff] [blame] | 1 | #pragma once |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 2 | |
Vernon Mauery | e08fbff | 2019-04-03 09:19:34 -0700 | [diff] [blame] | 3 | #include <ipmid/api.hpp> |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 4 | |
| 5 | /** @brief The RESET watchdog IPMI command. |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 6 | */ |
Vernon Mauery | 11df4f6 | 2019-03-25 14:17:54 -0700 | [diff] [blame] | 7 | ipmi::RspType<> ipmiAppResetWatchdogTimer(); |
Patrick Venture | 5e6ac71 | 2017-10-25 12:16:19 -0700 | [diff] [blame] | 8 | |
Deepak Kumar Sahu | cfae948 | 2019-05-20 14:58:58 +0000 | [diff] [blame] | 9 | /**@brief The setWatchdogTimer ipmi command. |
William A. Kennington III | 61d5f7b | 2018-02-09 15:23:53 -0800 | [diff] [blame] | 10 | * |
Deepak Kumar Sahu | cfae948 | 2019-05-20 14:58:58 +0000 | [diff] [blame] | 11 | * @param |
| 12 | * - timerUse |
| 13 | * - dontStopTimer |
| 14 | * - dontLog |
| 15 | * - timerAction |
| 16 | * - pretimeout |
| 17 | * - expireFlags |
| 18 | * - initialCountdown |
William A. Kennington III | 61d5f7b | 2018-02-09 15:23:53 -0800 | [diff] [blame] | 19 | * |
Deepak Kumar Sahu | cfae948 | 2019-05-20 14:58:58 +0000 | [diff] [blame] | 20 | * @return completion code on success. |
| 21 | **/ |
| 22 | ipmi::RspType<> ipmiSetWatchdogTimer( |
| 23 | uint3_t timerUse, uint3_t reserved, bool dontStopTimer, bool dontLog, |
| 24 | uint3_t timeoutAction, uint1_t reserved1, uint3_t preTimeoutInterrupt, |
| 25 | uint1_t reserved2, uint8_t preTimeoutInterval, uint1_t reserved3, |
| 26 | uint5_t expFlagValue, uint2_t reserved4, uint16_t initialCountdown); |
William A. Kennington III | 73f4451 | 2018-02-09 15:28:46 -0800 | [diff] [blame] | 27 | |
Deepak Kumar Sahu | cfae948 | 2019-05-20 14:58:58 +0000 | [diff] [blame] | 28 | /**@brief The getWatchdogTimer ipmi command. |
William A. Kennington III | 73f4451 | 2018-02-09 15:28:46 -0800 | [diff] [blame] | 29 | * |
Deepak Kumar Sahu | cfae948 | 2019-05-20 14:58:58 +0000 | [diff] [blame] | 30 | * @return |
| 31 | * - timerUse |
| 32 | * - timerActions |
| 33 | * - pretimeout |
| 34 | * - timeruseFlags |
| 35 | * - initialCountdown |
| 36 | * - presentCountdown |
| 37 | **/ |
Yong Li | 4dd71af | 2019-09-29 14:18:07 +0800 | [diff] [blame] | 38 | ipmi::RspType<uint3_t, uint3_t, bool, bool, // timerUse |
| 39 | uint3_t, uint1_t, uint3_t, uint1_t, // timerAction |
| 40 | uint8_t, // pretimeout |
| 41 | uint8_t, // expireFlags |
Deepak Kumar Sahu | cfae948 | 2019-05-20 14:58:58 +0000 | [diff] [blame] | 42 | uint16_t, // initial Countdown - Little Endian (deciseconds) |
| 43 | uint16_t // present Countdown - Little Endian (deciseconds) |
| 44 | > |
| 45 | ipmiGetWatchdogTimer(); |