Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ts72xx_wdt.c File Reference
#include <linux/fs.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/miscdevice.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/watchdog.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Data Structures

struct  ts72xx_wdt
 

Macros

#define TS72XX_WDT_FEED_VAL   0x05
 
#define TS72XX_WDT_DEFAULT_TIMEOUT   8
 
#define TS72XX_WDT_BUSY_FLAG   1
 
#define TS72XX_WDT_EXPECT_CLOSE_FLAG   2
 

Functions

 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. ""(1 <= timeout <= 8, default="")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Disable watchdog shutdown on close")
 
 module_platform_driver (ts72xx_wdt_driver)
 
 MODULE_AUTHOR ("Mika Westerberg <[email protected]>")
 
 MODULE_DESCRIPTION ("TS-72xx SBC Watchdog")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:ts72xx-wdt")
 

Variables

struct platform_devicets72xx_wdt_pdev
 

Macro Definition Documentation

#define TS72XX_WDT_BUSY_FLAG   1

Definition at line 54 of file ts72xx_wdt.c.

#define TS72XX_WDT_DEFAULT_TIMEOUT   8

Definition at line 28 of file ts72xx_wdt.c.

#define TS72XX_WDT_EXPECT_CLOSE_FLAG   2

Definition at line 55 of file ts72xx_wdt.c.

#define TS72XX_WDT_FEED_VAL   0x05

Definition at line 27 of file ts72xx_wdt.c.

Function Documentation

MODULE_ALIAS ( "platform:ts72xx-wdt"  )
MODULE_AUTHOR ( "Mika Westerberg <[email protected]>"  )
MODULE_DESCRIPTION ( "TS-72xx SBC Watchdog"  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. ""(1 <= timeout <= 8, default="")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Disable watchdog shutdown on close"   
)
module_platform_driver ( ts72xx_wdt_driver  )

Variable Documentation

Definition at line 88 of file ts72xx_wdt.c.

struct platform_device* ts72xx_wdt_pdev

Definition at line 64 of file ts72xx_wdt.c.