Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/jiffies.h>
#include <linux/platform_device.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include "nv_tco.h"
Go to the source code of this file.
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | TCO_VERSION "0.01" |
#define | TCO_MODULE_NAME "NV_TCO" |
#define | TCO_DRIVER_NAME TCO_MODULE_NAME ", v" TCO_VERSION |
#define | WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat (2<heartbeat<39) */ |
Functions | |
module_param (heartbeat, int, 0) | |
MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds. (2<heartbeat<39, ""default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")") | |
module_param (nowayout, bool, 0) | |
MODULE_PARM_DESC (nowayout,"Watchdog cannot be stopped once started"" (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")") | |
MODULE_DEVICE_TABLE (pci, tco_pci_tbl) | |
module_init (nv_tco_init_module) | |
module_exit (nv_tco_cleanup_module) | |
MODULE_AUTHOR ("Mike Waychison") | |
MODULE_DESCRIPTION ("TCO timer driver for NV chipsets") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
#define TCO_DRIVER_NAME TCO_MODULE_NAME ", v" TCO_VERSION |
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "Mike Waychison" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
tco_pci_tbl | |||
) |
module_exit | ( | nv_tco_cleanup_module | ) |
module_init | ( | nv_tco_init_module | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | heartbeat | , |
"Watchdog heartbeat in seconds. (2<heartbeat<39, ""default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")" | |||
) |
MODULE_PARM_DESC | ( | nowayout | , |
"Watchdog cannot be stopped once started"" (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
) |