#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/timer.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/ioport.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <linux/uaccess.h>
Go to the source code of this file.
|
| module_param (timeout, int, 0) |
|
| MODULE_PARM_DESC (timeout,"Watchdog timeout in seconds. (1<=timeout<=3600, default="__MODULE_STRING(WATCHDOG_TIMEOUT)")") |
|
| module_param (use_gpio, int, 0) |
|
| MODULE_PARM_DESC (use_gpio,"Use the gpio watchdog (required by old cobalt boards).") |
|
| module_param (nowayout, bool, 0) |
|
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
|
| module_init (alim7101_wdt_init) |
|
| module_exit (alim7101_wdt_unload) |
|
| MODULE_DEVICE_TABLE (pci, alim7101_pci_tbl) |
|
| MODULE_AUTHOR ("Steve Hill") |
|
| MODULE_DESCRIPTION ("ALi M7101 PMU Computer Watchdog Timer driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
#define ALI_7101_GPIO 0x7D |
#define ALI_7101_GPIO_O 0x7E |
#define ALI_7101_WDT 0x92 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ |
#define WDT_INTERVAL (HZ/4+1) |
MODULE_AUTHOR |
( |
"Steve Hill" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
alim7101_pci_tbl |
|
|
) |
| |
module_exit |
( |
alim7101_wdt_unload |
| ) |
|
module_init |
( |
alim7101_wdt_init |
| ) |
|
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |