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/platform_device.h>
#include <linux/uaccess.h>
#include <linux/io.h>
#include "sp5100_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 "SP5100 TCO timer" |
#define | TCO_DRIVER_NAME TCO_MODULE_NAME ", v" TCO_VERSION |
#define | WATCHDOG_HEARTBEAT 60 /* 60 sec default heartbeat. */ |
Functions | |
module_param (heartbeat, int, 0) | |
MODULE_PARM_DESC (heartbeat,"Watchdog heartbeat in seconds. (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, sp5100_tco_pci_tbl) | |
module_init (sp5100_tco_init_module) | |
module_exit (sp5100_tco_cleanup_module) | |
MODULE_AUTHOR ("Priyanka Gupta") | |
MODULE_DESCRIPTION ("TCO timer driver for SP5100 chipset") | |
MODULE_LICENSE ("GPL") | |
MODULE_ALIAS_MISCDEV (WATCHDOG_MINOR) | |
Definition at line 23 of file sp5100_tco.c.
#define TCO_DRIVER_NAME TCO_MODULE_NAME ", v" TCO_VERSION |
Definition at line 43 of file sp5100_tco.c.
#define TCO_MODULE_NAME "SP5100 TCO timer" |
Definition at line 42 of file sp5100_tco.c.
#define TCO_VERSION "0.01" |
Definition at line 41 of file sp5100_tco.c.
#define WATCHDOG_HEARTBEAT 60 /* 60 sec default heartbeat. */ |
Definition at line 59 of file sp5100_tco.c.
MODULE_ALIAS_MISCDEV | ( | WATCHDOG_MINOR | ) |
MODULE_AUTHOR | ( | "Priyanka Gupta" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
sp5100_tco_pci_tbl | |||
) |
module_exit | ( | sp5100_tco_cleanup_module | ) |
module_init | ( | sp5100_tco_init_module | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | nowayout | , |
bool | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | heartbeat | , |
"Watchdog heartbeat in seconds. (default="__MODULE_STRING(WATCHDOG_HEARTBEAT)")" | |||
) |
MODULE_PARM_DESC | ( | nowayout | , |
"Watchdog cannot be stopped once started"" (default="__MODULE_STRING(WATCHDOG_NOWAYOUT)")" | |||
) |