#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include "iTCO_vendor.h"
Go to the source code of this file.
|
| module_param (vendorsupport, int, 0) |
|
| MODULE_PARM_DESC (vendorsupport,"iTCO vendor specific support mode, default=""0 (none), 1=SuperMicro Pent3, 2=SuperMicro Pent4+, ""911=Broken SMI BIOS") |
|
void | iTCO_vendor_pre_start (struct resource *smires, unsigned int heartbeat) |
|
| EXPORT_SYMBOL (iTCO_vendor_pre_start) |
|
void | iTCO_vendor_pre_stop (struct resource *smires) |
|
| EXPORT_SYMBOL (iTCO_vendor_pre_stop) |
|
void | iTCO_vendor_pre_keepalive (struct resource *smires, unsigned int heartbeat) |
|
| EXPORT_SYMBOL (iTCO_vendor_pre_keepalive) |
|
void | iTCO_vendor_pre_set_heartbeat (unsigned int heartbeat) |
|
| EXPORT_SYMBOL (iTCO_vendor_pre_set_heartbeat) |
|
int | iTCO_vendor_check_noreboot_on (void) |
|
| EXPORT_SYMBOL (iTCO_vendor_check_noreboot_on) |
|
| module_init (iTCO_vendor_init_module) |
|
| module_exit (iTCO_vendor_exit_module) |
|
| MODULE_AUTHOR ("Wim Van Sebroeck <[email protected]>, ""R. Seretny <[email protected]>") |
|
| MODULE_DESCRIPTION ("Intel TCO Vendor Specific WatchDog Timer Driver Support") |
|
| MODULE_VERSION (DRV_VERSION) |
|
| MODULE_LICENSE ("GPL") |
|
#define DRV_NAME "iTCO_vendor_support" |
#define DRV_VERSION "1.04" |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define SM_COUNTMODE 0xf5 /* Watchdog count mode select */ |
#define SM_CTLPAGE 0x08 /* SuperMicro ICH4+ Control Page Num */ |
#define SM_CTLPAGESW 0x07 /* SuperMicro ICH4+ Control Page Switch */ |
#define SM_DATAIO 0x2f /* SuperMicro ICH4+ Register Data I/O */ |
#define SM_ENDWATCH 0xAA /* Watchdog lock control page */ |
#define SM_REGINDEX 0x2e /* SuperMicro ICH4+ Register Index */ |
#define SM_RESETCONTROL 0xf7 /* Watchdog reset control */ |
#define SM_WATCHENABLE 0x30 /* Watchdog enable: Bit 0: 0=off, 1=on */ |
#define SM_WATCHPAGE 0x87 /* Watchdog unlock control page */ |
#define SM_WATCHTIMER 0xf6 /* 8-bits, Watchdog timer counter (RW) */ |
#define SUPERMICRO_NEW_BOARD 2 |
#define SUPERMICRO_OLD_BOARD 1 |
int iTCO_vendor_check_noreboot_on |
( |
void |
| ) |
|
void iTCO_vendor_pre_set_heartbeat |
( |
unsigned int |
heartbeat | ) |
|
MODULE_AUTHOR |
( |
"Wim Van Sebroeck <[email protected]> |
, |
|
|
""R.Seretny< lkpatches @paypc.com >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"Intel TCO Vendor Specific WatchDog Timer Driver Support" |
| ) |
|
module_exit |
( |
iTCO_vendor_exit_module |
| ) |
|
module_init |
( |
iTCO_vendor_init_module |
| ) |
|
module_param |
( |
vendorsupport |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
vendorsupport |
, |
|
|
"iTCO vendor specific support |
mode, |
|
|
default |
= ""0 (none) , |
|
|
1 |
= SuperMicro Pent3 , |
|
|
2 |
= SuperMicro Pent4+ |
|
) |
| |