Linux Kernel
3.7.1
|
#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.
Macros | |
#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 |
Functions | |
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") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
#define DRV_NAME "PIKA-WDT" |
Definition at line 27 of file pika_wdt.c.
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.
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "Sean MacLennan <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "PIKA FPGA based Watchdog Timer" | ) |
module_exit | ( | pikawdt_exit | ) |
module_init | ( | pikawdt_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |
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)")" | |||
) |
int bootstatus |
Definition at line 52 of file pika_wdt.c.
char expect_close |
Definition at line 51 of file pika_wdt.c.
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.