Changeset 4565
- Timestamp:
- 07/06/07 17:44:28 (1 year ago)
- Files:
-
- lm-sensors/trunk/CHANGES (modified) (2 diffs)
- lm-sensors/trunk/kernel/chips/it87.c (modified) (1 diff)
- lm-sensors/trunk/lib/chips.c (modified) (2 diffs)
- lm-sensors/trunk/lib/chips.h (modified) (1 diff)
- lm-sensors/trunk/prog/sensors/chips.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/CHANGES
r4561 r4565 13 13 Add support for the w83627ehf VID function 14 14 Add support for the w83627ehf thermal sensor types 15 Add support for it87 fan4 and fan5 15 16 Man page sensors.conf.5: Update the chip statement section 16 17 Module i2c-nforce2: Add nForce MCP61, MCP65 support (2.6 backport) … … 42 43 Add support for the w83627ehf VID function 43 44 Add support for the w83627ehf thermal sensor types 45 Add support for it87 fan4 and fan5 44 46 Program sensors-detect: Stop Super-I/O probe after first family success 45 47 Fix SMSC DME1737 detection lm-sensors/trunk/kernel/chips/it87.c
r4328 r4565 334 334 #define IT87_ALARM_FAN2 0x0002 335 335 #define IT87_ALARM_FAN3 0x0004 336 #define IT87_ALARM_FAN4 0x0008 337 #define IT87_ALARM_FAN5 0x0040 336 338 #define IT87_ALARM_TEMP1 0x00010000 337 339 #define IT87_ALARM_TEMP2 0x00020000 lm-sensors/trunk/lib/chips.c
r4563 r4565 4163 4163 { { SENSORS_IT87_FAN3, "fan3", NOMAP, NOMAP, R }, 4164 4164 IT87_SYSCTL_FAN3, VALUE(2), 0 }, 4165 { { SENSORS_IT87_FAN4, "fan4", NOMAP, NOMAP, R }, 4166 NOSYSCTL, VALUE(2), 0 }, 4167 { { SENSORS_IT87_FAN5, "fan5", NOMAP, NOMAP, R }, 4168 NOSYSCTL, VALUE(2), 0 }, 4165 4169 { { SENSORS_IT87_FAN1_MIN, "fan1_min", SENSORS_IT87_FAN1, SENSORS_IT87_FAN1, 4166 4170 RW }, … … 4172 4176 RW }, 4173 4177 IT87_SYSCTL_FAN3, VALUE(1), 0 }, 4178 { { SENSORS_IT87_FAN4_MIN, "fan4_min", SENSORS_IT87_FAN4, SENSORS_IT87_FAN4, 4179 RW }, 4180 NOSYSCTL, VALUE(1), 0 }, 4181 { { SENSORS_IT87_FAN5_MIN, "fan5_min", SENSORS_IT87_FAN5, SENSORS_IT87_FAN5, 4182 RW }, 4183 NOSYSCTL, VALUE(1), 0 }, 4174 4184 { { SENSORS_IT87_TEMP1, "temp1", NOMAP, NOMAP, R }, 4175 4185 IT87_SYSCTL_TEMP1, VALUE(3), 1 }, lm-sensors/trunk/lib/chips.h
r4563 r4565 1629 1629 #define SENSORS_IT87_FAN2 32 /* R */ 1630 1630 #define SENSORS_IT87_FAN3 33 /* R */ 1631 #define SENSORS_IT87_FAN4 34 /* R */ 1632 #define SENSORS_IT87_FAN5 35 /* R */ 1631 1633 #define SENSORS_IT87_FAN1_MIN 41 /* RW */ 1632 1634 #define SENSORS_IT87_FAN2_MIN 42 /* RW */ 1633 1635 #define SENSORS_IT87_FAN3_MIN 43 /* RW */ 1636 #define SENSORS_IT87_FAN4_MIN 44 /* RW */ 1637 #define SENSORS_IT87_FAN5_MIN 45 /* RW */ 1634 1638 #define SENSORS_IT87_TEMP1 51 /* R */ 1635 1639 #define SENSORS_IT87_TEMP2 52 /* R */ lm-sensors/trunk/prog/sensors/chips.c
r4563 r4565 3272 3272 char *label; 3273 3273 double cur, min, max, fdiv, sens; 3274 int alarms, valid; 3274 int alarms, valid, fan45; 3275 3276 /* The IT8716F, IT8718F and late revisions of the IT8712F have two 3277 additional (optional) fan inputs */ 3278 fan45 = strcmp(name->prefix, "it87"); 3275 3279 3276 3280 if (!sensors_get_feature(*name,SENSORS_IT87_ALARMS, &cur)) { … … 3431 3435 } 3432 3436 free(label); 3437 3438 if (fan45) { 3439 if (!sensors_get_label_and_valid(*name, SENSORS_IT87_FAN4, &label, &valid) && 3440 !sensors_get_feature(*name, SENSORS_IT87_FAN4, &cur) && 3441 !sensors_get_feature(*name, SENSORS_IT87_FAN4_MIN, &min)) { 3442 if (valid) { 3443 print_label(label, 10); 3444 printf("%4.0f RPM (min = %4.0f RPM) %s\n", 3445 cur, min, alarms&IT87_ALARM_FAN4?"ALARM":""); 3446 } 3447 } 3448 free(label); 3449 if (!sensors_get_label_and_valid(*name, SENSORS_IT87_FAN5, &label, &valid) && 3450 !sensors_get_feature(*name, SENSORS_IT87_FAN5, &cur) && 3451 !sensors_get_feature(*name, SENSORS_IT87_FAN5_MIN, &min)) { 3452 if (valid) { 3453 print_label(label, 10); 3454 printf("%4.0f RPM (min = %4.0f RPM) %s\n", 3455 cur, min, alarms&IT87_ALARM_FAN5?"ALARM":""); 3456 } 3457 } 3458 free(label); 3459 } 3433 3460 3434 3461 if (!sensors_get_label_and_valid(*name,SENSORS_IT87_TEMP1,&label,&valid) &&
