Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
watchdog.h File Reference
#include <linux/ioctl.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  watchdog_info
 

Macros

#define WATCHDOG_IOCTL_BASE   'W'
 
#define WDIOC_GETSUPPORT   _IOR(WATCHDOG_IOCTL_BASE, 0, struct watchdog_info)
 
#define WDIOC_GETSTATUS   _IOR(WATCHDOG_IOCTL_BASE, 1, int)
 
#define WDIOC_GETBOOTSTATUS   _IOR(WATCHDOG_IOCTL_BASE, 2, int)
 
#define WDIOC_GETTEMP   _IOR(WATCHDOG_IOCTL_BASE, 3, int)
 
#define WDIOC_SETOPTIONS   _IOR(WATCHDOG_IOCTL_BASE, 4, int)
 
#define WDIOC_KEEPALIVE   _IOR(WATCHDOG_IOCTL_BASE, 5, int)
 
#define WDIOC_SETTIMEOUT   _IOWR(WATCHDOG_IOCTL_BASE, 6, int)
 
#define WDIOC_GETTIMEOUT   _IOR(WATCHDOG_IOCTL_BASE, 7, int)
 
#define WDIOC_SETPRETIMEOUT   _IOWR(WATCHDOG_IOCTL_BASE, 8, int)
 
#define WDIOC_GETPRETIMEOUT   _IOR(WATCHDOG_IOCTL_BASE, 9, int)
 
#define WDIOC_GETTIMELEFT   _IOR(WATCHDOG_IOCTL_BASE, 10, int)
 
#define WDIOF_UNKNOWN   -1 /* Unknown flag error */
 
#define WDIOS_UNKNOWN   -1 /* Unknown status error */
 
#define WDIOF_OVERHEAT   0x0001 /* Reset due to CPU overheat */
 
#define WDIOF_FANFAULT   0x0002 /* Fan failed */
 
#define WDIOF_EXTERN1   0x0004 /* External relay 1 */
 
#define WDIOF_EXTERN2   0x0008 /* External relay 2 */
 
#define WDIOF_POWERUNDER   0x0010 /* Power bad/power fault */
 
#define WDIOF_CARDRESET   0x0020 /* Card previously reset the CPU */
 
#define WDIOF_POWEROVER   0x0040 /* Power over voltage */
 
#define WDIOF_SETTIMEOUT   0x0080 /* Set timeout (in seconds) */
 
#define WDIOF_MAGICCLOSE   0x0100 /* Supports magic close char */
 
#define WDIOF_PRETIMEOUT   0x0200 /* Pretimeout (in seconds), get/set */
 
#define WDIOF_ALARMONLY
 
#define WDIOF_KEEPALIVEPING   0x8000 /* Keep alive ping reply */
 
#define WDIOS_DISABLECARD   0x0001 /* Turn off the watchdog timer */
 
#define WDIOS_ENABLECARD   0x0002 /* Turn on the watchdog timer */
 
#define WDIOS_TEMPPANIC   0x0004 /* Kernel panic on temperature trip */
 

Macro Definition Documentation

#define WATCHDOG_IOCTL_BASE   'W'

Definition at line 15 of file watchdog.h.

#define WDIOC_GETBOOTSTATUS   _IOR(WATCHDOG_IOCTL_BASE, 2, int)

Definition at line 25 of file watchdog.h.

#define WDIOC_GETPRETIMEOUT   _IOR(WATCHDOG_IOCTL_BASE, 9, int)

Definition at line 32 of file watchdog.h.

#define WDIOC_GETSTATUS   _IOR(WATCHDOG_IOCTL_BASE, 1, int)

Definition at line 24 of file watchdog.h.

#define WDIOC_GETSUPPORT   _IOR(WATCHDOG_IOCTL_BASE, 0, struct watchdog_info)

Definition at line 23 of file watchdog.h.

#define WDIOC_GETTEMP   _IOR(WATCHDOG_IOCTL_BASE, 3, int)

Definition at line 26 of file watchdog.h.

#define WDIOC_GETTIMELEFT   _IOR(WATCHDOG_IOCTL_BASE, 10, int)

Definition at line 33 of file watchdog.h.

#define WDIOC_GETTIMEOUT   _IOR(WATCHDOG_IOCTL_BASE, 7, int)

Definition at line 30 of file watchdog.h.

#define WDIOC_KEEPALIVE   _IOR(WATCHDOG_IOCTL_BASE, 5, int)

Definition at line 28 of file watchdog.h.

#define WDIOC_SETOPTIONS   _IOR(WATCHDOG_IOCTL_BASE, 4, int)

Definition at line 27 of file watchdog.h.

#define WDIOC_SETPRETIMEOUT   _IOWR(WATCHDOG_IOCTL_BASE, 8, int)

Definition at line 31 of file watchdog.h.

#define WDIOC_SETTIMEOUT   _IOWR(WATCHDOG_IOCTL_BASE, 6, int)

Definition at line 29 of file watchdog.h.

#define WDIOF_ALARMONLY
Value:
0x0400 /* Watchdog triggers a management or
other external alarm not a reboot */

Definition at line 48 of file watchdog.h.

#define WDIOF_CARDRESET   0x0020 /* Card previously reset the CPU */

Definition at line 43 of file watchdog.h.

#define WDIOF_EXTERN1   0x0004 /* External relay 1 */

Definition at line 40 of file watchdog.h.

#define WDIOF_EXTERN2   0x0008 /* External relay 2 */

Definition at line 41 of file watchdog.h.

#define WDIOF_FANFAULT   0x0002 /* Fan failed */

Definition at line 39 of file watchdog.h.

#define WDIOF_KEEPALIVEPING   0x8000 /* Keep alive ping reply */

Definition at line 49 of file watchdog.h.

#define WDIOF_MAGICCLOSE   0x0100 /* Supports magic close char */

Definition at line 46 of file watchdog.h.

#define WDIOF_OVERHEAT   0x0001 /* Reset due to CPU overheat */

Definition at line 38 of file watchdog.h.

#define WDIOF_POWEROVER   0x0040 /* Power over voltage */

Definition at line 44 of file watchdog.h.

#define WDIOF_POWERUNDER   0x0010 /* Power bad/power fault */

Definition at line 42 of file watchdog.h.

#define WDIOF_PRETIMEOUT   0x0200 /* Pretimeout (in seconds), get/set */

Definition at line 47 of file watchdog.h.

#define WDIOF_SETTIMEOUT   0x0080 /* Set timeout (in seconds) */

Definition at line 45 of file watchdog.h.

#define WDIOF_UNKNOWN   -1 /* Unknown flag error */

Definition at line 35 of file watchdog.h.

#define WDIOS_DISABLECARD   0x0001 /* Turn off the watchdog timer */

Definition at line 51 of file watchdog.h.

#define WDIOS_ENABLECARD   0x0002 /* Turn on the watchdog timer */

Definition at line 52 of file watchdog.h.

#define WDIOS_TEMPPANIC   0x0004 /* Kernel panic on temperature trip */

Definition at line 53 of file watchdog.h.

#define WDIOS_UNKNOWN   -1 /* Unknown status error */

Definition at line 36 of file watchdog.h.