Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/moduleparam.h>
#include <linux/dmi.h>
#include <linux/io.h>
#include <linux/uaccess.h>
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME " WATCHDOG: " fmt |
#define | WDT_IN_USE 0 |
#define | WDT_OK_TO_CLOSE 1 |
#define | COMMAND_PORT 0x4c |
#define | DATA_PORT 0x48 |
#define | IFACE_ON_COMMAND 1 |
#define | REBOOT_COMMAND 2 |
#define | WATCHDOG_NAME "SBC-FITPC2 Watchdog" |
Functions | |
module_init (fitpc2_wdt_init) | |
module_exit (fitpc2_wdt_exit) | |
MODULE_AUTHOR ("Denis Turischev <[email protected]>") | |
MODULE_DESCRIPTION ("SBC-FITPC2 Watchdog") | |
module_param (margin, int, 0) | |
MODULE_PARM_DESC (margin,"Watchdog margin in seconds (default 60s)") | |
module_param (nowayout, bool, 0) | |
MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
#define COMMAND_PORT 0x4c |
Definition at line 37 of file sbc_fitpc2_wdt.c.
#define DATA_PORT 0x48 |
Definition at line 38 of file sbc_fitpc2_wdt.c.
#define IFACE_ON_COMMAND 1 |
Definition at line 40 of file sbc_fitpc2_wdt.c.
#define pr_fmt | ( | fmt | ) | KBUILD_MODNAME " WATCHDOG: " fmt |
Definition at line 13 of file sbc_fitpc2_wdt.c.
#define REBOOT_COMMAND 2 |
Definition at line 41 of file sbc_fitpc2_wdt.c.
#define WATCHDOG_NAME "SBC-FITPC2 Watchdog" |
Definition at line 43 of file sbc_fitpc2_wdt.c.
#define WDT_IN_USE 0 |
Definition at line 34 of file sbc_fitpc2_wdt.c.
#define WDT_OK_TO_CLOSE 1 |
Definition at line 35 of file sbc_fitpc2_wdt.c.
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "Denis Turischev <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "SBC-FITPC2 Watchdog" | ) |
module_exit | ( | fitpc2_wdt_exit | ) |
module_init | ( | fitpc2_wdt_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | margin | , |
int | , | ||
0 | |||
) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |