Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
wafer5823wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.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   "Wafer 5823 WDT"
 
#define PFX   WATCHDOG_NAME ": "
 
#define WD_TIMO   60 /* 60 sec default timeout */
 

Functions

 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. 1 <= timeout <= 255, default="__MODULE_STRING(WD_TIMO)".")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (wafwdt_init)
 
 module_exit (wafwdt_exit)
 
 MODULE_AUTHOR ("Justin Cormack")
 
 MODULE_DESCRIPTION ("ICP Wafer 5823 Single Board Computer WDT driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define PFX   WATCHDOG_NAME ": "

Definition at line 45 of file wafer5823wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file wafer5823wdt.c.

#define WATCHDOG_NAME   "Wafer 5823 WDT"

Definition at line 44 of file wafer5823wdt.c.

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

Definition at line 46 of file wafer5823wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Justin Cormack"  )
MODULE_DESCRIPTION ( "ICP Wafer 5823 Single Board Computer WDT driver )
module_exit ( wafwdt_exit  )
module_init ( wafwdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. 1 <= timeout <=  255 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)