Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
orion_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/spinlock.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/of.h>
#include <mach/bridge-regs.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define TIMER_CTRL   0x0000
 
#define WDT_EN   0x0010
 
#define WDT_VAL   0x0024
 
#define WDT_MAX_CYCLE_COUNT   0xffffffff
 
#define WDT_IN_USE   0
 
#define WDT_OK_TO_CLOSE   1
 

Functions

 MODULE_DEVICE_TABLE (of, orion_wdt_of_match_table)
 
 module_platform_driver (orion_wdt_driver)
 
 MODULE_AUTHOR ("Sylver Bruneau <[email protected]>")
 
 MODULE_DESCRIPTION ("Orion Processor Watchdog")
 
 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Initial watchdog heartbeat in seconds")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 13 of file orion_wdt.c.

#define TIMER_CTRL   0x0000

Definition at line 33 of file orion_wdt.c.

#define WDT_EN   0x0010

Definition at line 34 of file orion_wdt.c.

#define WDT_IN_USE   0

Definition at line 38 of file orion_wdt.c.

#define WDT_MAX_CYCLE_COUNT   0xffffffff

Definition at line 37 of file orion_wdt.c.

#define WDT_OK_TO_CLOSE   1

Definition at line 39 of file orion_wdt.c.

#define WDT_VAL   0x0024

Definition at line 35 of file orion_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Sylver Bruneau <[email protected]>"  )
MODULE_DESCRIPTION ( "Orion Processor Watchdog"  )
MODULE_DEVICE_TABLE ( of  ,
orion_wdt_of_match_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( heartbeat  ,
"Initial watchdog heartbeat in seconds  
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
module_platform_driver ( orion_wdt_driver  )