#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/ioport.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/uaccess.h>
Go to the source code of this file.
|
| | module_param (wdt_stop, int, 0) |
| |
| | MODULE_PARM_DESC (wdt_stop,"SBC60xx WDT 'stop' io port (default 0x45)") |
| |
| | module_param (wdt_start, int, 0) |
| |
| | MODULE_PARM_DESC (wdt_start,"SBC60xx WDT 'start' io port (default 0x443)") |
| |
| | module_param (timeout, int, 0) |
| |
| | MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. (1<=timeout<=3600, default="__MODULE_STRING(WATCHDOG_TIMEOUT)")") |
| |
| | module_param (nowayout, bool, 0) |
| |
| | MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
| |
| | module_init (sbc60xxwdt_init) |
| |
| | module_exit (sbc60xxwdt_unload) |
| |
| | MODULE_AUTHOR ("Jakob Oestergaard <[email protected]>") |
| |
| | MODULE_DESCRIPTION ("60xx Single Board Computer Watchdog Timer driver") |
| |
| | MODULE_LICENSE ("GPL") |
| |
| | MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
| |
| #define OUR_NAME "sbc60xxwdt" |
| #define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
| #define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ |
| #define WDT_INTERVAL (HZ/4+1) |
| MODULE_DESCRIPTION |
( |
"60xx Single Board Computer Watchdog Timer driver" |
| ) |
|
| module_exit |
( |
sbc60xxwdt_unload |
| ) |
|
| module_init |
( |
sbc60xxwdt_init |
| ) |
|
| module_param |
( |
wdt_stop |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
| module_param |
( |
wdt_start |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
| module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
wdt_stop |
, |
|
|
"SBC60xx WDT 'stop' io port (default 0x45)" |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
wdt_start |
, |
|
|
"SBC60xx WDT 'start' io port (default 0x443)" |
|
|
) |
| |