Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
scx200_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/fs.h>
#include <linux/ioport.h>
#include <linux/scx200.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 DEBUG
 
#define W_ENABLE   0x00fa /* Enable watchdog */
 
#define W_DISABLE   0x0000 /* Disable watchdog */
 
#define W_SCALE   (32768/1024)
 

Functions

 MODULE_AUTHOR ("Christer Weinigel <[email protected]>")
 
 MODULE_DESCRIPTION ("NatSemi SCx200 Watchdog Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (margin, int, 0)
 
 MODULE_PARM_DESC (margin,"Watchdog margin in seconds")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Disable watchdog shutdown on close")
 
 module_init (scx200_wdt_init)
 
 module_exit (scx200_wdt_cleanup)
 

Macro Definition Documentation

#define DEBUG

Definition at line 35 of file scx200_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file scx200_wdt.c.

#define W_DISABLE   0x0000 /* Disable watchdog */

Definition at line 57 of file scx200_wdt.c.

#define W_ENABLE   0x00fa /* Enable watchdog */

Definition at line 56 of file scx200_wdt.c.

#define W_SCALE   (32768/1024)

Definition at line 60 of file scx200_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Christer Weinigel <[email protected]>"  )
MODULE_DESCRIPTION ( "NatSemi SCx200 Watchdog Driver"  )
module_exit ( scx200_wdt_cleanup  )
module_init ( scx200_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( margin  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( margin  ,
"Watchdog margin in seconds  
)
MODULE_PARM_DESC ( nowayout  ,
"Disable watchdog shutdown on close"   
)