|
Linux Kernel
3.7.1
|
#include <linux/bitops.h>#include <linux/errno.h>#include <linux/fs.h>#include <linux/init.h>#include <linux/kernel.h>#include <linux/miscdevice.h>#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/platform_device.h>#include <linux/types.h>#include <linux/watchdog.h>#include <linux/io.h>#include <linux/uaccess.h>#include <mach/hardware.h>Go to the source code of this file.
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | KS8695_TMR_OFFSET (0xF0000 + 0xE400) |
| #define | KS8695_TMR_VA (KS8695_IO_VA + KS8695_TMR_OFFSET) |
| #define | KS8695_TMCON (0x00) /* Timer Control Register */ |
| #define | KS8695_T0TC (0x08) /* Timer 0 Timeout Count Register */ |
| #define | TMCON_T0EN (1 << 0) /* Timer 0 Enable */ |
| #define | T0TC_WATCHDOG (0xff) /* Enable watchdog mode */ |
| #define | WDT_DEFAULT_TIME 5 /* seconds */ |
| #define | WDT_MAX_TIME 171 /* seconds */ |
| #define | ks8695wdt_suspend NULL |
| #define | ks8695wdt_resume NULL |
Functions | |
| module_param (wdt_time, int, 0) | |
| MODULE_PARM_DESC (wdt_time,"Watchdog time in seconds. (default="__MODULE_STRING(WDT_DEFAULT_TIME)")") | |
| module_init (ks8695_wdt_init) | |
| module_exit (ks8695_wdt_exit) | |
| MODULE_AUTHOR ("Andrew Victor") | |
| MODULE_DESCRIPTION ("Watchdog driver for KS8695") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
| MODULE_ALIAS ("platform:ks8695_wdt") | |
| #define KS8695_T0TC (0x08) /* Timer 0 Timeout Count Register */ |
Definition at line 35 of file ks8695_wdt.c.
| #define KS8695_TMCON (0x00) /* Timer Control Register */ |
Definition at line 34 of file ks8695_wdt.c.
| #define KS8695_TMR_OFFSET (0xF0000 + 0xE400) |
Definition at line 28 of file ks8695_wdt.c.
| #define KS8695_TMR_VA (KS8695_IO_VA + KS8695_TMR_OFFSET) |
Definition at line 29 of file ks8695_wdt.c.
| #define ks8695wdt_resume NULL |
Definition at line 288 of file ks8695_wdt.c.
| #define ks8695wdt_suspend NULL |
Definition at line 287 of file ks8695_wdt.c.
Definition at line 11 of file ks8695_wdt.c.
| #define T0TC_WATCHDOG (0xff) /* Enable watchdog mode */ |
Definition at line 39 of file ks8695_wdt.c.
| #define TMCON_T0EN (1 << 0) /* Timer 0 Enable */ |
Definition at line 36 of file ks8695_wdt.c.
| #define WDT_DEFAULT_TIME 5 /* seconds */ |
Definition at line 41 of file ks8695_wdt.c.
| #define WDT_MAX_TIME 171 /* seconds */ |
Definition at line 42 of file ks8695_wdt.c.
| MODULE_ALIAS | ( | "platform:ks8695_wdt" | ) |
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_AUTHOR | ( | "Andrew Victor" | ) |
| module_exit | ( | ks8695_wdt_exit | ) |
| module_init | ( | ks8695_wdt_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | wdt_time | , |
| int | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | wdt_time | , |
| "Watchdog time in seconds. (default="__MODULE_STRING(WDT_DEFAULT_TIME)")" | |||
| ) |
1.8.2