|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/types.h>#include <linux/miscdevice.h>#include <linux/watchdog.h>#include <linux/ioport.h>#include <linux/fs.h>#include <linux/init.h>#include <linux/spinlock.h>#include <linux/moduleparam.h>#include <linux/platform_device.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 | DRV_NAME "ib700wdt" |
| #define | WDT_STOP 0x441 |
| #define | WDT_START 0x443 |
| #define | WATCHDOG_TIMEOUT 30 /* 30 seconds +/- 20% */ |
Functions | |
| module_param (timeout, int, 0) | |
| MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. 0<= timeout <=30, 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 (ibwdt_init) | |
| module_exit (ibwdt_exit) | |
| MODULE_AUTHOR ("Charles Howes <[email protected]>") | |
| MODULE_DESCRIPTION ("IB700 SBC watchdog driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
| #define DRV_NAME "ib700wdt" |
Definition at line 56 of file ib700wdt.c.
Definition at line 34 of file ib700wdt.c.
| #define WATCHDOG_TIMEOUT 30 /* 30 seconds +/- 20% */ |
Definition at line 98 of file ib700wdt.c.
| #define WDT_START 0x443 |
Definition at line 95 of file ib700wdt.c.
| #define WDT_STOP 0x441 |
Definition at line 94 of file ib700wdt.c.
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_AUTHOR | ( | "Charles Howes <[email protected]>" | ) |
| module_exit | ( | ibwdt_exit | ) |
| module_init | ( | ibwdt_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | nowayout | , |
| bool | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | nowayout | , |
| "Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
| ) |
1.8.2