Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.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/spinlock.h>
#include <linux/io.h>
#include <linux/uaccess.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | WATCHDOG_NAME "w83697ug/uf WDT" |
#define | WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */ |
#define | WDT_EFER (wdt_io+0) /* Extended Function Enable Registers */ |
#define | WDT_EFIR |
#define | WDT_EFDR (WDT_EFIR+1) /* Extended Function Data Register */ |
Functions | |
module_param (wdt_io, int, 0) | |
MODULE_PARM_DESC (wdt_io,"w83697ug/uf WDT io port (default 0x2e)") | |
module_param (timeout, int, 0) | |
MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. 1<= timeout <=255 (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 (wdt_init) | |
module_exit (wdt_exit) | |
MODULE_LICENSE ("GPL") | |
MODULE_AUTHOR ("Flemming Frandsen <[email protected]>") | |
MODULE_DESCRIPTION ("w83697ug/uf WDT driver") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
Definition at line 33 of file w83697ug_wdt.c.
#define WATCHDOG_NAME "w83697ug/uf WDT" |
Definition at line 50 of file w83697ug_wdt.c.
Definition at line 51 of file w83697ug_wdt.c.
Definition at line 79 of file w83697ug_wdt.c.
#define WDT_EFER (wdt_io+0) /* Extended Function Enable Registers */ |
Definition at line 77 of file w83697ug_wdt.c.
#define WDT_EFIR |
Definition at line 78 of file w83697ug_wdt.c.
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "Flemming Frandsen <[email protected]>" | ) |
module_exit | ( | wdt_exit | ) |
module_init | ( | wdt_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | wdt_io | , |
int | , | ||
0 | |||
) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | timeout | , |
"Watchdog timeout in seconds. 1<= timeout <=255 (default="__MODULE_STRING(WATCHDOG_TIMEOUT)")" | |||
) |
MODULE_PARM_DESC | ( | nowayout | , |
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
) |