Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
nuc900_wdt.c File Reference
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/watchdog.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  nuc900_wdt
 

Macros

#define REG_WTCR   0x1c
 
#define WTCLK   (0x01 << 10)
 
#define WTE   (0x01 << 7) /*wdt enable*/
 
#define WTIS   (0x03 << 4)
 
#define WTIF   (0x01 << 3)
 
#define WTRF   (0x01 << 2)
 
#define WTRE   (0x01 << 1)
 
#define WTR   (0x01 << 0)
 
#define WDT_HW_TIMEOUT   0x02
 
#define WDT_TIMEOUT   (HZ/2)
 
#define WDT_HEARTBEAT   15
 

Functions

 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeats in seconds. ""(default = "__MODULE_STRING(WDT_HEARTBEAT)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_platform_driver (nuc900wdt_driver)
 
 MODULE_AUTHOR ("Wan ZongShun <[email protected]>")
 
 MODULE_DESCRIPTION ("Watchdog driver for NUC900")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 MODULE_ALIAS ("platform:nuc900-wdt")
 

Macro Definition Documentation

#define REG_WTCR   0x1c

Definition at line 29 of file nuc900_wdt.c.

#define WDT_HEARTBEAT   15

Definition at line 51 of file nuc900_wdt.c.

#define WDT_HW_TIMEOUT   0x02

Definition at line 49 of file nuc900_wdt.c.

#define WDT_TIMEOUT   (HZ/2)

Definition at line 50 of file nuc900_wdt.c.

#define WTCLK   (0x01 << 10)

Definition at line 30 of file nuc900_wdt.c.

#define WTE   (0x01 << 7) /*wdt enable*/

Definition at line 31 of file nuc900_wdt.c.

#define WTIF   (0x01 << 3)

Definition at line 33 of file nuc900_wdt.c.

#define WTIS   (0x03 << 4)

Definition at line 32 of file nuc900_wdt.c.

#define WTR   (0x01 << 0)

Definition at line 36 of file nuc900_wdt.c.

#define WTRE   (0x01 << 1)

Definition at line 35 of file nuc900_wdt.c.

#define WTRF   (0x01 << 2)

Definition at line 34 of file nuc900_wdt.c.

Function Documentation

MODULE_ALIAS ( "platform:nuc900-wdt"  )
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Wan ZongShun <[email protected]>"  )
MODULE_DESCRIPTION ( "Watchdog driver for NUC900"  )
MODULE_LICENSE ( "GPL"  )
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeats in seconds. ""(default = "__MODULE_STRING(WDT_HEARTBEAT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
module_platform_driver ( nuc900wdt_driver  )