Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <asm/mach-rc32434/integ.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | VERSION "1.0" |
#define | WTCOMP2SEC(x) (x / idt_cpu_freq) |
#define | SEC2WTCOMP(x) (x * idt_cpu_freq) |
#define | WATCHDOG_TIMEOUT 20 |
#define | SET_BITS(addr, or, nand) writel((readl(&addr) | or) & ~nand, &addr) |
Functions | |
module_param (timeout, int, 0) | |
MODULE_PARM_DESC (timeout,"Watchdog timeout value, in seconds (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_platform_driver (rc32434_wdt_driver) | |
MODULE_AUTHOR ("Ondrej Zajicek <[email protected]>,""Florian Fainelli <[email protected]>") | |
MODULE_DESCRIPTION ("Driver for the IDT RC32434 SoC watchdog") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
Variables | |
unsigned int | idt_cpu_freq |
Definition at line 20 of file rc32434_wdt.c.
#define SEC2WTCOMP | ( | x | ) | (x * idt_cpu_freq) |
Definition at line 55 of file rc32434_wdt.c.
Definition at line 73 of file rc32434_wdt.c.
#define VERSION "1.0" |
Definition at line 38 of file rc32434_wdt.c.
#define WATCHDOG_TIMEOUT 20 |
Definition at line 60 of file rc32434_wdt.c.
#define WTCOMP2SEC | ( | x | ) | (x / idt_cpu_freq) |
Definition at line 54 of file rc32434_wdt.c.
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "Ondrej Zajicek <[email protected]> | , |
""Florian Fainelli< florian @openwrt.org >" | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | timeout | , |
"Watchdog timeout | value, | ||
in seconds(default="__MODULE_STRING(WATCHDOG_TIMEOUT)")" | |||
) |
MODULE_PARM_DESC | ( | nowayout | , |
"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
) |
module_platform_driver | ( | rc32434_wdt_driver | ) |
unsigned long inuse |
Definition at line 41 of file rc32434_wdt.c.
spinlock_t io_lock |
Definition at line 42 of file rc32434_wdt.c.