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

Add support for the IT8716F (prefix it8716). It is mostly similar to the

IT8712F so there's not much to do. The most significant difference is that
fan speeds are now reported as 16-bit values, without fan clock dividers.
For this reason, I made the fan_divs optional in sensors. I also made the
fans themselves optional, as I noticed that a number of motherboards don't
use (and don't enable) fan3.

I've made a separate section (chip "it8716-*") in sensors.conf.eg, because
new motherboards tend to have different wirings (e.g. negative voltage
lines are not monitored) so this will make for saner defaults.

Thanks to Stian Oksavik for testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4083 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2006-08-03 20:28:20 +00:00
parent 0da02179e0
commit 79817f34ce
8 changed files with 103 additions and 18 deletions

View File

@@ -3602,39 +3602,48 @@ void print_it87(const sensors_chip_name *name)
if (!sensors_get_label_and_valid(*name,SENSORS_IT87_FAN1,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN1,&cur) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN1_DIV,&fdiv) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN1_MIN,&min)) {
if (valid) {
print_label(label,10);
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, alarms&IT87_ALARM_FAN1?"ALARM":"");
printf("%4.0f RPM (min = %4.0f RPM", cur, min);
/* fan1_div is optional */
if (!sensors_get_feature(*name, SENSORS_IT87_FAN1_DIV, &fdiv))
printf(", div = %1.0f)", fdiv);
else
printf(") ");
printf(" %s\n", alarms&IT87_ALARM_FAN1?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN1 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_IT87_FAN2,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN2,&cur) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN2_DIV,&fdiv) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN2_MIN,&min)) {
if (valid) {
print_label(label,10);
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, alarms&IT87_ALARM_FAN2?"ALARM":"");
printf("%4.0f RPM (min = %4.0f RPM", cur, min);
/* fan2_div is optional */
if (!sensors_get_feature(*name, SENSORS_IT87_FAN2_DIV, &fdiv))
printf(", div = %1.0f)", fdiv);
else
printf(") ");
printf(" %s\n", alarms&IT87_ALARM_FAN2?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN2 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_IT87_FAN3,&label,&valid) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN3,&cur) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN3_DIV,&fdiv) &&
!sensors_get_feature(*name,SENSORS_IT87_FAN3_MIN,&min)) {
if (valid) {
print_label(label,10);
printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n",
cur,min,fdiv, alarms&IT87_ALARM_FAN3?"ALARM":"");
printf("%4.0f RPM (min = %4.0f RPM", cur, min);
/* fan3_div is optional */
if (!sensors_get_feature(*name, SENSORS_IT87_FAN3_DIV, &fdiv))
printf(", div = %1.0f)", fdiv);
else
printf(") ");
printf(" %s\n", alarms&IT87_ALARM_FAN3?"ALARM":"");
}
} else
printf("ERROR: Can't get FAN3 data!\n");
}
free(label);
if (!sensors_get_label_and_valid(*name,SENSORS_IT87_TEMP1,&label,&valid) &&