|
Linux Kernel
3.7.1
|
#include <linux/fs.h>#include <linux/init.h>#include <linux/ioport.h>#include <linux/jiffies.h>#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/miscdevice.h>#include <linux/notifier.h>#include <linux/reboot.h>#include <linux/types.h>#include <linux/watchdog.h>#include <linux/io.h>#include <linux/uaccess.h>#include <linux/atomic.h>Go to the source code of this file.
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | SBC7240_ENABLE_PORT 0x443 |
| #define | SBC7240_DISABLE_PORT 0x043 |
| #define | SBC7240_SET_TIMEOUT_PORT SBC7240_ENABLE_PORT |
| #define | SBC7240_MAGIC_CHAR 'V' |
| #define | SBC7240_TIMEOUT 30 |
| #define | SBC7240_MAX_TIMEOUT 255 |
| #define | SBC7240_OPEN_STATUS_BIT 0 |
| #define | SBC7240_ENABLED_STATUS_BIT 1 |
| #define | SBC7240_EXPECT_CLOSE_STATUS_BIT 2 |
Functions | |
| module_param (timeout, int, 0) | |
| MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. (1<=timeout<="__MODULE_STRING(SBC7240_MAX_TIMEOUT)", default="__MODULE_STRING(SBC7240_TIMEOUT)")") | |
| module_param (nowayout, bool, 0) | |
| MODULE_PARM_DESC (nowayout,"Disable watchdog when closing device file") | |
| module_init (sbc7240_wdt_init) | |
| module_exit (sbc7240_wdt_unload) | |
| MODULE_AUTHOR ("Gilles Gigan") | |
| MODULE_DESCRIPTION ("Watchdog device driver for single board"" computers EPIC Nano 7240 from iEi") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
Definition at line 19 of file sbc7240_wdt.c.
| #define SBC7240_DISABLE_PORT 0x043 |
Definition at line 37 of file sbc7240_wdt.c.
| #define SBC7240_ENABLE_PORT 0x443 |
Definition at line 36 of file sbc7240_wdt.c.
| #define SBC7240_ENABLED_STATUS_BIT 1 |
Definition at line 54 of file sbc7240_wdt.c.
| #define SBC7240_EXPECT_CLOSE_STATUS_BIT 2 |
Definition at line 55 of file sbc7240_wdt.c.
| #define SBC7240_MAGIC_CHAR 'V' |
Definition at line 39 of file sbc7240_wdt.c.
| #define SBC7240_MAX_TIMEOUT 255 |
Definition at line 42 of file sbc7240_wdt.c.
| #define SBC7240_OPEN_STATUS_BIT 0 |
Definition at line 53 of file sbc7240_wdt.c.
| #define SBC7240_SET_TIMEOUT_PORT SBC7240_ENABLE_PORT |
Definition at line 38 of file sbc7240_wdt.c.
| #define SBC7240_TIMEOUT 30 |
Definition at line 41 of file sbc7240_wdt.c.
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_AUTHOR | ( | "Gilles Gigan" | ) |
| MODULE_DESCRIPTION | ( | "Watchdog device driver for single board"" computers EPIC Nano 7240 from iEi" | ) |
| module_exit | ( | sbc7240_wdt_unload | ) |
| module_init | ( | sbc7240_wdt_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | nowayout | , |
| bool | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | timeout | , |
| "Watchdog timeout in seconds. (1<=timeout<="__MODULE_STRING(SBC7240_MAX_TIMEOUT)", default="__MODULE_STRING(SBC7240_TIMEOUT)")" | |||
| ) |
1.8.2