#include <linux/compiler.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/sfi.h>
#include <asm/irq.h>
#include <linux/atomic.h>
#include <asm/intel_scu_ipc.h>
#include <asm/apb_timer.h>
#include <asm/mrst.h>
#include "intel_scu_watchdog.h"
Go to the source code of this file.
|
| module_param (timer_margin, int, 0) |
|
| MODULE_PARM_DESC (timer_margin,"Watchdog timer margin""Time between interrupt and resetting the system""The range is from 1 to 160""This is the time for all keep alives to arrive") |
|
| module_param (timer_set, int, 0) |
|
| MODULE_PARM_DESC (timer_set,"Default Watchdog timer setting""Complete cycle time""The range is from 1 to 170""This is the time for all keep alives to arrive") |
|
| module_param (force_boot, int, 0) |
|
| MODULE_PARM_DESC (force_boot,"A value of 1 means that the driver will reboot""the system immediately if the /dev/watchdog device is closed""A value of 0 means that when /dev/watchdog device is closed""the watchdog timer will be refreshed for one more interval""of length: timer_set. At the end of this interval, the""watchdog timer will reset the system.") |
|
| late_initcall (intel_scu_watchdog_init) |
|
| module_exit (intel_scu_watchdog_exit) |
|
| MODULE_AUTHOR ("Intel Corporation") |
|
| MODULE_DESCRIPTION ("Intel SCU Watchdog Device Driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
| MODULE_VERSION (WDT_VER) |
|
#define IPC_SET_WATCHDOG_TIMER 0xF8 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
late_initcall |
( |
intel_scu_watchdog_init |
| ) |
|
MODULE_AUTHOR |
( |
"Intel Corporation" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Intel SCU Watchdog Device Driver" |
| ) |
|
module_exit |
( |
intel_scu_watchdog_exit |
| ) |
|
module_param |
( |
timer_margin |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
timer_set |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
force_boot |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |