|
Linux Kernel
3.7.1
|
#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.
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | OUR_NAME "w83877f_wdt" |
| #define | ENABLE_W83877F_PORT 0x3F0 |
| #define | ENABLE_W83877F 0x87 |
| #define | DISABLE_W83877F 0xAA |
| #define | WDT_PING 0x443 |
| #define | WDT_REGISTER 0x14 |
| #define | WDT_ENABLE 0x9C |
| #define | WDT_DISABLE 0x8C |
| #define | WDT_INTERVAL (HZ/4+1) |
| #define | WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ |
Functions | |
| 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 (w83877f_wdt_init) | |
| module_exit (w83877f_wdt_unload) | |
| MODULE_AUTHOR ("Scott and Bill Jennings") | |
| MODULE_DESCRIPTION ("Driver for watchdog timer in w83877f chip") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
| #define DISABLE_W83877F 0xAA |
Definition at line 66 of file w83877f_wdt.c.
| #define ENABLE_W83877F 0x87 |
Definition at line 65 of file w83877f_wdt.c.
| #define ENABLE_W83877F_PORT 0x3F0 |
Definition at line 64 of file w83877f_wdt.c.
| #define OUR_NAME "w83877f_wdt" |
Definition at line 62 of file w83877f_wdt.c.
Definition at line 45 of file w83877f_wdt.c.
Definition at line 85 of file w83877f_wdt.c.
| #define WDT_DISABLE 0x8C |
Definition at line 70 of file w83877f_wdt.c.
| #define WDT_ENABLE 0x9C |
Definition at line 69 of file w83877f_wdt.c.
| #define WDT_INTERVAL (HZ/4+1) |
Definition at line 77 of file w83877f_wdt.c.
| #define WDT_PING 0x443 |
Definition at line 67 of file w83877f_wdt.c.
| #define WDT_REGISTER 0x14 |
Definition at line 68 of file w83877f_wdt.c.
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_AUTHOR | ( | "Scott and Bill Jennings" | ) |
| module_exit | ( | w83877f_wdt_unload | ) |
| module_init | ( | w83877f_wdt_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | nowayout | , |
| bool | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | timeout | , |
| "Watchdog timeout in seconds. (1<=timeout<=3600, default="__MODULE_STRING(WATCHDOG_TIMEOUT)")" | |||
| ) |
| MODULE_PARM_DESC | ( | nowayout | , |
| "Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
| ) |
1.8.2