Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpu5wdt.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/miscdevice.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/timer.h>
#include <linux/completion.h>
#include <linux/jiffies.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <linux/watchdog.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define PFX   "cpu5wdt: "
 
#define CPU5WDT_EXTENT   0x0A
 
#define CPU5WDT_STATUS_REG   0x00
 
#define CPU5WDT_TIME_A_REG   0x02
 
#define CPU5WDT_TIME_B_REG   0x03
 
#define CPU5WDT_MODE_REG   0x04
 
#define CPU5WDT_TRIGGER_REG   0x07
 
#define CPU5WDT_ENABLE_REG   0x08
 
#define CPU5WDT_RESET_REG   0x09
 
#define CPU5WDT_INTERVAL   (HZ/10+1)
 

Functions

 module_init (cpu5wdt_init_module)
 
 module_exit (cpu5wdt_exit_module)
 
 MODULE_AUTHOR ("Heiko Ronsdorf <[email protected]>")
 
 MODULE_DESCRIPTION ("sma cpu5 watchdog driver")
 
 MODULE_SUPPORTED_DEVICE ("sma cpu5 watchdog")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (port, int, 0)
 
 MODULE_PARM_DESC (port,"base address of watchdog card, default is 0x91")
 
 module_param (verbose, int, 0)
 
 MODULE_PARM_DESC (verbose,"be verbose, default is 0 (no)")
 
 module_param (ticks, int, 0)
 
 MODULE_PARM_DESC (ticks,"count down ticks, default is 10000")
 

Macro Definition Documentation

#define CPU5WDT_ENABLE_REG   0x08

Definition at line 55 of file cpu5wdt.c.

#define CPU5WDT_EXTENT   0x0A

Definition at line 48 of file cpu5wdt.c.

#define CPU5WDT_INTERVAL   (HZ/10+1)

Definition at line 58 of file cpu5wdt.c.

#define CPU5WDT_MODE_REG   0x04

Definition at line 53 of file cpu5wdt.c.

#define CPU5WDT_RESET_REG   0x09

Definition at line 56 of file cpu5wdt.c.

#define CPU5WDT_STATUS_REG   0x00

Definition at line 50 of file cpu5wdt.c.

#define CPU5WDT_TIME_A_REG   0x02

Definition at line 51 of file cpu5wdt.c.

#define CPU5WDT_TIME_B_REG   0x03

Definition at line 52 of file cpu5wdt.c.

#define CPU5WDT_TRIGGER_REG   0x07

Definition at line 54 of file cpu5wdt.c.

#define PFX   "cpu5wdt: "

Definition at line 46 of file cpu5wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 22 of file cpu5wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Heiko Ronsdorf <[email protected]>"  )
MODULE_DESCRIPTION ( "sma cpu5 watchdog driver )
module_exit ( cpu5wdt_exit_module  )
module_init ( cpu5wdt_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( port  ,
int  ,
 
)
module_param ( verbose  ,
int  ,
 
)
module_param ( ticks  ,
int  ,
 
)
MODULE_PARM_DESC ( port  ,
"base address of watchdog  card,
default is 0x91"   
)
MODULE_PARM_DESC ( verbose  ,
"be  verbose,
default is 0(no)"   
)
MODULE_PARM_DESC ( ticks  ,
"count down  ticks,
default is 10000"   
)
MODULE_SUPPORTED_DEVICE ( "sma cpu5 watchdog )

Variable Documentation

int default_ticks

Definition at line 67 of file cpu5wdt.c.

unsigned long inuse

Definition at line 68 of file cpu5wdt.c.

Definition at line 66 of file cpu5wdt.c.

int running

Definition at line 64 of file cpu5wdt.c.

Definition at line 63 of file cpu5wdt.c.

Definition at line 65 of file cpu5wdt.c.