Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sbc_epx_c3.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/ioport.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_TIMEOUT   1 /* 1 sec default timeout */
 
#define EPXC3_WATCHDOG_CTL_REG   0x1ee /* write 1 to enable, 0 to disable */
 
#define EPXC3_WATCHDOG_PET_REG   0x1ef /* write anything to pet once enabled */
 

Functions

 module_param (nowayout, bool, 0)
 
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 
 module_init (watchdog_init)
 
 module_exit (watchdog_exit)
 
 MODULE_AUTHOR ("Calin A. Culianu <[email protected]>")
 
 MODULE_DESCRIPTION ("Hardware Watchdog Device for Winsystems EPX-C3 SBC. ""Note that there is no way to probe for this device -- ""so only use it if you are *sure* you are running on this specific ""SBC system from Winsystems! It writes to IO ports 0x1ee and 0x1ef!")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR)
 

Macro Definition Documentation

#define EPXC3_WATCHDOG_CTL_REG   0x1ee /* write 1 to enable, 0 to disable */

Definition at line 42 of file sbc_epx_c3.c.

#define EPXC3_WATCHDOG_PET_REG   0x1ef /* write anything to pet once enabled */

Definition at line 43 of file sbc_epx_c3.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 16 of file sbc_epx_c3.c.

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

Definition at line 35 of file sbc_epx_c3.c.

Function Documentation

MODULE_ALIAS_MISCDEV ( WATCHDOG_MINOR  )
MODULE_AUTHOR ( "Calin A. Culianu <[email protected]>"  )
MODULE_DESCRIPTION ( "Hardware Watchdog Device for Winsystems EPX-C3 SBC. ""Note that there is no way to probe for this device -- ""so only use it if you are *sure* you are running on this specific ""SBC system from Winsystems! It writes to IO ports 0x1ee and 0x1ef!"  )
module_exit ( watchdog_exit  )
module_init ( watchdog_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( nowayout  ,
bool  ,
 
)
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   
)