Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mpc8xxx_wdt.c File Reference
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/of_platform.h>
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <sysdev/fsl_soc.h>

Go to the source code of this file.

Data Structures

struct  mpc8xxx_wdt
 
struct  mpc8xxx_wdt_type
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SWCRR_SWTC   0xFFFF0000 /* Software Watchdog Time Count. */
 
#define SWCRR_SWEN   0x00000004 /* Watchdog Enable bit. */
 
#define SWCRR_SWRI   0x00000002 /* Software Watchdog Reset/Interrupt Select bit.*/
 
#define SWCRR_SWPR   0x00000001 /* Software Watchdog Counter Prescale bit. */
 

Functions

 module_param (timeout, ushort, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in ticks. (0<timeout<65536, default=65535)")
 
 module_param (reset, bool, 0)
 
 MODULE_PARM_DESC (reset,"Watchdog Interrupt/Reset Mode. 0 = interrupt, 1 = reset")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 MODULE_DEVICE_TABLE (of, mpc8xxx_wdt_match)
 
 module_init (mpc8xxx_wdt_init_late)
 
 arch_initcall (mpc8xxx_wdt_init)
 
 module_exit (mpc8xxx_wdt_exit)
 
 MODULE_AUTHOR ("Dave Updegraff, Kumar Gala")
 
 MODULE_DESCRIPTION ("Driver for watchdog timer in MPC8xx/MPC83xx/MPC86xx ""uProcessors")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file mpc8xxx_wdt.c.

#define SWCRR_SWEN   0x00000004 /* Watchdog Enable bit. */

Definition at line 38 of file mpc8xxx_wdt.c.

#define SWCRR_SWPR   0x00000001 /* Software Watchdog Counter Prescale bit. */

Definition at line 40 of file mpc8xxx_wdt.c.

#define SWCRR_SWRI   0x00000002 /* Software Watchdog Reset/Interrupt Select bit.*/

Definition at line 39 of file mpc8xxx_wdt.c.

#define SWCRR_SWTC   0xFFFF0000 /* Software Watchdog Time Count. */

Definition at line 37 of file mpc8xxx_wdt.c.

Function Documentation

arch_initcall ( mpc8xxx_wdt_init  )
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Dave  Updegraff,
Kumar Gala"   
)
MODULE_DESCRIPTION ( "Driver for watchdog timer in MPC8xx/MPC83xx/MPC86xx ""uProcessors"  )
MODULE_DEVICE_TABLE ( of  ,
mpc8xxx_wdt_match   
)
module_exit ( mpc8xxx_wdt_exit  )
module_init ( mpc8xxx_wdt_init_late  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
ushort  ,
 
)
module_param ( reset  ,
bool  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in ticks. (0<timeout<65536, default=65535)"   
)
MODULE_PARM_DESC ( reset  ,
"Watchdog Interrupt/Reset Mode.  0 = interrupt 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)