Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pika_wdt.c File Reference
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/reboot.h>
#include <linux/jiffies.h>
#include <linux/timer.h>
#include <linux/bitops.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include <linux/of_platform.h>

Go to the source code of this file.


#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
#define DRV_NAME   "PIKA-WDT"
#define WDT_HW_TIMEOUT   2
#define WDT_TIMEOUT   (HZ/2)
#define WDT_HEARTBEAT   15


 module_param (heartbeat, int, 0)
 MODULE_PARM_DESC (heartbeat,"Watchdog heartbeats in seconds. ""(default = "__MODULE_STRING(WDT_HEARTBEAT)")")
 module_param (nowayout, bool, 0)
 MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")")
 module_init (pikawdt_init)
 module_exit (pikawdt_exit)
 MODULE_AUTHOR ("Sean MacLennan <[email protected]>")
 MODULE_DESCRIPTION ("PIKA FPGA based Watchdog Timer")

Macro Definition Documentation

#define DRV_NAME   "PIKA-WDT"

Definition at line 27 of file pika_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 8 of file pika_wdt.c.

#define WDT_HEARTBEAT   15

Definition at line 36 of file pika_wdt.c.

#define WDT_HW_TIMEOUT   2

Definition at line 30 of file pika_wdt.c.

#define WDT_TIMEOUT   (HZ/2)

Definition at line 33 of file pika_wdt.c.

Function Documentation

MODULE_AUTHOR ( "Sean MacLennan <[email protected]>"  )
MODULE_DESCRIPTION ( "PIKA FPGA based Watchdog Timer )
module_exit ( pikawdt_exit  )
module_init ( pikawdt_init  )
module_param ( heartbeat  ,
int  ,
module_param ( nowayout  ,
bool  ,
MODULE_PARM_DESC ( heartbeat  ,
"Watchdog heartbeats in seconds. ""(default = "__MODULE_STRING(WDT_HEARTBEAT)")"   
MODULE_PARM_DESC ( nowayout  ,
"Watchdog cannot be stopped once started ""(default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")"   

Variable Documentation

int bootstatus

Definition at line 52 of file pika_wdt.c.

char expect_close

Definition at line 51 of file pika_wdt.c.

void __iomem* fpga

Definition at line 48 of file pika_wdt.c.

unsigned long next_heartbeat

Definition at line 49 of file pika_wdt.c.

unsigned long open

Definition at line 50 of file pika_wdt.c.

Definition at line 53 of file pika_wdt.c.