Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bfin_wdt.c File Reference
#include <linux/platform_device.h>
#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/fs.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/uaccess.h>
#include <asm/blackfin.h>
#include <asm/bfin_watchdog.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define stamp(fmt, args...)   pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args)
 
#define stampit()   stamp("here i am")
 
#define WATCHDOG_NAME   "bfin-wdt"
 
#define WATCHDOG_TIMEOUT   20
 
#define bfin_wdt_suspend   NULL
 
#define bfin_wdt_resume   NULL
 

Functions

 module_init (bfin_wdt_init)
 
 module_exit (bfin_wdt_exit)
 
 MODULE_AUTHOR ("Michele d'Amico, Mike Frysinger <[email protected]>")
 
 MODULE_DESCRIPTION ("Blackfin Watchdog Device Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (timeout, uint, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. (1<=timeout<=((2^32)/SCLK), default="__MODULE_STRING(WATCHDOG_TIMEOUT)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 

Macro Definition Documentation

#define bfin_wdt_resume   NULL

Definition at line 328 of file bfin_wdt.c.

#define bfin_wdt_suspend   NULL

Definition at line 327 of file bfin_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 14 of file bfin_wdt.c.

#define stamp (   fmt,
  args... 
)    pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args)

Definition at line 30 of file bfin_wdt.c.

#define stampit ( )    stamp("here i am")

Definition at line 32 of file bfin_wdt.c.

#define WATCHDOG_NAME   "bfin-wdt"

Definition at line 34 of file bfin_wdt.c.

#define WATCHDOG_TIMEOUT   20

Definition at line 49 of file bfin_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Michele d Amico,
Mike Frysinger< vapier @gentoo.org >"   
)
MODULE_DESCRIPTION ( "Blackfin Watchdog Device Driver"  )
module_exit ( bfin_wdt_exit  )
module_init ( bfin_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
uint  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. (1<=timeout<=((2^32)/SCLK), default="__MODULE_STRING(WATCHDOG_TIMEOUT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)