Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
alim1535_wdt.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/ioport.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/pci.h>
#include <linux/uaccess.h>
#include <linux/io.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define WATCHDOG_NAME   "ALi_M1535"
 
#define WATCHDOG_TIMEOUT   60 /* 60 sec default timeout */
 

Functions

 module_param (timeout, int, 0)
 
 MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. (0 < timeout < 18000, default="__MODULE_STRING(WATCHDOG_TIMEOUT)")")
 
 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 MODULE_DEVICE_TABLE (pci, ali_pci_tbl)
 
 module_init (watchdog_init)
 
 module_exit (watchdog_exit)
 
 MODULE_AUTHOR ("Alan Cox")
 
 MODULE_DESCRIPTION ("ALi M1535 PMU Watchdog Timer driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 10 of file alim1535_wdt.c.

#define WATCHDOG_NAME   "ALi_M1535"

Definition at line 26 of file alim1535_wdt.c.

#define WATCHDOG_TIMEOUT   60 /* 60 sec default timeout */

Definition at line 27 of file alim1535_wdt.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Alan Cox"  )
MODULE_DESCRIPTION ( "ALi M1535 PMU Watchdog Timer driver )
MODULE_DEVICE_TABLE ( pci  ,
ali_pci_tbl   
)
module_exit ( watchdog_exit  )
module_init ( watchdog_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( timeout  ,
"Watchdog timeout in seconds. (0 < timeout < 18000, default="__MODULE_STRING(WATCHDOG_TIMEOUT)")"   
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)