Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
s3c2410_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/clk.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <linux/cpufreq.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/of.h>
#include <mach/map.h>
#include <plat/regs-watchdog.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define S3C_VA_WATCHDOG   (0)
 
#define CONFIG_S3C2410_WATCHDOG_ATBOOT   (0)
 
#define CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME   (15)
 
#define DBG(fmt,...)
 
#define OPTIONS   (WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE)
 
#define s3c2410wdt_suspend   NULL
 
#define s3c2410wdt_resume   NULL
 

Functions

 module_param (tmr_margin, int, 0)
 
 module_param (tmr_atboot, int, 0)
 
 module_param (nowayout, bool, 0)
 
 module_param (soft_noboot, int, 0)
 
 module_param (debug, int, 0)
 
 MODULE_PARM_DESC (tmr_margin,"Watchdog tmr_margin in seconds. (default="__MODULE_STRING(CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME)")")
 
 MODULE_PARM_DESC (tmr_atboot,"Watchdog is started at boot time if set to 1, default="__MODULE_STRING(CONFIG_S3C2410_WATCHDOG_ATBOOT))
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 MODULE_PARM_DESC (soft_noboot,"Watchdog action, set to 1 to ignore reboots, ""0 to reboot (default 0)")
 
 MODULE_PARM_DESC (debug,"Watchdog debug, set to >1 for debug (default 0)")
 
 module_platform_driver (s3c2410wdt_driver)
 
 MODULE_AUTHOR ("Ben Dooks <[email protected]>, ""Dimitry Andric <[email protected]>")
 
 MODULE_DESCRIPTION ("S3C2410 Watchdog Device Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 MODULE_ALIAS ("platform:s3c2410-wdt")
 

Macro Definition Documentation

#define CONFIG_S3C2410_WATCHDOG_ATBOOT   (0)

Definition at line 52 of file s3c2410_wdt.c.

#define CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME   (15)

Definition at line 53 of file s3c2410_wdt.c.

#define DBG (   fmt,
  ... 
)
Value:
do { \
if (debug) \
pr_info(fmt, ##__VA_ARGS__); \
} while (0)

Definition at line 88 of file s3c2410_wdt.c.

Definition at line 210 of file s3c2410_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file s3c2410_wdt.c.

#define s3c2410wdt_resume   NULL

Definition at line 498 of file s3c2410_wdt.c.

#define s3c2410wdt_suspend   NULL

Definition at line 497 of file s3c2410_wdt.c.

#define S3C_VA_WATCHDOG   (0)

Definition at line 48 of file s3c2410_wdt.c.

Function Documentation

MODULE_ALIAS ( "platform:s3c2410-wdt"  )
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Ben Dooks <[email protected] ,
""Dimitry Andric< dimitry.andric @tomtom.com >"   
)
MODULE_DESCRIPTION ( "S3C2410 Watchdog Device Driver"  )
MODULE_LICENSE ( "GPL"  )
module_param ( tmr_margin  ,
int  ,
 
)
module_param ( tmr_atboot  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
module_param ( soft_noboot  ,
int  ,
 
)
module_param ( debug  ,
int  ,
 
)
MODULE_PARM_DESC ( tmr_margin  ,
"Watchdog tmr_margin in seconds. (default="__MODULE_STRING(CONFIG_S3C2410_WATCHDOG_DEFAULT_TIME)")"   
)
MODULE_PARM_DESC ( tmr_atboot  ,
"Watchdog is started at boot time if set to  1 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_PARM_DESC ( soft_noboot  ,
"Watchdog  action,
set to 1 to ignore  reboots,
""0 to reboot(default 0)"   
)
MODULE_PARM_DESC ( debug  ,
"Watchdog  debug,
set  to,
1 for debug(default 0)"   
)
module_platform_driver ( s3c2410wdt_driver  )