Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
max63xx_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/watchdog.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  max63xx_timeout
 

Macros

#define DEFAULT_HEARTBEAT   60
 
#define MAX_HEARTBEAT   60
 
#define MAX6369_WDSET   (7 << 0)
 
#define MAX6369_WDI   (1 << 3)
 

Functions

 MODULE_DEVICE_TABLE (platform, max63xx_id_table)
 
 module_platform_driver (max63xx_wdt_driver)
 
 MODULE_AUTHOR ("Marc Zyngier <[email protected]>")
 
 MODULE_DESCRIPTION ("max63xx Watchdog Driver")
 
 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat period in seconds from 1 to "__MODULE_STRING(MAX_HEARTBEAT)", default "__MODULE_STRING(DEFAULT_HEARTBEAT))
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_param (nodelay, int, 0)
 
 MODULE_PARM_DESC (nodelay,"Force selection of a timeout setting without initial delay ""(max6373/74 only, default=0)")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define DEFAULT_HEARTBEAT   60

Definition at line 30 of file max63xx_wdt.c.

#define MAX6369_WDI   (1 << 3)

Definition at line 41 of file max63xx_wdt.c.

#define MAX6369_WDSET   (7 << 0)

Definition at line 40 of file max63xx_wdt.c.

#define MAX_HEARTBEAT   60

Definition at line 31 of file max63xx_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Marc Zyngier <[email protected]>"  )
MODULE_DESCRIPTION ( "max63xx Watchdog Driver"  )
MODULE_DEVICE_TABLE ( platform  ,
max63xx_id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
module_param ( nodelay  ,
int  ,
 
)
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeat period in seconds from 1 to "__MODULE_STRING(MAX_HEARTBEAT)"  ,
default"  __MODULE_STRINGDEFAULT_HEARTBEAT 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_PARM_DESC ( nodelay  ,
"Force selection of a timeout setting without initial delay ""(max6373/74 only, default=0)"   
)
module_platform_driver ( max63xx_wdt_driver  )