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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SBC8360_ENABLE   0x120
 
#define SBC8360_BASETIME   0x121
 

Functions

 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Index into timeout table (0-63) (default=27 (60s))")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (sbc8360_init)
 
 module_exit (sbc8360_exit)
 
 MODULE_AUTHOR ("Ian E. Morgan <imorgan@webcon.ca>")
 
 MODULE_DESCRIPTION ("SBC8360 watchdog driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("1.01")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 39 of file sbc8360.c.

#define SBC8360_BASETIME   0x121

Definition at line 194 of file sbc8360.c.

#define SBC8360_ENABLE   0x120

Definition at line 193 of file sbc8360.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Ian E. Morgan <imorgan@webcon.ca>"  )
MODULE_DESCRIPTION ( "SBC8360 watchdog driver )
module_exit ( sbc8360_exit  )
module_init ( sbc8360_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Index into timeout table (0-63) (default=27 (60s))"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
MODULE_VERSION ( "1.01"  )