Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mpcore_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <asm/smp_twd.h>

Go to the source code of this file.

Data Structures

struct  mpcore_wdt
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define TIMER_MARGIN   60
 
#define ONLY_TESTING   0
 
#define mpcore_wdt_suspend   NULL
 
#define mpcore_wdt_resume   NULL
 

Functions

 module_param (mpcore_margin, int, 0)
 
 MODULE_PARM_DESC (mpcore_margin,"MPcore timer margin in seconds. (0 < mpcore_margin < 65536, default="__MODULE_STRING(TIMER_MARGIN)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_param (mpcore_noboot, int, 0)
 
 MODULE_PARM_DESC (mpcore_noboot,"MPcore watchdog action, ""set to 1 to ignore reboots, 0 to reboot (default="__MODULE_STRING(ONLY_TESTING)")")
 
 MODULE_ALIAS ("platform:mpcore_wdt")
 
 module_init (mpcore_wdt_init)
 
 module_exit (mpcore_wdt_exit)
 
 MODULE_AUTHOR ("ARM Limited")
 
 MODULE_DESCRIPTION ("MPcore Watchdog Device Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define mpcore_wdt_resume   NULL

Definition at line 410 of file mpcore_wdt.c.

#define mpcore_wdt_suspend   NULL

Definition at line 409 of file mpcore_wdt.c.

#define ONLY_TESTING   0

Definition at line 66 of file mpcore_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file mpcore_wdt.c.

#define TIMER_MARGIN   60

Definition at line 53 of file mpcore_wdt.c.

Function Documentation

MODULE_ALIAS ( "platform:mpcore_wdt"  )
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "ARM Limited"  )
MODULE_DESCRIPTION ( "MPcore Watchdog Device Driver"  )
module_exit ( mpcore_wdt_exit  )
module_init ( mpcore_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mpcore_margin  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
module_param ( mpcore_noboot  ,
int  ,
 
)
MODULE_PARM_DESC ( mpcore_margin  ,
"MPcore timer margin in seconds. (0 < mpcore_margin < 65536, default="__MODULE_STRING(TIMER_MARGIN)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_PARM_DESC ( mpcore_noboot  ,
"MPcore watchdog  action,
""set to 1 to ignore  reboots,
0 to reboot(default="__MODULE_STRING(ONLY_TESTING)")"   
)