#include <linux/module.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/jiffies.h>
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
#define DIV_FROM_REG |
( |
|
val | ) |
(1 << (val)) |
#define DIV_TO_REG |
( |
|
val | ) |
((val) == 8 ? 3 : (val) == 4 ? 2 : (val) == 1 ? 0 : 1) |
#define FAN_FROM_REG |
( |
|
val, |
|
|
|
div |
|
) |
| |
Value:((
val) == 0 ? 0 : (
val) == 255 ? 0 : 1350000 / \
Definition at line 182 of file via686a.c.
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define show_fan_offset |
( |
|
offset | ) |
|
Value:
show_fan_min, set_fan_min,
offset - 1); \
show_fan_div, set_fan_div,
offset - 1);
Definition at line 574 of file via686a.c.
#define show_in_offset |
( |
|
offset | ) |
|
#define show_temp_offset |
( |
|
offset | ) |
|
Value:
show_temp_over, set_temp_over,
offset - 1); \
show_temp_hyst, set_temp_hyst,
offset - 1);
Definition at line 497 of file via686a.c.
#define TEMP_FROM_REG |
( |
|
val | ) |
((long)tempLUT[val] * 100) |
#define VIA686A_BASE_REG 0x70 |
#define VIA686A_ENABLE_REG 0x74 |
#define VIA686A_EXTENT 0x80 |
#define VIA686A_REG_ALARM1 0x41 |
#define VIA686A_REG_ALARM2 0x42 |
#define VIA686A_REG_CONFIG 0x40 |
#define VIA686A_REG_FAN |
( |
|
nr | ) |
(0x28 + (nr)) |
#define VIA686A_REG_FAN_MIN |
( |
|
nr | ) |
(0x3a + (nr)) |
#define VIA686A_REG_FANDIV 0x47 |
#define VIA686A_REG_IN |
( |
|
nr | ) |
(0x22 + (nr)) |
#define VIA686A_REG_IN_MAX |
( |
|
nr | ) |
(0x2b + ((nr) * 2)) |
#define VIA686A_REG_IN_MIN |
( |
|
nr | ) |
(0x2c + ((nr) * 2)) |
#define VIA686A_REG_TEMP_LOW1 0x4b |
#define VIA686A_REG_TEMP_LOW23 0x49 |
#define VIA686A_REG_TEMP_MODE 0x4b |
#define VIA686A_TEMP_MODE_CONTINUOUS 0x00 |
#define VIA686A_TEMP_MODE_MASK 0x3F |
MODULE_AUTHOR |
( |
"Kyösti Mälkki <[email protected]> |
, |
|
|
""Mark Studebaker< mdsxyz123 @yahoo.com >""and Bob Dougherty< bobd @stanford.edu >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"VIA 686A Sensor device" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
via686a_pci_ids |
|
|
) |
| |
module_exit |
( |
sm_via686a_exit |
| ) |
|
module_init |
( |
sm_via686a_init |
| ) |
|
module_param |
( |
force_addr |
, |
|
|
ushort |
, |
|
|
0 |
|
|
) |
| |