|
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/init.h>#include <linux/platform_device.h>#include <linux/clk.h>#include <linux/err.h>#include <linux/io.h>#include <asm/txx9tmr.h>Go to the source code of this file.
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | WD_TIMER_CCD 7 /* 1/256 */ |
| #define | WD_TIMER_CLK (clk_get_rate(txx9_imclk) / (2 << WD_TIMER_CCD)) |
| #define | WD_MAX_TIMEOUT ((0xffffffff >> (32 - TXX9_TIMER_BITS)) / WD_TIMER_CLK) |
| #define | TIMER_MARGIN 60 /* Default is 60 seconds */ |
Functions | |
| module_param (timeout, uint, 0) | |
| MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. ""(0<timeout<((2^"__MODULE_STRING(TXX9_TIMER_BITS)")/(IMCLK/256)), ""default="__MODULE_STRING(TIMER_MARGIN)")") | |
| module_param (nowayout, bool, 0) | |
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") | |
| module_init (watchdog_init) | |
| module_exit (watchdog_exit) | |
| MODULE_DESCRIPTION ("TXx9 Watchdog Driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
| MODULE_ALIAS ("platform:txx9wdt") | |
| #define WD_MAX_TIMEOUT ((0xffffffff >> (32 - TXX9_TIMER_BITS)) / WD_TIMER_CLK) |
| #define WD_TIMER_CLK (clk_get_rate(txx9_imclk) / (2 << WD_TIMER_CCD)) |
| MODULE_ALIAS | ( | "platform:txx9wdt" | ) |
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_DESCRIPTION | ( | "TXx9 Watchdog Driver" | ) |
| module_exit | ( | watchdog_exit | ) |
| module_init | ( | watchdog_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | nowayout | , |
| bool | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | timeout | , |
| "Watchdog timeout in seconds. ""(0<timeout<((2^"__MODULE_STRING(TXX9_TIMER_BITS)")/(IMCLK/256)), ""default="__MODULE_STRING(TIMER_MARGIN)")" | |||
| ) |
| MODULE_PARM_DESC | ( | nowayout | , |
| "Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
| ) |
1.8.2