Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
shwdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/pm_runtime.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <asm/watchdog.h>

Go to the source code of this file.

Data Structures

struct  sh_wdt
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "sh-wdt"
 
#define next_ping_period(cks)   (jiffies + msecs_to_jiffies(cks - 4))
 
#define WATCHDOG_HEARTBEAT   30 /* 30 sec default heartbeat */
 

Functions

 module_init (sh_wdt_init)
 
 module_exit (sh_wdt_exit)
 
 MODULE_AUTHOR ("Paul Mundt <[email protected]>")
 
 MODULE_DESCRIPTION ("SuperH watchdog driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (clock_division_ratio, int, 0)
 
 MODULE_PARM_DESC (clock_division_ratio,"Clock division ratio. Valid ranges are from 0x5 (1.31ms) ""to 0x7 (5.25ms). (default="__MODULE_STRING(WTCSR_CKS_4096)")")
 
 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 

Macro Definition Documentation

#define DRV_NAME   "sh-wdt"

Definition at line 39 of file shwdt.c.

#define next_ping_period (   cks)    (jiffies + msecs_to_jiffies(cks - 4))

Definition at line 69 of file shwdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file shwdt.c.

#define WATCHDOG_HEARTBEAT   30 /* 30 sec default heartbeat */

Definition at line 71 of file shwdt.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Paul Mundt <[email protected]>"  )
MODULE_DESCRIPTION ( "SuperH watchdog driver )
module_exit ( sh_wdt_exit  )
module_init ( sh_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( clock_division_ratio  ,
int  ,
 
)
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( clock_division_ratio  ,
"Clock division ratio. Valid ranges are from 0x5 (1.31ms) ""to 0x7 (5.25ms). (default="__MODULE_STRING(WTCSR_CKS_4096)")"   
)
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeat in seconds. (1 <= heartbeat <= 3600, default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)