Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sp5100_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/platform_device.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include "sp5100_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   "SP5100 TCO timer"
 
#define TCO_DRIVER_NAME   TCO_MODULE_NAME ", v" TCO_VERSION
 
#define WATCHDOG_HEARTBEAT   60 /* 60 sec default heartbeat. */
 

Functions

 module_param (heartbeat, int, 0)
 
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds. (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, sp5100_tco_pci_tbl)
 
 module_init (sp5100_tco_init_module)
 
 module_exit (sp5100_tco_cleanup_module)
 
 MODULE_AUTHOR ("Priyanka Gupta")
 
 MODULE_DESCRIPTION ("TCO timer driver for SP5100 chipset")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 23 of file sp5100_tco.c.

#define TCO_DRIVER_NAME   TCO_MODULE_NAME ", v" TCO_VERSION

Definition at line 43 of file sp5100_tco.c.

#define TCO_MODULE_NAME   "SP5100 TCO timer"

Definition at line 42 of file sp5100_tco.c.

#define TCO_VERSION   "0.01"

Definition at line 41 of file sp5100_tco.c.

#define WATCHDOG_HEARTBEAT   60 /* 60 sec default heartbeat. */

Definition at line 59 of file sp5100_tco.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Priyanka Gupta"  )
MODULE_DESCRIPTION ( "TCO timer driver for SP5100 chipset )
MODULE_DEVICE_TABLE ( pci  ,
sp5100_tco_pci_tbl   
)
module_exit ( sp5100_tco_cleanup_module  )
module_init ( sp5100_tco_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( heartbeat  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeat in seconds. (default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started"" (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)