Changeset 839
- Timestamp:
- 07/09/00 05:25:04 (9 years ago)
- Files:
-
- lm-sensors/trunk/CHANGES (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
r837 r839 15 15 16 16 2.5.2 (200007??) 17 Programs: understand /dev/i2c* files (instead of /dev/i2c-*) too. 17 File sensors.conf.eg: Fix lm80 in8 calculation 18 Module w83781d: W83783S no longer crashes on unloading 18 19 Program sensors-detect: more robustness in case of unknown i2c adapters 19 Module w83781d: W83783S no longer crashes on unloading20 Program sensors-detect, libsensors: fix eeprom size reporting 20 21 Program sensord: more flexility, support for alarm scanning etc. 21 22 Program sensors: support for ignore setting on sensor alarms. 23 Programs: understand /dev/i2c* files (instead of /dev/i2c-*) too. 22 24 23 25 2.5.1 (20000618) lm-sensors/trunk/lib/chips.c
r803 r839 1759 1759 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, 1760 1760 SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(3), 0 }, 1761 /* cheat and use the row-address-bits label for the total size in sensors */ 1761 1762 { SENSORS_EEPROM_ROWADDR, "SDRAM Size (MB)", 1762 1763 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, … … 1768 1769 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, 1769 1770 SENSORS_MODE_R, EEPROM_SYSCTL1, VALUE(6), 0 }, 1771 { SENSORS_EEPROM_BANKS, "banks", 1772 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, 1773 SENSORS_MODE_R, EEPROM_SYSCTL2, VALUE(2), 0 }, 1770 1774 { 0 } 1771 1775 }; lm-sensors/trunk/lib/chips.h
r814 r839 816 816 #define SENSORS_EEPROM_COLADDR 13 817 817 #define SENSORS_EEPROM_NUMROWS 14 818 #define SENSORS_EEPROM_BANKS 15 818 819 819 820 #endif /* def LIB_SENSORS_CHIPS_H */ lm-sensors/trunk/prog/sensors/chips.c
r837 r839 1757 1757 { 1758 1758 char *label = NULL; 1759 double a, b, c ;1759 double a, b, c, d; 1760 1760 int valid, i; 1761 1761 … … 1775 1775 !sensors_get_feature(*name, SENSORS_EEPROM_ROWADDR, &a) && 1776 1776 !sensors_get_feature(*name, SENSORS_EEPROM_COLADDR, &b) && 1777 !sensors_get_feature(*name, SENSORS_EEPROM_NUMROWS, &c)) { 1777 !sensors_get_feature(*name, SENSORS_EEPROM_NUMROWS, &c) && 1778 !sensors_get_feature(*name, SENSORS_EEPROM_BANKS, &d)) { 1778 1779 if (valid) { 1779 1780 print_label(label, 24); 1780 i = (((int) a) & 0x0f) + (((int) b) & 0x0f) + ((int) c) - 16;1781 if(i > 0 && i <= 1 0)1782 printf("%d\n", 1 << i);1781 i = (((int) a) & 0x0f) + (((int) b) & 0x0f) - 17; 1782 if(i > 0 && i <= 12 && c <= 8 && d <= 8) 1783 printf("%d\n", (1 << i) * ((int) c) * ((int) d)); 1783 1784 else 1785 { 1784 1786 printf("invalid\n"); 1787 printf("%d %d %d %d\n", (int) a, (int) b, (int) c, (int) d); 1788 } 1785 1789 } 1786 1790 } else
