Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
smsc37b787_wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/ioport.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/spinlock.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 SMSC_SUPPORT_MINUTES
 
#define MAX_TIMEOUT   255
 
#define UNIT_SECOND   0
 
#define UNIT_MINUTE   1
 
#define VERSION   "1.1"
 
#define IOPORT   0x3F0
 
#define IOPORT_SIZE   2
 
#define IODEV_NO   8
 

Functions

 module_init (wb_smsc_wdt_init)
 
 module_exit (wb_smsc_wdt_exit)
 
 MODULE_AUTHOR ("Sven Anders <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for SMsC 37B787 watchdog component (Version "VERSION")")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (unit, int, 0)
 
 MODULE_PARM_DESC (unit,"set unit to use, 0=seconds or 1=minutes, default is 0")
 
 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"range is 1-255 units, default is 60")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 

Macro Definition Documentation

#define IODEV_NO   8

Definition at line 78 of file smsc37b787_wdt.c.

#define IOPORT   0x3F0

Definition at line 76 of file smsc37b787_wdt.c.

#define IOPORT_SIZE   2

Definition at line 77 of file smsc37b787_wdt.c.

#define MAX_TIMEOUT   255

Definition at line 69 of file smsc37b787_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 46 of file smsc37b787_wdt.c.

#define SMSC_SUPPORT_MINUTES

Definition at line 66 of file smsc37b787_wdt.c.

#define UNIT_MINUTE   1

Definition at line 72 of file smsc37b787_wdt.c.

#define UNIT_SECOND   0

Definition at line 71 of file smsc37b787_wdt.c.

#define VERSION   "1.1"

Definition at line 74 of file smsc37b787_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Sven Anders <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for SMsC 37B787 watchdog component (Version "VERSION")"  )
module_exit ( wb_smsc_wdt_exit  )
module_init ( wb_smsc_wdt_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( unit  ,
int  ,
 
)
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( unit  ,
"set unit to  use,
= seconds or 1=minutes,
default is 0"   
)
MODULE_PARM_DESC ( timeout  ,
"range is 1-255  units,
default is 60"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)