Changeset 4890

Show
Ignore:
Timestamp:
09/26/07 19:20:00 (7 years ago)
Author:
khali
Message:

Add lm87 support to sensord.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4887 r4890  
    2626                   Add w83793 support 
    2727                   Log the error code on failure 
     28                   Add lm87 support 
    2829  Program sensors: Fix a memory leak on error (with -u) 
    2930                   Add sch311x support 
  • lm-sensors/trunk/prog/sensord/chips.c

    r4823 r4890  
    546546static const ChipDescriptor lm80_chip = { 
    547547  lm80_names, lm80_features, SENSORS_LM80_ALARMS, 0 
     548}; 
     549 
     550/** LM87 **/ 
     551 
     552static const char *lm87_names[] = { 
     553  SENSORS_LM87_PREFIX, NULL 
     554}; 
     555 
     556static const FeatureDescriptor lm87_features[] = { 
     557  { fmtVolts_2, rrdF2, DataType_voltage, LM87_ALARM_IN0, 0, 
     558    { SENSORS_LM87_IN0, SENSORS_LM87_IN0_MIN, SENSORS_LM87_IN0_MAX, -1 } }, 
     559  { fmtVolts_2, rrdF2, DataType_voltage, LM87_ALARM_IN1, 0, 
     560    { SENSORS_LM87_IN1, SENSORS_LM87_IN1_MIN, SENSORS_LM87_IN1_MAX, -1 } }, 
     561  { fmtVolts_2, rrdF2, DataType_voltage, LM87_ALARM_IN2, 0, 
     562    { SENSORS_LM87_IN2, SENSORS_LM87_IN2_MIN, SENSORS_LM87_IN2_MAX, -1 } }, 
     563  { fmtVolts_2, rrdF2, DataType_voltage, LM87_ALARM_IN3, 0, 
     564    { SENSORS_LM87_IN3, SENSORS_LM87_IN3_MIN, SENSORS_LM87_IN3_MAX, -1 } }, 
     565  { fmtVolts_2, rrdF2, DataType_voltage, LM87_ALARM_IN4, 0, 
     566    { SENSORS_LM87_IN4, SENSORS_LM87_IN4_MIN, SENSORS_LM87_IN4_MAX, -1 } }, 
     567  { fmtVolts_2, rrdF2, DataType_voltage, LM87_ALARM_IN5, 0, 
     568    { SENSORS_LM87_IN5, SENSORS_LM87_IN5_MIN, SENSORS_LM87_IN5_MAX, -1 } }, 
     569  { fmtFans_0, rrdF0, DataType_rpm, LM87_ALARM_FAN1, 0, 
     570    { SENSORS_LM87_FAN1, SENSORS_LM87_FAN1_MIN, SENSORS_LM87_FAN1_DIV, -1 } }, 
     571  { fmtFans_0, rrdF0, DataType_rpm, LM87_ALARM_FAN2, 0, 
     572    { SENSORS_LM87_FAN2, SENSORS_LM87_FAN2_MIN, SENSORS_LM87_FAN2_DIV, -1 } }, 
     573  { fmtTemps_minmax_0, rrdF1, DataType_temperature, LM87_ALARM_TEMP1, 0, 
     574    { SENSORS_LM87_TEMP1, SENSORS_LM87_TEMP1_HYST, SENSORS_LM87_TEMP1_OVER, -1 } }, 
     575  { fmtTemps_minmax_0, rrdF1, DataType_temperature, LM87_ALARM_TEMP2, 0, 
     576    { SENSORS_LM87_TEMP2, SENSORS_LM87_TEMP2_HYST, SENSORS_LM87_TEMP2_OVER, -1 } }, 
     577  { fmtTemps_minmax_0, rrdF1, DataType_temperature, LM87_ALARM_TEMP3, 0, 
     578    { SENSORS_LM87_TEMP3, SENSORS_LM87_TEMP3_HYST, SENSORS_LM87_TEMP3_OVER, -1 } }, 
     579  { NULL } 
     580}; 
     581 
     582static const ChipDescriptor lm87_chip = { 
     583  lm87_names, lm87_features, SENSORS_LM87_ALARMS, 0 
    548584}; 
    549585 
     
    13721408  &lm78_chip, 
    13731409  &lm80_chip, 
     1410  &lm87_chip, 
    13741411  &max1617_chip, 
    13751412  &maxilife_chip,