#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.
|
| 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") |
|
#define CPU5WDT_ENABLE_REG 0x08 |
#define CPU5WDT_EXTENT 0x0A |
#define CPU5WDT_INTERVAL (HZ/10+1) |
#define CPU5WDT_MODE_REG 0x04 |
#define CPU5WDT_RESET_REG 0x09 |
#define CPU5WDT_STATUS_REG 0x00 |
#define CPU5WDT_TIME_A_REG 0x02 |
#define CPU5WDT_TIME_B_REG 0x03 |
#define CPU5WDT_TRIGGER_REG 0x07 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
module_exit |
( |
cpu5wdt_exit_module |
| ) |
|
module_init |
( |
cpu5wdt_init_module |
| ) |
|
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" |
| ) |
|