Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
w83977f_wdt.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/uaccess.h>
#include <linux/io.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define WATCHDOG_VERSION   "1.00"
 
#define WATCHDOG_NAME   "W83977F WDT"
 
#define IO_INDEX_PORT   0x3F0
 
#define IO_DATA_PORT   (IO_INDEX_PORT+1)
 
#define UNLOCK_DATA   0x87
 
#define LOCK_DATA   0xAA
 
#define DEVICE_REGISTER   0x07
 
#define DEFAULT_TIMEOUT   45 /* default timeout in seconds */
 

Functions

 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds (15..7635), 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 (w83977f_wdt_init)
 
 module_exit (w83977f_wdt_exit)
 
 MODULE_AUTHOR ("Jose Goncalves <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for watchdog timer in W83977F I/O chip")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

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

Definition at line 45 of file w83977f_wdt.c.

#define DEVICE_REGISTER   0x07

Definition at line 43 of file w83977f_wdt.c.

#define IO_DATA_PORT   (IO_INDEX_PORT+1)

Definition at line 39 of file w83977f_wdt.c.

#define IO_INDEX_PORT   0x3F0

Definition at line 38 of file w83977f_wdt.c.

#define LOCK_DATA   0xAA

Definition at line 42 of file w83977f_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file w83977f_wdt.c.

#define UNLOCK_DATA   0x87

Definition at line 41 of file w83977f_wdt.c.

#define WATCHDOG_NAME   "W83977F WDT"

Definition at line 36 of file w83977f_wdt.c.

#define WATCHDOG_VERSION   "1.00"

Definition at line 35 of file w83977f_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Jose Goncalves <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for watchdog timer in W83977F I/O chip )
module_exit ( w83977f_wdt_exit  )
module_init ( w83977f_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_param ( testmode  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds   15..7635,
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)")"   
)