#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/uaccess.h>
#include <linux/io.h>
Go to the source code of this file.
|
| module_param (timeout, int, 0) |
|
| MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds (15..7635), 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 (w83977f_wdt_init) |
|
| module_exit (w83977f_wdt_exit) |
|
| MODULE_AUTHOR ("Jose Goncalves <[email protected]>") |
|
| MODULE_DESCRIPTION ("Driver for watchdog timer in W83977F I/O chip") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
#define DEVICE_REGISTER 0x07 |
#define IO_INDEX_PORT 0x3F0 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define WATCHDOG_NAME "W83977F WDT" |
#define WATCHDOG_VERSION "1.00" |
module_exit |
( |
w83977f_wdt_exit |
| ) |
|
module_init |
( |
w83977f_wdt_init |
| ) |
|
module_param |
( |
testmode |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
testmode |
, |
|
|
"Watchdog testmode |
1 = no reboot |
|
) |
| |