2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Winbond library support

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@122 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1998-12-26 01:39:10 +00:00
parent 9248881396
commit a1b75bd20c
2 changed files with 171 additions and 0 deletions

View File

@@ -522,6 +522,126 @@ static sensors_chip_feature lm80_features[] =
};
static sensors_chip_feature w83781d_features[] =
{
{ SENSORS_W83781D_IN0, "in0", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN0, VALUE(3), 2 },
{ SENSORS_W83781D_IN1, "in1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN1, VALUE(3), 2 },
{ SENSORS_W83781D_IN2, "in2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN2, VALUE(3), 2 },
{ SENSORS_W83781D_IN3, "in3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN3, VALUE(3), 2 },
{ SENSORS_W83781D_IN4, "in4", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN4, VALUE(3), 2 },
{ SENSORS_W83781D_IN5, "in5", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN5, VALUE(3), 2 },
{ SENSORS_W83781D_IN6, "in6", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_IN6, VALUE(3), 2 },
{ SENSORS_W83781D_IN0_MIN, "in0_min", SENSORS_W83781D_IN0,
SENSORS_W83781D_IN0, SENSORS_MODE_RW,
W83781D_SYSCTL_IN0, VALUE(1), 2 },
{ SENSORS_W83781D_IN1_MIN, "in1_min", SENSORS_W83781D_IN1,
SENSORS_W83781D_IN1, SENSORS_MODE_RW,
W83781D_SYSCTL_IN1, VALUE(1), 2 },
{ SENSORS_W83781D_IN2_MIN, "in2_min", SENSORS_W83781D_IN2,
SENSORS_W83781D_IN2, SENSORS_MODE_RW,
W83781D_SYSCTL_IN2, VALUE(1), 2 },
{ SENSORS_W83781D_IN3_MIN, "in3_min", SENSORS_W83781D_IN3,
SENSORS_W83781D_IN3, SENSORS_MODE_RW,
W83781D_SYSCTL_IN3, VALUE(1), 2 },
{ SENSORS_W83781D_IN4_MIN, "in4_min", SENSORS_W83781D_IN4,
SENSORS_W83781D_IN4, SENSORS_MODE_RW,
W83781D_SYSCTL_IN4, VALUE(1), 2 },
{ SENSORS_W83781D_IN5_MIN, "in5_min", SENSORS_W83781D_IN5,
SENSORS_W83781D_IN5, SENSORS_MODE_RW,
W83781D_SYSCTL_IN5, VALUE(1), 2 },
{ SENSORS_W83781D_IN6_MIN, "in6_min", SENSORS_W83781D_IN6,
SENSORS_W83781D_IN6, SENSORS_MODE_RW,
W83781D_SYSCTL_IN6, VALUE(1), 2 },
{ SENSORS_W83781D_IN0_MAX, "in0_max", SENSORS_W83781D_IN0,
SENSORS_W83781D_IN0, SENSORS_MODE_RW,
W83781D_SYSCTL_IN0, VALUE(2), 2 },
{ SENSORS_W83781D_IN1_MAX, "in1_max", SENSORS_W83781D_IN1,
SENSORS_W83781D_IN1, SENSORS_MODE_RW,
W83781D_SYSCTL_IN1, VALUE(2), 2 },
{ SENSORS_W83781D_IN2_MAX, "in2_max", SENSORS_W83781D_IN2,
SENSORS_W83781D_IN2, SENSORS_MODE_RW,
W83781D_SYSCTL_IN2, VALUE(2), 2 },
{ SENSORS_W83781D_IN3_MAX, "in3_max", SENSORS_W83781D_IN3,
SENSORS_W83781D_IN3, SENSORS_MODE_RW,
W83781D_SYSCTL_IN3, VALUE(2), 2 },
{ SENSORS_W83781D_IN4_MAX, "in4_max", SENSORS_W83781D_IN4,
SENSORS_W83781D_IN4, SENSORS_MODE_RW,
W83781D_SYSCTL_IN4, VALUE(2), 2 },
{ SENSORS_W83781D_IN5_MAX, "in5_max", SENSORS_W83781D_IN5,
SENSORS_W83781D_IN5, SENSORS_MODE_RW,
W83781D_SYSCTL_IN5, VALUE(2), 2 },
{ SENSORS_W83781D_IN6_MAX, "in6_max", SENSORS_W83781D_IN6,
SENSORS_W83781D_IN6, SENSORS_MODE_RW,
W83781D_SYSCTL_IN6, VALUE(2), 2 },
{ SENSORS_W83781D_FAN1, "fan1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_FAN1, VALUE(2), 0 },
{ SENSORS_W83781D_FAN2, "fan2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_FAN2, VALUE(2), 0 },
{ SENSORS_W83781D_FAN3, "fan3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_FAN3, VALUE(2), 0 },
{ SENSORS_W83781D_FAN1_MIN, "fan1_min", SENSORS_W83781D_FAN1,
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
W83781D_SYSCTL_FAN1, VALUE(1), 0 },
{ SENSORS_W83781D_FAN2_MIN, "fan2_min", SENSORS_W83781D_FAN2,
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
W83781D_SYSCTL_FAN2, VALUE(1), 0 },
{ SENSORS_W83781D_FAN3_MIN, "fan3_min", SENSORS_W83781D_FAN3,
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
W83781D_SYSCTL_FAN3, VALUE(1), 0 },
{ SENSORS_W83781D_TEMP1, "temp1", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_TEMP1, VALUE(3), 1 },
{ SENSORS_W83781D_TEMP1_HYST, "temp1_hyst", SENSORS_W83781D_TEMP1,
SENSORS_W83781D_TEMP1, SENSORS_MODE_RW,
W83781D_SYSCTL_TEMP1, VALUE(2), 1 },
{ SENSORS_W83781D_TEMP1_OVER, "temp1_over", SENSORS_W83781D_TEMP1,
SENSORS_W83781D_TEMP1, SENSORS_MODE_RW,
W83781D_SYSCTL_TEMP1, VALUE(1), 1 },
{ SENSORS_W83781D_TEMP2, "temp2", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_TEMP2, VALUE(3), 1 },
{ SENSORS_W83781D_TEMP2_HYST, "temp2_hyst", SENSORS_W83781D_TEMP2,
SENSORS_W83781D_TEMP2, SENSORS_MODE_RW,
W83781D_SYSCTL_TEMP2, VALUE(2), 1 },
{ SENSORS_W83781D_TEMP2_OVER, "temp2_over", SENSORS_W83781D_TEMP2,
SENSORS_W83781D_TEMP2, SENSORS_MODE_RW,
W83781D_SYSCTL_TEMP2, VALUE(1), 1 },
{ SENSORS_W83781D_TEMP3, "temp3", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_TEMP3, VALUE(3), 1 },
{ SENSORS_W83781D_TEMP3_HYST, "temp3_hyst", SENSORS_W83781D_TEMP3,
SENSORS_W83781D_TEMP3, SENSORS_MODE_RW,
W83781D_SYSCTL_TEMP3, VALUE(2), 1 },
{ SENSORS_W83781D_TEMP3_OVER, "temp3_over", SENSORS_W83781D_TEMP3,
SENSORS_W83781D_TEMP3, SENSORS_MODE_RW,
W83781D_SYSCTL_TEMP3, VALUE(1), 1 },
{ SENSORS_W83781D_VID, "vid", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_VID, VALUE(1), 2 },
{ SENSORS_W83781D_FAN1_DIV, "fan1_div", SENSORS_W83781D_FAN1,
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
W83781D_SYSCTL_FAN_DIV, VALUE(1), 0 },
{ SENSORS_W83781D_FAN2_DIV, "fan2_div", SENSORS_W83781D_FAN2,
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
W83781D_SYSCTL_FAN_DIV, VALUE(2), 0 },
{ SENSORS_W83781D_FAN3_DIV, "fan3_div", SENSORS_W83781D_FAN3,
SENSORS_NO_MAPPING, SENSORS_MODE_R,
W83781D_SYSCTL_FAN_DIV, VALUE(3), 0 },
{ SENSORS_W83781D_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING,
SENSORS_MODE_R, W83781D_SYSCTL_ALARMS, VALUE(1), 0 },
{ SENSORS_W83781D_BEEP_ENABLE, "beep_enable", SENSORS_W83781D_ALARMS,
SENSORS_NO_MAPPING, SENSORS_MODE_RW,
W83781D_SYSCTL_BEEP, VALUE(1), 0 },
{ SENSORS_W83781D_BEEPS, "beeps", SENSORS_W83781D_ALARMS,
SENSORS_W83781D_ALARMS, SENSORS_MODE_RW,
W83781D_SYSCTL_BEEP, VALUE(2), 0 },
{ 0 }
};
sensors_chip_features sensors_chip_features_list[] =
{
{ SENSORS_LM78_PREFIX, lm78_features },
@@ -531,6 +651,7 @@ sensors_chip_features sensors_chip_features_list[] =
{ SENSORS_GL518R00_PREFIX, gl518r00_features },
{ SENSORS_GL518R80_PREFIX, gl518r80_features },
{ SENSORS_LM80_PREFIX, lm80_features },
{ SENSORS_W83781D_PREFIX, w83781d_features },
{ 0 }
};

View File

@@ -268,4 +268,54 @@
#define SENSORS_LM80_FAN1_DIV 71 /* RW */
#define SENSORS_LM80_FAN2_DIV 72 /* RW */
#define SENSORS_LM80_ALARMS 81 /* R */
/* Winbond W83781D chips */
#define SENSORS_W83781D_PREFIX "w83781d"
#define SENSORS_W83781D_IN0 1 /* R */
#define SENSORS_W83781D_IN1 2 /* R */
#define SENSORS_W83781D_IN2 3 /* R */
#define SENSORS_W83781D_IN3 4 /* R */
#define SENSORS_W83781D_IN4 5 /* R */
#define SENSORS_W83781D_IN5 6 /* R */
#define SENSORS_W83781D_IN6 7 /* R */
#define SENSORS_W83781D_IN0_MIN 11 /* RW */
#define SENSORS_W83781D_IN1_MIN 12 /* RW */
#define SENSORS_W83781D_IN2_MIN 13 /* RW */
#define SENSORS_W83781D_IN3_MIN 14 /* RW */
#define SENSORS_W83781D_IN4_MIN 15 /* RW */
#define SENSORS_W83781D_IN5_MIN 16 /* RW */
#define SENSORS_W83781D_IN6_MIN 17 /* RW */
#define SENSORS_W83781D_IN0_MAX 21 /* RW */
#define SENSORS_W83781D_IN1_MAX 22 /* RW */
#define SENSORS_W83781D_IN2_MAX 23 /* RW */
#define SENSORS_W83781D_IN3_MAX 24 /* RW */
#define SENSORS_W83781D_IN4_MAX 25 /* RW */
#define SENSORS_W83781D_IN5_MAX 26 /* RW */
#define SENSORS_W83781D_IN6_MAX 27 /* RW */
#define SENSORS_W83781D_FAN1 31 /* R */
#define SENSORS_W83781D_FAN2 32 /* R */
#define SENSORS_W83781D_FAN3 33 /* R */
#define SENSORS_W83781D_FAN1_MIN 41 /* RW */
#define SENSORS_W83781D_FAN2_MIN 42 /* RW */
#define SENSORS_W83781D_FAN3_MIN 43 /* RW */
#define SENSORS_W83781D_TEMP1 51 /* R */
#define SENSORS_W83781D_TEMP1_HYST 52 /* RW */
#define SENSORS_W83781D_TEMP1_OVER 53 /* RW */
#define SENSORS_W83781D_TEMP2 51 /* R */
#define SENSORS_W83781D_TEMP2_HYST 52 /* RW */
#define SENSORS_W83781D_TEMP2_OVER 53 /* RW */
#define SENSORS_W83781D_TEMP3 51 /* R */
#define SENSORS_W83781D_TEMP3_HYST 52 /* RW */
#define SENSORS_W83781D_TEMP3_OVER 53 /* RW */
#define SENSORS_W83781D_VID 61 /* R */
#define SENSORS_W83781D_FAN1_DIV 71 /* RW */
#define SENSORS_W83781D_FAN2_DIV 72 /* RW */
#define SENSORS_W83781D_FAN3_DIV 73 /* R (yes, really! */
#define SENSORS_W83781D_ALARMS 81 /* R */
#define SENSORS_W83781D_BEEP_ENABLE 82 /* RW */
#define SENSORS_W83781D_BEEPS 83 /* RW */
#endif /* def LIB_SENSORS_CHIPS_H */