Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
w83697hf_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/ioport.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define WATCHDOG_NAME   "w83697hf/hg WDT"
 
#define WATCHDOG_TIMEOUT   60 /* 60 sec default timeout */
 
#define WATCHDOG_EARLY_DISABLE   1 /* Disable until userland kicks in */
 
#define W83697HF_EFER   (wdt_io + 0) /* Extended Function Enable Register */
 
#define W83697HF_EFIR
 
#define W83697HF_EFDR   (wdt_io + 1) /* Extended Function Data Register */
 

Functions

 module_param (wdt_io, int, 0)
 
 MODULE_PARM_DESC (wdt_io,"w83697hf/hg WDT io port (default 0x2e, 0 = autodetect)")
 
 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. 1<= timeout <=255 (default="__MODULE_STRING(WATCHDOG_TIMEOUT)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_param (early_disable, int, 0)
 
 MODULE_PARM_DESC (early_disable,"Watchdog gets disabled at boot time (default="__MODULE_STRING(WATCHDOG_EARLY_DISABLE)")")
 
 module_init (wdt_init)
 
 module_exit (wdt_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Marcus Junker <[email protected]>, ""Samuel Tardieu <[email protected]>")
 
 MODULE_DESCRIPTION ("w83697hf/hg WDT driver")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 28 of file w83697hf_wdt.c.

#define W83697HF_EFDR   (wdt_io + 1) /* Extended Function Data Register */

Definition at line 83 of file w83697hf_wdt.c.

#define W83697HF_EFER   (wdt_io + 0) /* Extended Function Enable Register */

Definition at line 81 of file w83697hf_wdt.c.

#define W83697HF_EFIR
Value:
(wdt_io + 0) /* Extended Function Index Register
(same as EFER) */

Definition at line 82 of file w83697hf_wdt.c.

#define WATCHDOG_EARLY_DISABLE   1 /* Disable until userland kicks in */

Definition at line 47 of file w83697hf_wdt.c.

#define WATCHDOG_NAME   "w83697hf/hg WDT"

Definition at line 45 of file w83697hf_wdt.c.

#define WATCHDOG_TIMEOUT   60 /* 60 sec default timeout */

Definition at line 46 of file w83697hf_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Marcus Junker <[email protected] ,
""Samuel Tardieu< sam @rfc1149.net >"   
)
MODULE_DESCRIPTION ( "w83697hf/hg WDT driver )
module_exit ( wdt_exit  )
module_init ( wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( wdt_io  ,
int  ,
 
)
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
module_param ( early_disable  ,
int  ,
 
)
MODULE_PARM_DESC ( wdt_io  ,
"w83697hf/hg WDT io port (default 0x2e, 0 = autodetect)"   
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. 1<= timeout <=255 (default="__MODULE_STRING(WATCHDOG_TIMEOUT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_PARM_DESC ( early_disable  ,
"Watchdog gets disabled at boot time (default="__MODULE_STRING(WATCHDOG_EARLY_DISABLE)")"   
)