Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ath79_wdt.c File Reference
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/ar71xx_regs.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRIVER_NAME   "ath79-wdt"
 
#define WDT_TIMEOUT   15 /* seconds */
 
#define WDOG_CTRL_LAST_RESET   BIT(31)
 
#define WDOG_CTRL_ACTION_MASK   3
 
#define WDOG_CTRL_ACTION_NONE   0 /* no action */
 
#define WDOG_CTRL_ACTION_GPI   1 /* general purpose interrupt */
 
#define WDOG_CTRL_ACTION_NMI   2 /* NMI */
 
#define WDOG_CTRL_ACTION_FCR   3 /* full chip reset */
 
#define WDT_FLAGS_BUSY   0
 
#define WDT_FLAGS_EXPECT_CLOSE   1
 

Functions

 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds ""(default="__MODULE_STRING(WDT_TIMEOUT)"s)")
 
 module_init (ath79_wdt_init)
 
 module_exit (ath79_wdt_exit)
 
 MODULE_DESCRIPTION ("Atheros AR71XX/AR724X/AR913X hardware watchdog driver")
 
 MODULE_AUTHOR ("Gabor Juhos <[email protected]")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:"DRIVER_NAME)
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define DRIVER_NAME   "ath79-wdt"

Definition at line 39 of file ath79_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file ath79_wdt.c.

#define WDOG_CTRL_ACTION_FCR   3 /* full chip reset */

Definition at line 48 of file ath79_wdt.c.

#define WDOG_CTRL_ACTION_GPI   1 /* general purpose interrupt */

Definition at line 46 of file ath79_wdt.c.

#define WDOG_CTRL_ACTION_MASK   3

Definition at line 44 of file ath79_wdt.c.

#define WDOG_CTRL_ACTION_NMI   2 /* NMI */

Definition at line 47 of file ath79_wdt.c.

#define WDOG_CTRL_ACTION_NONE   0 /* no action */

Definition at line 45 of file ath79_wdt.c.

#define WDOG_CTRL_LAST_RESET   BIT(31)

Definition at line 43 of file ath79_wdt.c.

#define WDT_FLAGS_BUSY   0

Definition at line 62 of file ath79_wdt.c.

#define WDT_FLAGS_EXPECT_CLOSE   1

Definition at line 63 of file ath79_wdt.c.

#define WDT_TIMEOUT   15 /* seconds */

Definition at line 41 of file ath79_wdt.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRIVER_NAME)
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( )
MODULE_DESCRIPTION ( "Atheros AR71XX/AR724X/AR913X hardware watchdog driver )
module_exit ( ath79_wdt_exit  )
module_init ( ath79_wdt_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( nowayout  ,
bool  ,
 
)
module_param ( timeout  ,
int  ,
 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds ""(default="__MODULE_STRING(WDT_TIMEOUT)"s)"   
)