#include <linux/module.h>
#include <linux/init.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/hwmon-vid.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
#define define_fan_sysfs |
( |
|
offset | ) |
|
Value:
show_fan_div, set_fan_div,
offset - 1); \
show_fan_min, set_fan_min,
offset - 1)
Definition at line 593 of file vt8231.c.
#define define_temperature_sysfs |
( |
|
offset | ) |
|
Value:
show_temp_max, set_temp_max,
offset - 1); \
show_temp_min, set_temp_min,
offset - 1)
Definition at line 476 of file vt8231.c.
#define define_voltage_sysfs |
( |
|
offset | ) |
|
Value:
show_in_min, set_in_min,
offset); \
show_in_max, set_in_max,
offset)
Definition at line 331 of file vt8231.c.
#define DIV_FROM_REG |
( |
|
val | ) |
(1 << (val)) |
#define FAN_FROM_REG |
( |
|
val, |
|
|
|
div |
|
) |
| ((val) == 0 ? 0 : 1310720 / ((val) * (div))) |
#define ISTEMP |
( |
|
i, |
|
|
|
ch_config |
|
) |
| |
Value:
((ch_config) >> ((
i)+1)) & 0x01)
Definition at line 118 of file vt8231.c.
#define ISVOLT |
( |
|
i, |
|
|
|
ch_config |
|
) |
| |
Value:
!(((ch_config) >> ((
i)+2)) & 0x01))
Definition at line 121 of file vt8231.c.
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define TEMP_FROM_REG |
( |
|
reg | ) |
(((253 * 4 - (reg)) * 550 + 105) / 210) |
#define TEMP_MAXMIN_FROM_REG |
( |
|
reg | ) |
(((253 - (reg)) * 2200 + 105) / 210) |
#define TEMP_MAXMIN_TO_REG |
( |
|
val | ) |
(253 - ((val) * 210 + 1100) / 2200) |
#define VT8231_BASE_REG 0x70 |
#define VT8231_ENABLE_REG 0x74 |
#define VT8231_EXTENT 0x80 |
#define VT8231_REG_ALARM1 0x41 |
#define VT8231_REG_ALARM2 0x42 |
#define VT8231_REG_CONFIG 0x40 |
#define VT8231_REG_FAN |
( |
|
nr | ) |
(0x29 + (nr)) |
#define VT8231_REG_FAN_MIN |
( |
|
nr | ) |
(0x3b + (nr)) |
#define VT8231_REG_FANDIV 0x47 |
#define VT8231_REG_TEMP1_CONFIG 0x4b |
#define VT8231_REG_TEMP2_CONFIG 0x4c |
#define VT8231_REG_TEMP_LOW01 0x49 |
#define VT8231_REG_TEMP_LOW25 0x4d |
#define VT8231_REG_UCH_CONFIG 0x4a |
define_temperature_sysfs |
( |
2 |
| ) |
|
define_temperature_sysfs |
( |
3 |
| ) |
|
define_temperature_sysfs |
( |
4 |
| ) |
|
define_temperature_sysfs |
( |
5 |
| ) |
|
define_temperature_sysfs |
( |
6 |
| ) |
|
define_voltage_sysfs |
( |
0 |
| ) |
|
define_voltage_sysfs |
( |
1 |
| ) |
|
define_voltage_sysfs |
( |
2 |
| ) |
|
define_voltage_sysfs |
( |
3 |
| ) |
|
define_voltage_sysfs |
( |
4 |
| ) |
|
MODULE_DESCRIPTION |
( |
"VT8231 sensors" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
vt8231_pci_ids |
|
|
) |
| |
module_exit |
( |
sm_vt8231_exit |
| ) |
|
module_init |
( |
sm_vt8231_init |
| ) |
|
module_param |
( |
force_addr |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |