Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mv64x60_wdt.c File Reference
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/watchdog.h>
#include <linux/platform_device.h>
#include <linux/mv643xx.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 MV64x60_WDT_WDC_OFFSET   0
 
#define MV64x60_WDC_ENABLE_SHIFT   24
 
#define MV64x60_WDC_SERVICE_SHIFT   26
 
#define MV64x60_WDC_ENABLED_SHIFT   31
 
#define MV64x60_WDC_ENABLED_TRUE   1
 
#define MV64x60_WDC_ENABLED_FALSE   0
 
#define MV64x60_WDOG_FLAG_OPENED   0
 

Functions

 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (mv64x60_wdt_init)
 
 module_exit (mv64x60_wdt_exit)
 
 MODULE_AUTHOR ("James Chapman <[email protected]>")
 
 MODULE_DESCRIPTION ("MV64x60 watchdog driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 MODULE_ALIAS ("platform:"MV64x60_WDT_NAME)
 

Macro Definition Documentation

#define MV64x60_WDC_ENABLE_SHIFT   24

Definition at line 44 of file mv64x60_wdt.c.

#define MV64x60_WDC_ENABLED_FALSE   0

Definition at line 49 of file mv64x60_wdt.c.

#define MV64x60_WDC_ENABLED_SHIFT   31

Definition at line 46 of file mv64x60_wdt.c.

#define MV64x60_WDC_ENABLED_TRUE   1

Definition at line 48 of file mv64x60_wdt.c.

#define MV64x60_WDC_SERVICE_SHIFT   26

Definition at line 45 of file mv64x60_wdt.c.

#define MV64x60_WDOG_FLAG_OPENED   0

Definition at line 52 of file mv64x60_wdt.c.

#define MV64x60_WDT_WDC_OFFSET   0

Definition at line 31 of file mv64x60_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file mv64x60_wdt.c.

Function Documentation

MODULE_ALIAS ( "platform:"  MV64x60_WDT_NAME)
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "James Chapman <[email protected]>"  )
MODULE_DESCRIPTION ( "MV64x60 watchdog driver )
module_exit ( mv64x60_wdt_exit  )
module_init ( mv64x60_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)