#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/jiffies.h>
Go to the source code of this file.
#define ALARM_CTRL_RTSACS (1 << 7) |
Value:(((
type) == 1) ? W83795_REG_IN_HL_LSB[(
index)] \
: (W83795_REG_IN_HL_LSB[(
index)] + 1))
Definition at line 130 of file w83795.c.
#define NUM_PWM_ATTRIBUTES 4 |
#define NUM_TEMP_ATTRIBUTES 8 |
#define OVT_CFG_SEL (1 << 7) |
#define SENSOR_ATTR_DTS |
( |
|
index | ) |
|
#define SENSOR_ATTR_FAN |
( |
|
index | ) |
|
#define SENSOR_ATTR_IN |
( |
|
index | ) |
|
#define SENSOR_ATTR_PWM |
( |
|
index | ) |
|
#define SENSOR_ATTR_TEMP |
( |
|
index | ) |
|
#define SETUP_PWM_DEFAULT 0 |
#define SETUP_PWM_DOWNTIME 2 |
#define SETUP_PWM_UPTIME 1 |
#define TEMP_PWM_ENABLE 0 |
#define TEMP_PWM_FAN_MAP 1 |
#define TSS_MAP_RESERVED 0xff |
#define W83795_REG_ALARM |
( |
|
index | ) |
(0x41 + (index)) |
#define W83795_REG_ALARM_CTRL 0x40 |
#define W83795_REG_BANKSEL 0x00 |
#define W83795_REG_BEEP |
( |
|
index | ) |
(0x50 + (index)) |
#define W83795_REG_CHIPID 0xfe |
#define W83795_REG_CLR_CHASSIS 0x4D |
#define W83795_REG_CONFIG 0x01 |
#define W83795_REG_CONFIG_CONFIG48 0x04 |
#define W83795_REG_CONFIG_START 0x01 |
#define W83795_REG_CTFS |
( |
|
index | ) |
(0x268 + (index)) |
#define W83795_REG_DEVICEID 0xfb |
#define W83795_REG_DEVICEID_A 0xff |
#define W83795_REG_DTS |
( |
|
index | ) |
(0x26 + (index)) |
#define W83795_REG_DTS_EXT |
( |
|
index | ) |
(0xB2 + (index)) |
#define W83795_REG_DTSC 0x301 |
#define W83795_REG_DTSE 0x302 |
#define W83795_REG_FAN |
( |
|
index | ) |
(0x2E + (index)) |
#define W83795_REG_FAN_MIN_HL |
( |
|
index | ) |
(0xB6 + (index)) |
#define W83795_REG_FAN_MIN_LSB |
( |
|
index | ) |
(0xC4 + (index) / 2) |
#define W83795_REG_FAN_MIN_LSB_SHIFT |
( |
|
index | ) |
(((index) & 1) ? 4 : 0) |
#define W83795_REG_FANIN_CTRL1 0x06 |
#define W83795_REG_FANIN_CTRL2 0x07 |
#define W83795_REG_FCMS1 0x201 |
#define W83795_REG_FCMS2 0x208 |
#define W83795_REG_FOMC 0x20F |
#define W83795_REG_FTSH |
( |
|
index | ) |
(0x240 + (index) * 2) |
#define W83795_REG_FTSL |
( |
|
index | ) |
(0x241 + (index) * 2) |
#define W83795_REG_HT |
( |
|
index | ) |
(0x270 + (index)) |
#define W83795_REG_I2C_ADDR 0xfc |
#define W83795_REG_OVT_CFG 0x58 |
#define W83795_REG_PECI_TBASE |
( |
|
index | ) |
(0x320 + (index)) |
#define W83795_REG_PWM |
( |
|
index, |
|
|
|
nr |
|
) |
| (0x210 + (nr) * 8 + (index)) |
#define W83795_REG_SETUP_PWM |
( |
|
index | ) |
(0x20C + (index)) |
#define W83795_REG_SF4_PWM |
( |
|
temp_num, |
|
|
|
index |
|
) |
| (0x288 + 0x10 * (temp_num) + (index)) |
#define W83795_REG_SF4_TEMP |
( |
|
temp_num, |
|
|
|
index |
|
) |
| (0x280 + 0x10 * (temp_num) + (index)) |
#define W83795_REG_TEMP_CTRL1 0x04 |
#define W83795_REG_TEMP_CTRL2 0x05 |
#define W83795_REG_TFMR |
( |
|
index | ) |
(0x202 + (index)) |
#define W83795_REG_TFTS 0x250 |
#define W83795_REG_TSS |
( |
|
index | ) |
(0x209 + (index)) |
#define W83795_REG_TTTI |
( |
|
index | ) |
(0x260 + (index)) |
#define W83795_REG_VENDORID 0xfd |
#define W83795_REG_VID_CTRL 0x6A |
#define W83795_REG_VMIGB_CTRL 0x08 |
#define W83795_REG_VOLT_CTRL1 0x02 |
#define W83795_REG_VOLT_CTRL2 0x03 |
#define W83795_REG_VRLSB 0x3C |
MODULE_AUTHOR |
( |
"Wei |
Song, |
|
|
Jean Delvare< khali @linux-fr.org >" |
|
|
) |
| |
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
w83795_id |
|
|
) |
| |
module_i2c_driver |
( |
w83795_driver |
| ) |
|
MODULE_PARM_DESC |
( |
reset |
, |
|
|
"Set to 1 to reset |
chip, |
|
|
not recommended" |
|
|
) |
| |