#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/major.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/uaccess.h>
#include <asm/irq.h>
#include <asm/watchdog.h>
Go to the source code of this file.
|
| module_param (wd0_timeout, int, 0) |
|
| MODULE_PARM_DESC (wd0_timeout,"Default watchdog0 timeout in 1/10secs") |
|
| module_param (wd1_timeout, int, 0) |
|
| MODULE_PARM_DESC (wd1_timeout,"Default watchdog1 timeout in 1/10secs") |
|
| module_param (wd2_timeout, int, 0) |
|
| MODULE_PARM_DESC (wd2_timeout,"Default watchdog2 timeout in 1/10secs") |
|
| MODULE_AUTHOR ("Eric Brower <[email protected]>") |
|
| MODULE_DESCRIPTION ("Hardware watchdog driver for Sun Microsystems CP1400/1500") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("watchdog") |
|
| MODULE_DEVICE_TABLE (of, cpwd_match) |
|
| module_platform_driver (cpwd_driver) |
|
#define DRIVER_NAME "cpwd" |
#define PLD_STATUS (PLD_OFF + 0x04) |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define WD0_INTR_MASK 0x01 /* Watchdog device interrupt masks */ |
#define WD1_INTR_MASK 0x02 |
#define WD2_INTR_MASK 0x04 |
#define WD_BADMODEL "SUNW,501-5336" |
#define WD_OBPNAME "watchdog" |
#define WD_S_EXPIRED 0x02 /* Watchdog device status expired */ |
#define WD_S_RUNNING 0x01 /* Watchdog device status running */ |
#define WD_STAT_BSTOP 0x02 /* Watchdog timer is brokenstopped */ |
#define WD_STAT_INIT 0x01 /* Watchdog timer is initialized */ |
#define WD_STAT_SVCD 0x04 /* Watchdog interrupt occurred */ |
#define WD_TIMER_REGSZ 16 |
MODULE_DEVICE_TABLE |
( |
of |
, |
|
|
cpwd_match |
|
|
) |
| |
module_param |
( |
wd0_timeout |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
wd1_timeout |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
wd2_timeout |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
wd0_timeout |
, |
|
|
"Default watchdog0 timeout in 1/10secs" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
wd1_timeout |
, |
|
|
"Default watchdog1 timeout in 1/10secs" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
wd2_timeout |
, |
|
|
"Default watchdog2 timeout in 1/10secs" |
|
|
) |
| |
module_platform_driver |
( |
cpwd_driver |
| ) |
|
MODULE_SUPPORTED_DEVICE |
( |
"watchdog" |
| ) |
|