Changeset 49

Show
Ignore:
Timestamp:
12/08/98 17:58:10 (14 years ago)
Author:
frodo
Message:

More documentation, and some small bug fixes

* LM75 temperature limits initializations were switched
* LM78 VID readings were off by a factor 100
* New bit-mask constants in sensors.h for LM78 alarm field

Location:
lm-sensors/trunk
Files:
1 added
7 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/doc/lm75

    r48 r49  
    1010 
    1111Within each LM75 directory, you can find the following files: 
    12 * temp 
     12* temp (LM75_SYSCTL_TEMP) 
    1313  A list of three numbers. The first number is the Overtemperature Shutdown 
    14   value, the second number is Overtemperature Shutdown value, and the third 
    15   number is the current temperature. The first two values can be modified. 
    16   Each value can be set and read to half-degree accuracy. All values are in 
    17   degrees Celcius. 
     14  value, the second number is Hysteris value, and the third number is the 
     15  current temperature. The first two values can be modified. Each value can 
     16  be set and read to half-degree accuracy. All values are in degrees Celcius. 
    1817  An alarm is issued (usually to a connected LM78) when the temperature  
    1918  gets higher then the Overtemperature Shutdown value; it stays on until 
    2019  the temperature falls below the Hysteris value. 
    21   If read through sysctl, this is a list of longs, each being the temperature 
    22   times 10. 
     20  If accessed through sysctl, this is a list of longs, each being the 
     21  temperature times 10. 
     22 
     23The data for each LM75 is updated each 1.5 seconds, but only if it is actually 
     24read. 
  • lm-sensors/trunk/kernel/chips/lm75.c

    r46 r49  
    3838 
    3939/* Initial values */ 
    40 #define LM75_INIT_TEMP_OS 50 
    41 #define LM75_INIT_TEMP_HYST 60 
     40#define LM75_INIT_TEMP_OS 60 
     41#define LM75_INIT_TEMP_HYST 50 
    4242 
    4343/* Each client has this additional data */ 
  • lm-sensors/trunk/kernel/chips/lm78.c

    r46 r49  
    810810  struct lm78_data *data = client->data; 
    811811  if (operation == SENSORS_PROC_REAL_INFO) 
    812     *nrels_mag = 0; 
     812    *nrels_mag = 2; 
    813813  else if (operation == SENSORS_PROC_REAL_READ) { 
    814814    lm78_update_client(client); 
  • lm-sensors/trunk/kernel/include/sensors.h

    r42 r49  
    106106#define LM78_SYSCTL_ALARMS 2001 /* bitvector */ 
    107107 
     108#define LM78_ALARM_IN0 0x0001 
     109#define LM78_ALARM_IN1 0x0002 
     110#define LM78_ALARM_IN2 0x0004 
     111#define LM78_ALARM_IN3 0x0008 
     112#define LM78_ALARM_IN4 0x0100 
     113#define LM78_ALARM_IN5 0x0200 
     114#define LM78_ALARM_IN6 0x0400 
     115#define LM78_ALARM_FAN1 0x0040 
     116#define LM78_ALARM_FAN2 0x0080 
     117#define LM78_ALARM_FAN3 0x0800 
     118#define LM78_ALARM_TEMP 0x0010 
     119#define LM78_ALARM_BTI 0x0020 
     120#define LM78_ALARM_CHAS 0x1000 
     121#define LM78_ALARM_FIFO 0x2000 
     122#define LM78_ALARM_SMI_IN 0x4000 
     123 
    108124#define LM75_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */ 
    109125 
  • lm-sensors/trunk/src/lm75.c

    r46 r49  
    3838 
    3939/* Initial values */ 
    40 #define LM75_INIT_TEMP_OS 50 
    41 #define LM75_INIT_TEMP_HYST 60 
     40#define LM75_INIT_TEMP_OS 60 
     41#define LM75_INIT_TEMP_HYST 50 
    4242 
    4343/* Each client has this additional data */ 
  • lm-sensors/trunk/src/lm78.c

    r46 r49  
    810810  struct lm78_data *data = client->data; 
    811811  if (operation == SENSORS_PROC_REAL_INFO) 
    812     *nrels_mag = 0; 
     812    *nrels_mag = 2; 
    813813  else if (operation == SENSORS_PROC_REAL_READ) { 
    814814    lm78_update_client(client); 
  • lm-sensors/trunk/src/sensors.h

    r42 r49  
    106106#define LM78_SYSCTL_ALARMS 2001 /* bitvector */ 
    107107 
     108#define LM78_ALARM_IN0 0x0001 
     109#define LM78_ALARM_IN1 0x0002 
     110#define LM78_ALARM_IN2 0x0004 
     111#define LM78_ALARM_IN3 0x0008 
     112#define LM78_ALARM_IN4 0x0100 
     113#define LM78_ALARM_IN5 0x0200 
     114#define LM78_ALARM_IN6 0x0400 
     115#define LM78_ALARM_FAN1 0x0040 
     116#define LM78_ALARM_FAN2 0x0080 
     117#define LM78_ALARM_FAN3 0x0800 
     118#define LM78_ALARM_TEMP 0x0010 
     119#define LM78_ALARM_BTI 0x0020 
     120#define LM78_ALARM_CHAS 0x1000 
     121#define LM78_ALARM_FIFO 0x2000 
     122#define LM78_ALARM_SMI_IN 0x4000 
     123 
    108124#define LM75_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */ 
    109125