diff options
author | Jordan Hargrave <jordan@cvs.openbsd.org> | 2005-11-28 23:47:43 +0000 |
---|---|---|
committer | Jordan Hargrave <jordan@cvs.openbsd.org> | 2005-11-28 23:47:43 +0000 |
commit | 6c2af509b4f560e01a139814ee7f8737439659e8 (patch) | |
tree | e91e933ad61c5d07a08124cc8a1e66dd6ef4cf4e /sys/dev/ipmivar.h | |
parent | c18da06e7fa5cd4936a1837959785e2b56331a58 (diff) |
Added ipmi watchdog code, based on esm watchdog code by dlg@
Added signextend function to cleanup conversion routine
ok marco@
Diffstat (limited to 'sys/dev/ipmivar.h')
-rw-r--r-- | sys/dev/ipmivar.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sys/dev/ipmivar.h b/sys/dev/ipmivar.h index 59051ca418a..abcc8843e07 100644 --- a/sys/dev/ipmivar.h +++ b/sys/dev/ipmivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmivar.h,v 1.6 2005/11/10 11:20:00 dlg Exp $ */ +/* $OpenBSD: ipmivar.h,v 1.7 2005/11/28 23:47:42 jordan Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -79,6 +79,8 @@ struct ipmi_softc { int sc_btseq; + int sc_wdog_period; + struct ipmi_thread *sc_thread; }; @@ -87,6 +89,25 @@ struct ipmi_thread { volatile int running; }; +#define IPMI_WDOG_MASK 0x03 +#define IPMI_WDOG_DISABLED 0x00 +#define IPMI_WDOG_REBOOT 0x01 +#define IPMI_WDOG_PWROFF 0x02 +#define IPMI_WDOG_PWRCYCLE 0x03 + +#define IPMI_WDOG_PRE_DISABLED 0x00 +#define IPMI_WDOG_PRE_SMI 0x01 +#define IPMI_WDOG_PRE_NMI 0x02 +#define IPMI_WDOG_PRE_INTERRUPT 0x03 + +struct ipmi_watchdog { + u_int8_t wdog_timer; + u_int8_t wdog_action; + u_int8_t wdog_pretimeout; + u_int8_t wdog_flags; + u_int16_t wdog_timeout; +} __packed; + void ipmi_create_thread(void *); void ipmi_poll_thread(void *); |