From b3d5150acd42feb1f7f2ba04d5f37c40f8aefa90 Mon Sep 17 00:00:00 2001 From: Jean-Michel Audet Date: Thu, 26 Apr 2007 13:19:33 +0000 Subject: [PATCH] -added watchdog command --- ipmitool/include/ipmitool/ipmi_mc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ipmitool/include/ipmitool/ipmi_mc.h b/ipmitool/include/ipmitool/ipmi_mc.h index 601f40e..147a9d3 100644 --- a/ipmitool/include/ipmitool/ipmi_mc.h +++ b/ipmitool/include/ipmitool/ipmi_mc.h @@ -39,6 +39,9 @@ #define BMC_COLD_RESET 0x02 #define BMC_WARM_RESET 0x03 #define BMC_GET_SELF_TEST 0x04 +#define BMC_RESET_WATCHDOG_TIMER 0x22 +#define BMC_SET_WATCHDOG_TIMER 0x24 +#define BMC_GET_WATCHDOG_TIMER 0x25 #define BMC_SET_GLOBAL_ENABLES 0x2e #define BMC_GET_GLOBAL_ENABLES 0x2f #define BMC_GET_GUID 0x37 @@ -100,4 +103,15 @@ struct ipm_selftest_rsp { #define IPM_SELFTEST_FW_BOOTBLOCK 0x02 #define IPM_SELFTEST_FW_CORRUPTED 0x01 +struct ipm_get_watchdog_rsp { + unsigned char timer_use; + unsigned char timer_actions; + unsigned char pre_timeout; + unsigned char timer_use_exp; + unsigned char initial_countdown_lsb; + unsigned char initial_countdown_msb; + unsigned char present_countdown_lsb; + unsigned char present_countdown_msb; +} __attribute__ ((packed)); + #endif /*IPMI_MC_H */