#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <asm/mach-pnx833x/pnx833x.h>
Go to the source code of this file.
|
| module_param (pnx833x_wdt_timeout, int, 0) |
|
| MODULE_PARM_DESC (timeout,"Watchdog timeout in Mhz. (68Mhz clock), default="__MODULE_STRING(PNX_TIMEOUT_VALUE)"(30 seconds).") |
|
| module_param (nowayout, bool, 0) |
|
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
|
| module_param (start_enabled, int, 0) |
|
| MODULE_PARM_DESC (start_enabled,"Watchdog is started on module insertion ""(default="__MODULE_STRING(START_DEFAULT)")") |
|
| module_init (watchdog_init) |
|
| module_exit (watchdog_exit) |
|
| MODULE_AUTHOR ("Daniel Laird/Andre McCurdy") |
|
| MODULE_DESCRIPTION ("Hardware Watchdog Device for PNX833x") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
#define PNX833X_CONFIG (0x07000U) |
#define PNX833X_CONFIG_CPU_COUNTERS_CONTROL (0x1c) |
#define PNX833X_CONFIG_CPU_WATCHDOG (0x54) |
#define PNX833X_CONFIG_CPU_WATCHDOG_COMPARE (0x58) |
#define PNX833X_RESET (0x08000U) |
#define PNX833X_RESET_CONFIG (0x08) |
#define PNX_TIMEOUT_VALUE 2040000000U |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define WATCHDOG_COUNT_FREQUENCY 68000000U /* Watchdog counts at 68MHZ. */ |
#define WATCHDOG_TIMEOUT 30 /* 30 sec Maximum timeout */ |
MODULE_AUTHOR |
( |
"Daniel Laird/Andre McCurdy" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Hardware Watchdog Device for PNX833x" |
| ) |
|
module_exit |
( |
watchdog_exit |
| ) |
|
module_init |
( |
watchdog_init |
| ) |
|
module_param |
( |
pnx833x_wdt_timeout |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
start_enabled |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |