Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
intel_scu_watchdog.c File Reference
#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.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MAX_RETRY   16
 
#define IPC_SET_WATCHDOG_TIMER   0xF8
 

Functions

 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)
 

Macro Definition Documentation

#define IPC_SET_WATCHDOG_TIMER   0xF8

Definition at line 59 of file intel_scu_watchdog.c.

#define MAX_RETRY   16

Definition at line 57 of file intel_scu_watchdog.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 25 of file intel_scu_watchdog.c.

Function Documentation

late_initcall ( intel_scu_watchdog_init  )
MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Intel Corporation"  )
MODULE_DESCRIPTION ( "Intel SCU Watchdog Device Driver"  )
module_exit ( intel_scu_watchdog_exit  )
MODULE_LICENSE ( "GPL"  )
module_param ( timer_margin  ,
int  ,
 
)
module_param ( timer_set  ,
int  ,
 
)
module_param ( force_boot  ,
int  ,
 
)
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_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_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."   
)
MODULE_VERSION ( WDT_VER  )