Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hpwdt.c File Reference
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/bitops.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/types.h>
#include <linux/uaccess.h>
#include <linux/watchdog.h>
#include <asm/nmi.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define HPWDT_VERSION   "1.3.0"
 
#define SECS_TO_TICKS(secs)   ((secs) * 1000 / 128)
 
#define TICKS_TO_SECS(ticks)   ((ticks) * 128 / 1000)
 
#define HPWDT_MAX_TIMER   TICKS_TO_SECS(65535)
 
#define DEFAULT_MARGIN   30
 

Functions

 MODULE_DEVICE_TABLE (pci, hpwdt_devices)
 
 MODULE_AUTHOR ("Tom Mingarelli")
 
 MODULE_DESCRIPTION ("hp watchdog driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (HPWDT_VERSION)
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 
 module_param (soft_margin, int, 0)
 
 MODULE_PARM_DESC (soft_margin,"Watchdog timeout in seconds")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_pci_driver (hpwdt_driver)
 

Macro Definition Documentation

#define DEFAULT_MARGIN   30

Definition at line 46 of file hpwdt.c.

#define HPWDT_MAX_TIMER   TICKS_TO_SECS(65535)

Definition at line 45 of file hpwdt.c.

#define HPWDT_VERSION   "1.3.0"

Definition at line 42 of file hpwdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 16 of file hpwdt.c.

#define SECS_TO_TICKS (   secs)    ((secs) * 1000 / 128)

Definition at line 43 of file hpwdt.c.

#define TICKS_TO_SECS (   ticks)    ((ticks) * 128 / 1000)

Definition at line 44 of file hpwdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Tom Mingarelli"  )
MODULE_DESCRIPTION ( "hp watchdog driver )
MODULE_DEVICE_TABLE ( pci  ,
hpwdt_devices   
)
MODULE_LICENSE ( "GPL"  )
module_param ( soft_margin  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( soft_margin  ,
"Watchdog timeout in seconds  
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)
module_pci_driver ( hpwdt_driver  )
MODULE_VERSION ( HPWDT_VERSION  )