Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ar7_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/clk.h>
#include <asm/addrspace.h>
#include <asm/mach-ar7/ar7.h>

Go to the source code of this file.

Data Structures

struct  ar7_wdt
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define LONGNAME   "TI AR7 Watchdog Timer"
 
#define READ_REG(x)   readl((void __iomem *)&(x))
 
#define WRITE_REG(x, v)   writel((v), (void __iomem *)&(x))
 
#define prescale_value   0xffff
 

Functions

 MODULE_AUTHOR ("Nicolas Thill <[email protected]>")
 
 MODULE_DESCRIPTION (LONGNAME)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (margin, int, 0)
 
 MODULE_PARM_DESC (margin,"Watchdog margin in seconds")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Disable watchdog shutdown on close")
 
 module_platform_driver (ar7_wdt_driver)
 

Macro Definition Documentation

#define LONGNAME   "TI AR7 Watchdog Timer"

Definition at line 44 of file ar7_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 26 of file ar7_wdt.c.

#define prescale_value   0xffff

Definition at line 78 of file ar7_wdt.c.

#define READ_REG (   x)    readl((void __iomem *)&(x))

Definition at line 59 of file ar7_wdt.c.

#define WRITE_REG (   x,
  v 
)    writel((v), (void __iomem *)&(x))

Definition at line 60 of file ar7_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Nicolas Thill <[email protected]>"  )
MODULE_DESCRIPTION ( LONGNAME  )
MODULE_LICENSE ( "GPL"  )
module_param ( margin  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( margin  ,
"Watchdog margin in seconds  
)
MODULE_PARM_DESC ( nowayout  ,
"Disable watchdog shutdown on close"   
)
module_platform_driver ( ar7_wdt_driver  )