Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ixp4xx_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/uaccess.h>
#include <mach/hardware.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define WDT_TICK_RATE   (IXP4XX_PERIPHERAL_BUS_CLOCK * 1000000UL)
 
#define WDT_IN_USE   0
 
#define WDT_OK_TO_CLOSE   1
 

Functions

 module_init (ixp4xx_wdt_init)
 
 module_exit (ixp4xx_wdt_exit)
 
 MODULE_AUTHOR ("Deepak Saxena <[email protected]>")
 
 MODULE_DESCRIPTION ("IXP4xx Network Processor Watchdog")
 
 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds (default 60s)")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 16 of file ixp4xx_wdt.c.

#define WDT_IN_USE   0

Definition at line 38 of file ixp4xx_wdt.c.

#define WDT_OK_TO_CLOSE   1

Definition at line 39 of file ixp4xx_wdt.c.

#define WDT_TICK_RATE   (IXP4XX_PERIPHERAL_BUS_CLOCK * 1000000UL)

Definition at line 36 of file ixp4xx_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Deepak Saxena <[email protected]>"  )
MODULE_DESCRIPTION ( "IXP4xx Network Processor Watchdog"  )
module_exit ( ixp4xx_wdt_exit  )
module_init ( ixp4xx_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeat in seconds (default 60s)"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started  
)