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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define WATCHDOG_VERSION   "0.04"
 
#define WATCHDOG_NAME   "Wdt977"
 
#define IO_INDEX_PORT   0x370 /* on some systems it can be 0x3F0 */
 
#define IO_DATA_PORT   (IO_INDEX_PORT + 1)
 
#define UNLOCK_DATA   0x87
 
#define LOCK_DATA   0xAA
 
#define DEVICE_REGISTER   0x07
 
#define DEFAULT_TIMEOUT   60 /* default timeout in seconds */
 

Functions

 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds (60..15300, default="__MODULE_STRING(DEFAULT_TIMEOUT)")")
 
 module_param (testmode, int, 0)
 
 MODULE_PARM_DESC (testmode,"Watchdog testmode (1 = no reboot), default=0")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (wd977_init)
 
 module_exit (wd977_exit)
 
 MODULE_AUTHOR ("Woody Suwalski <[email protected]>")
 
 MODULE_DESCRIPTION ("W83977AF Watchdog driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define DEFAULT_TIMEOUT   60 /* default timeout in seconds */

Definition at line 55 of file wdt977.c.

#define DEVICE_REGISTER   0x07

Definition at line 52 of file wdt977.c.

#define IO_DATA_PORT   (IO_INDEX_PORT + 1)

Definition at line 48 of file wdt977.c.

#define IO_INDEX_PORT   0x370 /* on some systems it can be 0x3F0 */

Definition at line 47 of file wdt977.c.

#define LOCK_DATA   0xAA

Definition at line 51 of file wdt977.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file wdt977.c.

#define UNLOCK_DATA   0x87

Definition at line 50 of file wdt977.c.

#define WATCHDOG_NAME   "Wdt977"

Definition at line 45 of file wdt977.c.

#define WATCHDOG_VERSION   "0.04"

Definition at line 44 of file wdt977.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Woody Suwalski <[email protected]>"  )
MODULE_DESCRIPTION ( "W83977AF Watchdog driver )
module_exit ( wd977_exit  )
module_init ( wd977_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_param ( testmode  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds (60..15300, default="__MODULE_STRING(DEFAULT_TIMEOUT)")"   
)
MODULE_PARM_DESC ( testmode  ,
"Watchdog testmode   1 = no reboot 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)