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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_NAME   "sch311x_wdt"
 
#define GP60   0x47
 
#define WDT_TIME_OUT   0x65
 
#define WDT_VAL   0x66
 
#define WDT_CFG   0x67
 
#define WDT_CTRL   0x68
 
#define WATCHDOG_TIMEOUT   60 /* 60 sec default timeout */
 

Functions

 module_param (force_id, ushort, 0)
 
 MODULE_PARM_DESC (force_id,"Override the detected device ID")
 
 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. 1<= timeout <=15300, default="__MODULE_STRING(WATCHDOG_TIMEOUT)".")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (sch311x_wdt_init)
 
 module_exit (sch311x_wdt_exit)
 
 MODULE_AUTHOR ("Wim Van Sebroeck <[email protected]>")
 
 MODULE_DESCRIPTION ("SMSC SCH311x WatchDog Timer Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define DRV_NAME   "sch311x_wdt"

Definition at line 41 of file sch311x_wdt.c.

#define GP60   0x47

Definition at line 44 of file sch311x_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file sch311x_wdt.c.

#define WATCHDOG_TIMEOUT   60 /* 60 sec default timeout */

Definition at line 71 of file sch311x_wdt.c.

#define WDT_CFG   0x67

Definition at line 47 of file sch311x_wdt.c.

#define WDT_CTRL   0x68

Definition at line 48 of file sch311x_wdt.c.

#define WDT_TIME_OUT   0x65

Definition at line 45 of file sch311x_wdt.c.

#define WDT_VAL   0x66

Definition at line 46 of file sch311x_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Wim Van Sebroeck <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC SCH311x WatchDog Timer Driver"  )
module_exit ( sch311x_wdt_exit  )
module_init ( sch311x_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( force_id  ,
ushort  ,
 
)
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( force_id  ,
"Override the detected device ID  
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. 1<= timeout <=  15300 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)

Variable Documentation

int boot_status

Definition at line 61 of file sch311x_wdt.c.

spinlock_t io_lock

Definition at line 63 of file sch311x_wdt.c.

unsigned short runtime_reg

Definition at line 59 of file sch311x_wdt.c.