|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/init.h>#include <linux/miscdevice.h>#include <linux/watchdog.h>#include <linux/notifier.h>#include <linux/reboot.h>#include <linux/fs.h>#include <linux/ioport.h>#include <linux/scx200.h>#include <linux/uaccess.h>#include <linux/io.h>Go to the source code of this file.
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | DEBUG |
| #define | W_ENABLE 0x00fa /* Enable watchdog */ |
| #define | W_DISABLE 0x0000 /* Disable watchdog */ |
| #define | W_SCALE (32768/1024) |
Functions | |
| MODULE_AUTHOR ("Christer Weinigel <[email protected]>") | |
| MODULE_DESCRIPTION ("NatSemi SCx200 Watchdog Driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
| module_param (margin, int, 0) | |
| MODULE_PARM_DESC (margin,"Watchdog margin in seconds") | |
| module_param (nowayout, bool, 0) | |
| MODULE_PARM_DESC (nowayout,"Disable watchdog shutdown on close") | |
| module_init (scx200_wdt_init) | |
| module_exit (scx200_wdt_cleanup) | |
| #define DEBUG |
Definition at line 35 of file scx200_wdt.c.
Definition at line 20 of file scx200_wdt.c.
| #define W_DISABLE 0x0000 /* Disable watchdog */ |
Definition at line 57 of file scx200_wdt.c.
| #define W_ENABLE 0x00fa /* Enable watchdog */ |
Definition at line 56 of file scx200_wdt.c.
| #define W_SCALE (32768/1024) |
Definition at line 60 of file scx200_wdt.c.
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_AUTHOR | ( | "Christer Weinigel <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | "NatSemi SCx200 Watchdog Driver" | ) |
| module_exit | ( | scx200_wdt_cleanup | ) |
| module_init | ( | scx200_wdt_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | margin | , |
| int | , | ||
| 0 | |||
| ) |
| module_param | ( | nowayout | , |
| bool | , | ||
| 0 | |||
| ) |
1.8.2