|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/moduleparam.h>#include <linux/types.h>#include <linux/timer.h>#include <linux/jiffies.h>#include <linux/miscdevice.h>#include <linux/watchdog.h>#include <linux/fs.h>#include <linux/ioport.h>#include <linux/notifier.h>#include <linux/reboot.h>#include <linux/init.h>#include <linux/io.h>#include <linux/uaccess.h>Go to the source code of this file.
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | ZF_IOBASE 0x218 |
| #define | INDEX 0x218 |
| #define | DATA_B 0x219 |
| #define | DATA_W 0x21A |
| #define | DATA_D 0x21A |
| #define | ZFL_VERSION 0x02 /* 16 */ |
| #define | CONTROL 0x10 /* 16 */ |
| #define | STATUS 0x12 /* 8 */ |
| #define | COUNTER_1 0x0C /* 16 */ |
| #define | COUNTER_2 0x0E /* 8 */ |
| #define | PULSE_LEN 0x0F /* 8 */ |
| #define | ENABLE_WD1 0x0001 |
| #define | ENABLE_WD2 0x0002 |
| #define | RESET_WD1 0x0010 |
| #define | RESET_WD2 0x0020 |
| #define | GEN_SCI 0x0100 |
| #define | GEN_NMI 0x0200 |
| #define | GEN_SMI 0x0400 |
| #define | GEN_RESET 0x0800 |
| #define | WD1 0 |
| #define | WD2 1 |
| #define | zf_writew(port, data) { outb(port, INDEX); outw(data, DATA_W); } |
| #define | zf_writeb(port, data) { outb(port, INDEX); outb(data, DATA_B); } |
| #define | zf_get_ZFL_version() zf_readw(ZFL_VERSION) |
| #define | PFX "machzwd" |
| #define | ZF_USER_TIMEO (HZ*10) |
| #define | ZF_HW_TIMEO (HZ/2) |
| #define | ZF_CTIMEOUT 0xffff |
| #define | dprintk(format, args...) |
Functions | |
| MODULE_AUTHOR ("Fernando Fuganti <[email protected]>") | |
| MODULE_DESCRIPTION ("MachZ ZF-Logic Watchdog driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
| module_param (nowayout, bool, 0) | |
| MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") | |
| module_param (action, int, 0) | |
| MODULE_PARM_DESC (action,"after watchdog resets, generate: ""0 = RESET(*) 1 = SMI 2 = NMI 3 = SCI") | |
| module_init (zf_init) | |
| module_exit (zf_exit) | |
| #define zf_get_ZFL_version | ( | ) | zf_readw(ZFL_VERSION) |
| MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
| MODULE_AUTHOR | ( | "Fernando Fuganti <[email protected]>" | ) |
| MODULE_DESCRIPTION | ( | "MachZ ZF-Logic Watchdog driver" | ) |
| module_exit | ( | zf_exit | ) |
| module_init | ( | zf_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| module_param | ( | nowayout | , |
| bool | , | ||
| 0 | |||
| ) |
| MODULE_PARM_DESC | ( | nowayout | , |
| "Watchdog cannot be stopped once started (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
| ) |
1.8.2