#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <linux/slab.h>
Go to the source code of this file.
|
| MODULE_DEVICE_TABLE (platform, max63xx_id_table) |
|
| module_platform_driver (max63xx_wdt_driver) |
|
| MODULE_AUTHOR ("Marc Zyngier <[email protected]>") |
|
| MODULE_DESCRIPTION ("max63xx Watchdog Driver") |
|
| module_param (heartbeat, int, 0) |
|
| MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat period in seconds from 1 to "__MODULE_STRING(MAX_HEARTBEAT)", default "__MODULE_STRING(DEFAULT_HEARTBEAT)) |
|
| module_param (nowayout, bool, 0) |
|
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") |
|
| module_param (nodelay, int, 0) |
|
| MODULE_PARM_DESC (nodelay,"Force selection of a timeout setting without initial delay ""(max6373/74 only, default=0)") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) |
|
#define DEFAULT_HEARTBEAT 60 |
#define MAX6369_WDI (1 << 3) |
#define MAX6369_WDSET (7 << 0) |
MODULE_DESCRIPTION |
( |
"max63xx Watchdog Driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
platform |
, |
|
|
max63xx_id_table |
|
|
) |
| |
module_param |
( |
nowayout |
, |
|
|
bool |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
nodelay |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
nodelay |
, |
|
|
"Force selection of a timeout setting without initial delay ""(max6373/74 only, default=0)" |
|
|
) |
| |
module_platform_driver |
( |
max63xx_wdt_driver |
| ) |
|