Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sbc60xxwdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/jiffies.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/io.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define OUR_NAME   "sbc60xxwdt"
 
#define PFX   OUR_NAME ": "
 
#define WDT_INTERVAL   (HZ/4+1)
 
#define WATCHDOG_TIMEOUT   30 /* 30 sec default timeout */
 

Functions

 module_param (wdt_stop, int, 0)
 
 MODULE_PARM_DESC (wdt_stop,"SBC60xx WDT 'stop' io port (default 0x45)")
 
 module_param (wdt_start, int, 0)
 
 MODULE_PARM_DESC (wdt_start,"SBC60xx WDT 'start' io port (default 0x443)")
 
 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. (1<=timeout<=3600, 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_init (sbc60xxwdt_init)
 
 module_exit (sbc60xxwdt_unload)
 
 MODULE_AUTHOR ("Jakob Oestergaard <[email protected]>")
 
 MODULE_DESCRIPTION ("60xx Single Board Computer Watchdog Timer driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define OUR_NAME   "sbc60xxwdt"

Definition at line 69 of file sbc60xxwdt.c.

#define PFX   OUR_NAME ": "

Definition at line 70 of file sbc60xxwdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 51 of file sbc60xxwdt.c.

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

Definition at line 101 of file sbc60xxwdt.c.

#define WDT_INTERVAL   (HZ/4+1)

Definition at line 90 of file sbc60xxwdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Jakob Oestergaard <[email protected]>"  )
MODULE_DESCRIPTION ( "60xx Single Board Computer Watchdog Timer driver"  )
module_exit ( sbc60xxwdt_unload  )
module_init ( sbc60xxwdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( wdt_stop  ,
int  ,
 
)
module_param ( wdt_start  ,
int  ,
 
)
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( wdt_stop  ,
"SBC60xx WDT 'stop' io port (default 0x45)"   
)
MODULE_PARM_DESC ( wdt_start  ,
"SBC60xx WDT 'start' io port (default 0x443)"   
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. (1<=timeout<=3600, default="__MODULE_STRING(WATCHDOG_TIMEOUT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)