#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/watchdog.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#include <asm/mach-types.h>
Go to the source code of this file.
|
| | module_param (timeout, int, 0) |
| |
| | MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds (60..15300, default="__MODULE_STRING(DEFAULT_TIMEOUT)")") |
| |
| | module_param (testmode, int, 0) |
| |
| | MODULE_PARM_DESC (testmode,"Watchdog testmode (1 = no reboot), default=0") |
| |
| | module_param (nowayout, bool, 0) |
| |
| | MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
| |
| | module_init (wd977_init) |
| |
| | module_exit (wd977_exit) |
| |
| | MODULE_AUTHOR ("Woody Suwalski <[email protected]>") |
| |
| | MODULE_DESCRIPTION ("W83977AF Watchdog driver") |
| |
| | MODULE_LICENSE ("GPL") |
| |
| | MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
| |
| #define DEVICE_REGISTER 0x07 |
| #define IO_INDEX_PORT 0x370 /* on some systems it can be 0x3F0 */ |
| #define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
| #define WATCHDOG_NAME "Wdt977" |
| #define WATCHDOG_VERSION "0.04" |
| MODULE_DESCRIPTION |
( |
"W83977AF Watchdog driver" |
| ) |
|
| module_exit |
( |
wd977_exit |
| ) |
|
| module_init |
( |
wd977_init |
| ) |
|
| module_param |
( |
testmode |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
| module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
testmode |
, |
|
|
"Watchdog testmode |
1 = no reboot |
|
) |
| |