Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nv_tco.c File Reference
#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/fs.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/jiffies.h>
#include <linux/platform_device.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include "nv_tco.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define TCO_VERSION   "0.01"
 
#define TCO_MODULE_NAME   "NV_TCO"
 
#define TCO_DRIVER_NAME   TCO_MODULE_NAME ", v" TCO_VERSION
 
#define WATCHDOG_HEARTBEAT   30 /* 30 sec default heartbeat (2<heartbeat<39) */
 

Functions

 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds. (2<heartbeat<39, ""default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started"" (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 MODULE_DEVICE_TABLE (pci, tco_pci_tbl)
 
 module_init (nv_tco_init_module)
 
 module_exit (nv_tco_cleanup_module)
 
 MODULE_AUTHOR ("Mike Waychison")
 
 MODULE_DESCRIPTION ("TCO timer driver for NV chipsets")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file nv_tco.c.

#define TCO_DRIVER_NAME   TCO_MODULE_NAME ", v" TCO_VERSION

Definition at line 45 of file nv_tco.c.

#define TCO_MODULE_NAME   "NV_TCO"

Definition at line 44 of file nv_tco.c.

#define TCO_VERSION   "0.01"

Definition at line 43 of file nv_tco.c.

#define WATCHDOG_HEARTBEAT   30 /* 30 sec default heartbeat (2<heartbeat<39) */

Definition at line 58 of file nv_tco.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Mike Waychison"  )
MODULE_DESCRIPTION ( "TCO timer driver for NV chipsets"  )
MODULE_DEVICE_TABLE ( pci  ,
tco_pci_tbl   
)
module_exit ( nv_tco_cleanup_module  )
module_init ( nv_tco_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeat in seconds. (2<heartbeat<39, ""default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started"" (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)