Changeset 1777
- Timestamp:
- 06/08/03 23:33:39 (10 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 3 added
- 19 modified
-
CHANGES (modified) (4 diffs)
-
CONTRIBUTORS (modified) (1 diff)
-
Makefile (modified) (5 diffs)
-
README (modified) (5 diffs)
-
doc/chips/SUMMARY (modified) (1 diff)
-
doc/chips/adm1026 (added)
-
kernel/chips/Module.mk (modified) (1 diff)
-
kernel/chips/adm1026.c (added)
-
kernel/chips/lm85.c (modified) (4 diffs)
-
kernel/chips/lm92.c (modified) (1 diff)
-
kernel/include/Module.mk (modified) (2 diffs)
-
kernel/include/sensors.h.template (added)
-
lib/chips.c (modified) (2 diffs)
-
lib/chips.h (modified) (1 diff)
-
lib/proc.c (modified) (1 diff)
-
mkpatch/Config.in (modified) (1 diff)
-
mkpatch/FILES (modified) (1 diff)
-
mkpatch/mkpatch.pl (modified) (7 diffs)
-
prog/detect/sensors-detect (modified) (3 diffs)
-
prog/sensors/chips.c (modified) (1 diff)
-
prog/sensors/chips.h (modified) (1 diff)
-
prog/sensors/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r1766 r1777 26 26 File sensors.conf.eg: Fix vt1211/vt8231 thermistor calculations 27 27 Library: Add support for exponents and logarithms for vt1211/vt8235 temps; 28 add lm85 support; addw83791d support28 add adm1026, lm85, w83791d support 29 29 Makefiles: Generate warnings if new library won't be found by ld.so; 30 30 Modules now install in kernel/drivers/i2c/[busses,chips]; 31 31 Ensure that headers in /usr/local/include are used first; 32 32 Don't use /usr/include headers for modules; 33 Handle multiple UTS_RELEASE definitions in linux/version.h 33 Handle multiple UTS_RELEASE definitions in linux/version.h; 34 Automatically generate kernel/include/sensors.h 34 35 Modules (all): Cleanups including 35 36 - Add #include <i2c-proc.h> … … 50 51 Module adm1021: Set alarm on failed reads and report old value; 51 52 merge changes from kernel 2.5.54 53 Module adm1026: New 52 54 Module bmcsensors: Fix compile when DEBUG=1 53 55 Modules ddcmon, eeprom: Use i2c block reads if possible; 54 56 better error handling 57 Module ds1307: Add to Makefile 55 58 Module gl520sm: Fix temperature over/hyst writes 56 59 Module lm75: merge changes from kernel 2.5.54 … … 58 61 Module i2c-amd756: merge changes from kernel 2.5.54 59 62 Module i2c-amd8111: merge changes from kernel 2.5.54 60 Module i2c-i810.c: Fix for some chips 61 Module i2c-nforce2.c: New 63 Module i2c-i801: Add support for 82801EB (ICH5) 64 Module i2c-i810: Fix for some chips 65 Module i2c-nforce2: New 62 66 Module i2c-sis645: Add support for SiS651, SiS961, SiS745 63 67 Modules mtp008, smsc47m1, vt1211, vt8231, w83781d: Standardize and improve 64 68 pwm and pwm enable support; update docs 69 Module w83781d: Add support for w83791d 65 70 Module w83627hf: New 66 71 Program decode-dimms.pl: Recognize DDR and Rambus … … 68 73 Program eeprom, eepromer: Use local i2c-dev.h for build 69 74 Program lm_sensors.init: Call sensors -s in start() 70 Program mkpatch: Fix vt8231 compile; keep tsunami from menu on non-alpha 75 Program mkpatch: Fix vt8231 compile; keep tsunami from menu on non-alpha; 76 add adm1026,lm85 support 71 77 Program p4b_smbus: Fix 'make install', install in same place as other modules 72 78 Program pwmtest: New 73 Program sensors: add lm85 support; addw83791d support79 Program sensors: add adm1026, lm85, w83791d support 74 80 Program sensors-detect: Add super i/o detection (smsc47m1, vt1211, 75 81 w83627hf, w83697hf); 76 82 Add support for SiS651, SiS961, SiS745, nForce2; 77 Support dmidecode 2.0 and later 83 Support dmidecode 2.0 and later; 84 Fix "C" format error; 85 Add support for adm1026, 82801EB (ICH5) 78 86 79 87 2.7.0 (20021208) -
lm-sensors/trunk/CONTRIBUTORS
r1726 r1777 86 86 * Philip Pokorny <ppokorny@penguincomputing.com> 87 87 Author of the LM85 chip driver. 88 Author of the ADM1026 chip driver. -
lm-sensors/trunk/Makefile
r1746 r1777 172 172 LN := ln -sfn 173 173 GREP := grep 174 AWK := awk 175 SED := sed 174 176 175 177 # Determine the default compiler flags … … 287 289 %.d: %.c 288 290 $(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \ 289 sed-e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@291 $(SED) -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@ 290 292 291 293 … … 297 299 %.rd: %.c 298 300 $(CC) -M -MG $(PROGCPPFLAGS) $(PROGCFLAGS) $< | \ 299 sed-e 's@^\(.*\)\.o:@$*.rd $*.ro: Makefile '`dirname $*.rd`/Module.mk' @' > $@301 $(SED) -e 's@^\(.*\)\.o:@$*.rd $*.ro: Makefile '`dirname $*.rd`/Module.mk' @' > $@ 300 302 301 303 … … 310 312 %.ad: %.c 311 313 $(CC) -M -MG $(ARCPPFLAGS) $(ARCFLAGS) $< | \ 312 sed-e 's@^\(.*\)\.o:@$*.ad $*.ao: Makefile '`dirname $*.ad`/Module.mk' @' > $@314 $(SED) -e 's@^\(.*\)\.o:@$*.ad $*.ao: Makefile '`dirname $*.ad`/Module.mk' @' > $@ 313 315 314 316 … … 319 321 %.ld: %.c 320 322 $(CC) -M -MG $(LIBCPPFLAGS) $(LIBCFLAGS) $< | \ 321 sed-e 's@^\(.*\)\.o:@$*.ld $*.lo: Makefile '`dirname $*.ld`/Module.mk' @' > $@323 $(SED) -e 's@^\(.*\)\.o:@$*.ld $*.lo: Makefile '`dirname $*.ld`/Module.mk' @' > $@ 322 324 323 325 -
lm-sensors/trunk/README
r1726 r1777 9 9 OVERVIEW OF THE LM_SENSORS PACKAGE AND SUMMARY OF SUPPORTED DEVICES 10 10 11 !!! THIS PACKAGE REQUIRES i2c-2. 7.0 or later!!!11 !!! THIS PACKAGE REQUIRES i2c-2.8.0 or later!!! 12 12 13 13 FOR 2.5 KERNELS, we do not recommend attempting to compile this package. 14 Use kernel patches linked from our download page instead!!!14 Use the drivers already in the 2.5 kernel development tree. 15 15 16 16 ============================================================================= … … 20 20 Version 1 is now officially unsupported. 21 21 22 WARNING! This package will compile for 2.2 and 2.4 kernelsonly.22 WARNING! This package will kernels 2.4.9 - 2.4.xx only. 23 23 Use lm_sensors-2.4.5 for 2.0 kernels. 24 Use lm_sensors-2.7.0 for 2.2, 2.3, and 2.4.0 - 2.4.8 kernels. 24 25 Use the kernel patches linked from our download page for 2.5 kernels. 25 26 26 WARNING! You must get the latest i2c package, i2c-2. 7.0,27 WARNING! You must get the latest i2c package, i2c-2.8.0, 27 28 EVEN IF your kernel does contain i2c support!!!!!!!!! 28 29 29 30 Kernels 2.3.34 and later, and all 2.4.x kernels, contain the 30 I2C package. Kernels 2.4.13 - 2.4. 19contain i2c-2.6.1,31 I2C package. Kernels 2.4.13 - 2.4.20 contain i2c-2.6.1, 31 32 which is NOT sufficient for compilation of this package. 32 33 … … 47 48 Apple Hydra (used on some PPC machines) 48 49 DEC 21272/21274 (Tsunami/Typhoon - on Alpha boards) 49 Intel I801 ICH/ICH0/ICH2/ICH3 (used in Intel 810, 810E, 815E, 820, 840 chipsets)50 Intel I801 ICH/ICH0/ICH2/ICH3/ICH4/ICH5 50 51 Intel PIIX4 (used in many Intel chipsets) 51 52 Intel I810/I815 GMCH … … 61 62 62 63 At least the following hardware sensor chips are supported: 63 Analog Devices ADM1021, ADM1021A, ADM1022, ADM1023 64 ADM102 4, ADM1025, ADM1027 and ADM924064 Analog Devices ADM1021, ADM1021A, ADM1022, ADM1023, ADM1024, 65 ADM1025, ADM1026, ADM1027 and ADM9240 65 66 ADT7463 66 67 Asus AS99127F, ASB100 Bach … … 78 79 Philips NE1617, NE1617A 79 80 SiS 5595, 950 embedded sensors 80 SMSC 47M1xx embedded sensors 81 SMSC 47M1xx embedded sensors, EMC6D100, EMC6D101 81 82 TI THMC10 and THMC50 82 83 VIA Technologies VT1211 and VT82C686A/B embedded sensors -
lm-sensors/trunk/doc/chips/SUMMARY
r1726 r1777 64 64 adm1025 2 6 - - yes no 65 65 66 adm1026 67 adm1026 3 17 8 2 pwm+dac yes no 68 66 69 adm9240 67 70 adm9240 1 6 2 1 dac yes no -
lm-sensors/trunk/kernel/chips/Module.mk
r1771 r1777 46 46 ifneq ($(shell if grep -q '^CONFIG_SENSORS_ADM1025=y' $(LINUX)/.config; then echo 1; fi),1) 47 47 KERNELCHIPSTARGETS += $(MODULE_DIR)/adm1025.o 48 endif 49 ifneq ($(shell if grep -q '^CONFIG_SENSORS_ADM1026=y' $(LINUX)/.config; then echo 1; fi),1) 50 KERNELCHIPSTARGETS += $(MODULE_DIR)/adm1026.o 48 51 endif 49 52 ifneq ($(shell if grep -q '^CONFIG_SENSORS_ADM9240=y' $(LINUX)/.config; then echo 1; fi),1) -
lm-sensors/trunk/kernel/chips/lm85.c
r1740 r1777 484 484 }; 485 485 486 /* Unique ID assigned to each LM85 detected */ 487 static int lm85_id = 0; 488 486 489 /* -- SENSORS SYSCTL START -- */ 487 490 /* Common parameters */ … … 552 555 #define LM85_ALARM_TEMP3_FAULT 0x08000 553 556 /* -- SENSORS SYSCTL END -- */ 554 555 /* Unique ID assigned to each LM85 detected */556 static int lm85_id = 0;557 557 558 558 /* The /proc/sys entries */ … … 1568 1568 } else if (operation == SENSORS_PROC_REAL_WRITE) { 1569 1569 int old_config ; 1570 1570 1571 down(&data->update_lock); 1571 1572 old_config = data->autofan[nr].config ; … … 1930 1931 static int __init sm_lm85_init(void) 1931 1932 { 1932 printk("lm85 version %s (%s)\n", LM_VERSION, LM_DATE);1933 printk("lm85: Version %s (%s)\n", LM_VERSION, LM_DATE); 1933 1934 printk("lm85: See http://www.penguincomputing.com/lm_sensors for more info.\n" ); 1934 1935 return i2c_add_driver(&lm85_driver); -
lm-sensors/trunk/kernel/chips/lm92.c
r1723 r1777 61 61 /* -- SENSORS SYSCTL START -- */ 62 62 #define LM92_SYSCTL_ALARMS 2001 /* high, low, critical */ 63 #define LM92_SYSCTL_TEMP 1200 /* high, low, critical, hyster isis, input */63 #define LM92_SYSCTL_TEMP 1200 /* high, low, critical, hysteresis, input */ 64 64 65 65 #define LM92_ALARM_TEMP_HIGH 0x01 -
lm-sensors/trunk/kernel/include/Module.mk
r1705 r1777 27 27 endif 28 28 29 $(KERNELINCLUDEDIR)/sensors.h: $(KERNELINCLUDEDIR)/sensors.h.template 30 ( cat $@.template ; \ 31 $(AWK) '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' $(KERNELCHIPSDIR)/*.c ;\ 32 echo '#endif' \ 33 ) > $@ 34 35 $(KERNELINCLUDEDIR)/sensors.hd: 36 ( $(GREP) 'SENSORS SYSCTL START' /dev/null $(KERNELCHIPSDIR)/*.c | \ 37 $(SED) -e 's/:.*//' -e 's#^#$(KERNELINCLUDEDIR)/sensors.h: #' ) > $@ 38 39 # Get dependancies of sensors.h 40 INCLUDEFILES += $(MODULE_DIR)/sensors.hd 41 29 42 install-all-kernel-include: 30 43 if [ -n "$(KERNELINCLUDEFILES)" ] ; then \ … … 36 49 37 50 clean-all-kernel-include: 38 $(RM) $(KERNELINCLUDEDIR)/*.h.install 51 $(RM) $(KERNELINCLUDEDIR)/*.h.install $(KERNELINCLUDEDIR)/sensors.h $(KERNELINCLUDEDIR)/sensors.hd 39 52 40 53 clean :: clean-all-kernel-include -
lm-sensors/trunk/lib/chips.c
r1741 r1777 2082 2082 { 0 } 2083 2083 }; 2084 2084 2085 2086 static sensors_chip_feature adm1026_features[] = { 2087 { SENSORS_ADM1026_ALARMS, "alarms", 2088 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2089 ADM1026_SYSCTL_ALARMS, VALUE(1), 0 }, 2090 { SENSORS_ADM1026_ALARM_MASK, "alarm_mask", 2091 SENSORS_ADM1026_ALARMS, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2092 ADM1026_SYSCTL_ALARM_MASK, VALUE(1), 0 }, 2093 { SENSORS_ADM1026_GPIO, "gpio", 2094 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2095 ADM1026_SYSCTL_GPIO, VALUE(1), 0 }, 2096 { SENSORS_ADM1026_GPIO_MASK, "gpio_mask", 2097 SENSORS_ADM1026_GPIO, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2098 ADM1026_SYSCTL_GPIO_MASK, VALUE(1), 0 }, 2099 { SENSORS_ADM1026_VID, "vid", 2100 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2101 ADM1026_SYSCTL_VID, VALUE(1), 3 }, 2102 { SENSORS_ADM1026_VRM, "vrm", 2103 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2104 ADM1026_SYSCTL_VRM, VALUE(1), 1 }, 2105 { SENSORS_ADM1026_PWM, "pwm", 2106 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2107 ADM1026_SYSCTL_PWM, VALUE(1), 0 }, 2108 { SENSORS_ADM1026_AFC_PWM, "afc_pwm", 2109 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2110 ADM1026_SYSCTL_PWM, VALUE(1), 0 }, 2111 { SENSORS_ADM1026_DAC, "analog_out", 2112 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2113 ADM1026_SYSCTL_ANALOG_OUT, VALUE(1), 0 }, 2114 { SENSORS_ADM1026_AFC_DAC, "afc_analog_out", 2115 SENSORS_ADM1026_DAC, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2116 ADM1026_SYSCTL_AFC, VALUE(2), 0 }, 2117 2118 { SENSORS_ADM1026_IN0, "in0", 2119 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2120 ADM1026_SYSCTL_IN0, VALUE(3), 3 }, 2121 { SENSORS_ADM1026_IN0_MIN, "in0_min", 2122 SENSORS_ADM1026_IN0, SENSORS_ADM1026_IN0, SENSORS_MODE_RW, 2123 ADM1026_SYSCTL_IN0, VALUE(1), 3 }, 2124 { SENSORS_ADM1026_IN0_MAX, "in0_max", 2125 SENSORS_ADM1026_IN0, SENSORS_ADM1026_IN0, SENSORS_MODE_RW, 2126 ADM1026_SYSCTL_IN0, VALUE(2), 3 }, 2127 { SENSORS_ADM1026_IN1, "in1", 2128 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2129 ADM1026_SYSCTL_IN1, VALUE(3), 3 }, 2130 { SENSORS_ADM1026_IN1_MIN, "in1_min", 2131 SENSORS_ADM1026_IN1, SENSORS_ADM1026_IN1, SENSORS_MODE_RW, 2132 ADM1026_SYSCTL_IN1, VALUE(1), 3 }, 2133 { SENSORS_ADM1026_IN1_MAX, "in1_max", 2134 SENSORS_ADM1026_IN1, SENSORS_ADM1026_IN1, SENSORS_MODE_RW, 2135 ADM1026_SYSCTL_IN1, VALUE(2), 3 }, 2136 { SENSORS_ADM1026_IN2, "in2", 2137 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2138 ADM1026_SYSCTL_IN2, VALUE(3), 3 }, 2139 { SENSORS_ADM1026_IN2_MIN, "in2_min", 2140 SENSORS_ADM1026_IN2, SENSORS_ADM1026_IN2, SENSORS_MODE_RW, 2141 ADM1026_SYSCTL_IN2, VALUE(1), 3 }, 2142 { SENSORS_ADM1026_IN2_MAX, "in2_max", 2143 SENSORS_ADM1026_IN2, SENSORS_ADM1026_IN2, SENSORS_MODE_RW, 2144 ADM1026_SYSCTL_IN2, VALUE(2), 3 }, 2145 { SENSORS_ADM1026_IN3, "in3", 2146 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2147 ADM1026_SYSCTL_IN3, VALUE(3), 3 }, 2148 { SENSORS_ADM1026_IN3_MIN, "in3_min", 2149 SENSORS_ADM1026_IN3, SENSORS_ADM1026_IN3, SENSORS_MODE_RW, 2150 ADM1026_SYSCTL_IN3, VALUE(1), 3 }, 2151 { SENSORS_ADM1026_IN3_MAX, "in3_max", 2152 SENSORS_ADM1026_IN3, SENSORS_ADM1026_IN3, SENSORS_MODE_RW, 2153 ADM1026_SYSCTL_IN3, VALUE(2), 3 }, 2154 { SENSORS_ADM1026_IN4, "in4", 2155 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2156 ADM1026_SYSCTL_IN4, VALUE(3), 3 }, 2157 { SENSORS_ADM1026_IN4_MIN, "in4_min", 2158 SENSORS_ADM1026_IN4, SENSORS_ADM1026_IN4, SENSORS_MODE_RW, 2159 ADM1026_SYSCTL_IN4, VALUE(1), 3 }, 2160 { SENSORS_ADM1026_IN4_MAX, "in4_max", 2161 SENSORS_ADM1026_IN4, SENSORS_ADM1026_IN4, SENSORS_MODE_RW, 2162 ADM1026_SYSCTL_IN4, VALUE(2), 3 }, 2163 { SENSORS_ADM1026_IN5, "in5", 2164 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2165 ADM1026_SYSCTL_IN5, VALUE(3), 3 }, 2166 { SENSORS_ADM1026_IN5_MIN, "in5_min", 2167 SENSORS_ADM1026_IN5, SENSORS_ADM1026_IN5, SENSORS_MODE_RW, 2168 ADM1026_SYSCTL_IN5, VALUE(1), 3 }, 2169 { SENSORS_ADM1026_IN5_MAX, "in5_max", 2170 SENSORS_ADM1026_IN5, SENSORS_ADM1026_IN5, SENSORS_MODE_RW, 2171 ADM1026_SYSCTL_IN5, VALUE(2), 3 }, 2172 { SENSORS_ADM1026_IN6, "in6", 2173 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2174 ADM1026_SYSCTL_IN6, VALUE(3), 3 }, 2175 { SENSORS_ADM1026_IN6_MIN, "in6_min", 2176 SENSORS_ADM1026_IN6, SENSORS_ADM1026_IN6, SENSORS_MODE_RW, 2177 ADM1026_SYSCTL_IN6, VALUE(1), 3 }, 2178 { SENSORS_ADM1026_IN6_MAX, "in6_max", 2179 SENSORS_ADM1026_IN6, SENSORS_ADM1026_IN6, SENSORS_MODE_RW, 2180 ADM1026_SYSCTL_IN6, VALUE(2), 3 }, 2181 { SENSORS_ADM1026_IN7, "in7", 2182 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2183 ADM1026_SYSCTL_IN7, VALUE(3), 3 }, 2184 { SENSORS_ADM1026_IN7_MIN, "in7_min", 2185 SENSORS_ADM1026_IN7, SENSORS_ADM1026_IN7, SENSORS_MODE_RW, 2186 ADM1026_SYSCTL_IN7, VALUE(1), 3 }, 2187 { SENSORS_ADM1026_IN7_MAX, "in7_max", 2188 SENSORS_ADM1026_IN7, SENSORS_ADM1026_IN7, SENSORS_MODE_RW, 2189 ADM1026_SYSCTL_IN7, VALUE(2), 3 }, 2190 { SENSORS_ADM1026_IN8, "in8", 2191 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2192 ADM1026_SYSCTL_IN8, VALUE(3), 3 }, 2193 { SENSORS_ADM1026_IN8_MIN, "in8_min", 2194 SENSORS_ADM1026_IN8, SENSORS_ADM1026_IN8, SENSORS_MODE_RW, 2195 ADM1026_SYSCTL_IN8, VALUE(1), 3 }, 2196 { SENSORS_ADM1026_IN8_MAX, "in8_max", 2197 SENSORS_ADM1026_IN8, SENSORS_ADM1026_IN8, SENSORS_MODE_RW, 2198 ADM1026_SYSCTL_IN8, VALUE(2), 3 }, 2199 { SENSORS_ADM1026_IN9, "in9", 2200 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2201 ADM1026_SYSCTL_IN9, VALUE(3), 3 }, 2202 { SENSORS_ADM1026_IN9_MIN, "in9_min", 2203 SENSORS_ADM1026_IN9, SENSORS_ADM1026_IN9, SENSORS_MODE_RW, 2204 ADM1026_SYSCTL_IN9, VALUE(1), 3 }, 2205 { SENSORS_ADM1026_IN9_MAX, "in9_max", 2206 SENSORS_ADM1026_IN9, SENSORS_ADM1026_IN9, SENSORS_MODE_RW, 2207 ADM1026_SYSCTL_IN9, VALUE(2), 3 }, 2208 { SENSORS_ADM1026_IN10, "in10", 2209 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2210 ADM1026_SYSCTL_IN10, VALUE(3), 3 }, 2211 { SENSORS_ADM1026_IN10_MIN, "in10_min", 2212 SENSORS_ADM1026_IN10, SENSORS_ADM1026_IN10, SENSORS_MODE_RW, 2213 ADM1026_SYSCTL_IN10, VALUE(1), 3 }, 2214 { SENSORS_ADM1026_IN10_MAX, "in10_max", 2215 SENSORS_ADM1026_IN10, SENSORS_ADM1026_IN10, SENSORS_MODE_RW, 2216 ADM1026_SYSCTL_IN10, VALUE(2), 3 }, 2217 { SENSORS_ADM1026_IN11, "in11", 2218 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2219 ADM1026_SYSCTL_IN11, VALUE(3), 3 }, 2220 { SENSORS_ADM1026_IN11_MIN, "in11_min", 2221 SENSORS_ADM1026_IN11, SENSORS_ADM1026_IN11, SENSORS_MODE_RW, 2222 ADM1026_SYSCTL_IN11, VALUE(1), 3 }, 2223 { SENSORS_ADM1026_IN11_MAX, "in11_max", 2224 SENSORS_ADM1026_IN11, SENSORS_ADM1026_IN11, SENSORS_MODE_RW, 2225 ADM1026_SYSCTL_IN11, VALUE(2), 3 }, 2226 { SENSORS_ADM1026_IN12, "in12", 2227 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2228 ADM1026_SYSCTL_IN12, VALUE(3), 3 }, 2229 { SENSORS_ADM1026_IN12_MIN, "in12_min", 2230 SENSORS_ADM1026_IN12, SENSORS_ADM1026_IN12, SENSORS_MODE_RW, 2231 ADM1026_SYSCTL_IN12, VALUE(1), 3 }, 2232 { SENSORS_ADM1026_IN12_MAX, "in12_max", 2233 SENSORS_ADM1026_IN12, SENSORS_ADM1026_IN12, SENSORS_MODE_RW, 2234 ADM1026_SYSCTL_IN12, VALUE(2), 3 }, 2235 { SENSORS_ADM1026_IN13, "in13", 2236 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2237 ADM1026_SYSCTL_IN13, VALUE(3), 3 }, 2238 { SENSORS_ADM1026_IN13_MIN, "in13_min", 2239 SENSORS_ADM1026_IN13, SENSORS_ADM1026_IN13, SENSORS_MODE_RW, 2240 ADM1026_SYSCTL_IN13, VALUE(1), 3 }, 2241 { SENSORS_ADM1026_IN13_MAX, "in13_max", 2242 SENSORS_ADM1026_IN13, SENSORS_ADM1026_IN13, SENSORS_MODE_RW, 2243 ADM1026_SYSCTL_IN13, VALUE(2), 3 }, 2244 { SENSORS_ADM1026_IN14, "in14", 2245 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2246 ADM1026_SYSCTL_IN14, VALUE(3), 3 }, 2247 { SENSORS_ADM1026_IN14_MIN, "in14_min", 2248 SENSORS_ADM1026_IN14, SENSORS_ADM1026_IN14, SENSORS_MODE_RW, 2249 ADM1026_SYSCTL_IN14, VALUE(1), 3 }, 2250 { SENSORS_ADM1026_IN14_MAX, "in14_max", 2251 SENSORS_ADM1026_IN14, SENSORS_ADM1026_IN14, SENSORS_MODE_RW, 2252 ADM1026_SYSCTL_IN14, VALUE(2), 3 }, 2253 { SENSORS_ADM1026_IN15, "in15", 2254 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2255 ADM1026_SYSCTL_IN15, VALUE(3), 3 }, 2256 { SENSORS_ADM1026_IN15_MIN, "in15_min", 2257 SENSORS_ADM1026_IN15, SENSORS_ADM1026_IN15, SENSORS_MODE_RW, 2258 ADM1026_SYSCTL_IN15, VALUE(1), 3 }, 2259 { SENSORS_ADM1026_IN15_MAX, "in15_max", 2260 SENSORS_ADM1026_IN15, SENSORS_ADM1026_IN15, SENSORS_MODE_RW, 2261 ADM1026_SYSCTL_IN15, VALUE(2), 3 }, 2262 { SENSORS_ADM1026_IN16, "in16", 2263 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2264 ADM1026_SYSCTL_IN16, VALUE(3), 3 }, 2265 { SENSORS_ADM1026_IN16_MIN, "in16_min", 2266 SENSORS_ADM1026_IN16, SENSORS_ADM1026_IN16, SENSORS_MODE_RW, 2267 ADM1026_SYSCTL_IN16, VALUE(1), 3 }, 2268 { SENSORS_ADM1026_IN16_MAX, "in16_max", 2269 SENSORS_ADM1026_IN16, SENSORS_ADM1026_IN16, SENSORS_MODE_RW, 2270 ADM1026_SYSCTL_IN16, VALUE(2), 3 }, 2271 { SENSORS_ADM1026_FAN0, "fan0", 2272 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2273 ADM1026_SYSCTL_FAN0, VALUE(2), 0 }, 2274 { SENSORS_ADM1026_FAN0_MIN, "fan0_min", 2275 SENSORS_ADM1026_FAN0, SENSORS_ADM1026_FAN0, SENSORS_MODE_RW, 2276 ADM1026_SYSCTL_FAN0, VALUE(1), 0 }, 2277 { SENSORS_ADM1026_FAN0_DIV, "fan0_div", 2278 SENSORS_ADM1026_FAN0, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2279 ADM1026_SYSCTL_FAN_DIV, VALUE(1), 0 }, 2280 { SENSORS_ADM1026_FAN1, "fan1", 2281 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2282 ADM1026_SYSCTL_FAN1, VALUE(2), 0 }, 2283 { SENSORS_ADM1026_FAN1_MIN, "fan1_min", 2284 SENSORS_ADM1026_FAN1, SENSORS_ADM1026_FAN1, SENSORS_MODE_RW, 2285 ADM1026_SYSCTL_FAN1, VALUE(1), 0 }, 2286 { SENSORS_ADM1026_FAN1_DIV, "fan1_div", 2287 SENSORS_ADM1026_FAN1, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2288 ADM1026_SYSCTL_FAN_DIV, VALUE(2), 0 }, 2289 { SENSORS_ADM1026_FAN2, "fan2", 2290 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2291 ADM1026_SYSCTL_FAN2, VALUE(2), 0 }, 2292 { SENSORS_ADM1026_FAN2_MIN, "fan2_min", 2293 SENSORS_ADM1026_FAN2, SENSORS_ADM1026_FAN2, SENSORS_MODE_RW, 2294 ADM1026_SYSCTL_FAN2, VALUE(1), 0 }, 2295 { SENSORS_ADM1026_FAN2_DIV, "fan2_div", 2296 SENSORS_ADM1026_FAN2, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2297 ADM1026_SYSCTL_FAN_DIV, VALUE(3), 0 }, 2298 { SENSORS_ADM1026_FAN3, "fan3", 2299 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2300 ADM1026_SYSCTL_FAN3, VALUE(2), 0 }, 2301 { SENSORS_ADM1026_FAN3_MIN, "fan3_min", 2302 SENSORS_ADM1026_FAN3, SENSORS_ADM1026_FAN3, SENSORS_MODE_RW, 2303 ADM1026_SYSCTL_FAN3, VALUE(1), 0 }, 2304 { SENSORS_ADM1026_FAN3_DIV, "fan3_div", 2305 SENSORS_ADM1026_FAN3, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2306 ADM1026_SYSCTL_FAN_DIV, VALUE(4), 0 }, 2307 { SENSORS_ADM1026_FAN4, "fan4", 2308 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2309 ADM1026_SYSCTL_FAN4, VALUE(2), 0 }, 2310 { SENSORS_ADM1026_FAN4_MIN, "fan4_min", 2311 SENSORS_ADM1026_FAN4, SENSORS_ADM1026_FAN4, SENSORS_MODE_RW, 2312 ADM1026_SYSCTL_FAN4, VALUE(1), 0 }, 2313 { SENSORS_ADM1026_FAN4_DIV, "fan4_div", 2314 SENSORS_ADM1026_FAN4, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2315 ADM1026_SYSCTL_FAN_DIV, VALUE(5), 0 }, 2316 { SENSORS_ADM1026_FAN5, "fan5", 2317 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2318 ADM1026_SYSCTL_FAN5, VALUE(2), 0 }, 2319 { SENSORS_ADM1026_FAN5_MIN, "fan5_min", 2320 SENSORS_ADM1026_FAN5, SENSORS_ADM1026_FAN5, SENSORS_MODE_RW, 2321 ADM1026_SYSCTL_FAN5, VALUE(1), 0 }, 2322 { SENSORS_ADM1026_FAN5_DIV, "fan5_div", 2323 SENSORS_ADM1026_FAN5, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2324 ADM1026_SYSCTL_FAN_DIV, VALUE(6), 0 }, 2325 { SENSORS_ADM1026_FAN6, "fan6", 2326 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2327 ADM1026_SYSCTL_FAN6, VALUE(2), 0 }, 2328 { SENSORS_ADM1026_FAN6_MIN, "fan6_min", 2329 SENSORS_ADM1026_FAN6, SENSORS_ADM1026_FAN6, SENSORS_MODE_RW, 2330 ADM1026_SYSCTL_FAN6, VALUE(1), 0 }, 2331 { SENSORS_ADM1026_FAN6_DIV, "fan6_div", 2332 SENSORS_ADM1026_FAN6, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2333 ADM1026_SYSCTL_FAN_DIV, VALUE(7), 0 }, 2334 { SENSORS_ADM1026_FAN7, "fan7", 2335 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2336 ADM1026_SYSCTL_FAN7, VALUE(2), 0 }, 2337 { SENSORS_ADM1026_FAN7_MIN, "fan7_min", 2338 SENSORS_ADM1026_FAN7, SENSORS_ADM1026_FAN7, SENSORS_MODE_RW, 2339 ADM1026_SYSCTL_FAN7, VALUE(1), 0 }, 2340 { SENSORS_ADM1026_FAN7_DIV, "fan7_div", 2341 SENSORS_ADM1026_FAN7, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2342 ADM1026_SYSCTL_FAN_DIV, VALUE(8), 0 }, 2343 { SENSORS_ADM1026_TEMP1, "temp1", 2344 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2345 ADM1026_SYSCTL_TEMP1, VALUE(3), 0 }, 2346 { SENSORS_ADM1026_TEMP1_MIN, "temp1_min", 2347 SENSORS_ADM1026_TEMP1, SENSORS_ADM1026_TEMP1, SENSORS_MODE_RW, 2348 ADM1026_SYSCTL_TEMP1, VALUE(1), 0 }, 2349 { SENSORS_ADM1026_TEMP1_MAX, "temp1_max", 2350 SENSORS_ADM1026_TEMP1, SENSORS_ADM1026_TEMP1, SENSORS_MODE_RW, 2351 ADM1026_SYSCTL_TEMP1, VALUE(2), 0 }, 2352 { SENSORS_ADM1026_TEMP1_OFFSET, "temp1_offset", 2353 SENSORS_ADM1026_TEMP1, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2354 ADM1026_SYSCTL_TEMP_OFFSET1, VALUE(1), 0 }, 2355 { SENSORS_ADM1026_TEMP1_TMIN, "temp1_tmin", 2356 SENSORS_ADM1026_TEMP1, SENSORS_ADM1026_TEMP1, SENSORS_MODE_RW, 2357 ADM1026_SYSCTL_TEMP_TMIN1, VALUE(1), 0 }, 2358 { SENSORS_ADM1026_TEMP1_THERM, "temp1_therm", 2359 SENSORS_ADM1026_TEMP1, SENSORS_ADM1026_TEMP1, SENSORS_MODE_RW, 2360 ADM1026_SYSCTL_TEMP_THERM1, VALUE(1), 0 }, 2361 { SENSORS_ADM1026_TEMP2, "temp2", 2362 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2363 ADM1026_SYSCTL_TEMP2, VALUE(3), 0 }, 2364 { SENSORS_ADM1026_TEMP2_MIN, "temp2_min", 2365 SENSORS_ADM1026_TEMP2, SENSORS_ADM1026_TEMP2, SENSORS_MODE_RW, 2366 ADM1026_SYSCTL_TEMP2, VALUE(1), 0 }, 2367 { SENSORS_ADM1026_TEMP2_MAX, "temp2_max", 2368 SENSORS_ADM1026_TEMP2, SENSORS_ADM1026_TEMP2, SENSORS_MODE_RW, 2369 ADM1026_SYSCTL_TEMP2, VALUE(2), 0 }, 2370 { SENSORS_ADM1026_TEMP2_OFFSET, "temp2_offset", 2371 SENSORS_ADM1026_TEMP2, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2372 ADM1026_SYSCTL_TEMP_OFFSET2, VALUE(1), 0 }, 2373 { SENSORS_ADM1026_TEMP2_TMIN, "temp2_tmin", 2374 SENSORS_ADM1026_TEMP2, SENSORS_ADM1026_TEMP2, SENSORS_MODE_RW, 2375 ADM1026_SYSCTL_TEMP_TMIN2, VALUE(1), 0 }, 2376 { SENSORS_ADM1026_TEMP2_THERM, "temp2_therm", 2377 SENSORS_ADM1026_TEMP2, SENSORS_ADM1026_TEMP2, SENSORS_MODE_RW, 2378 ADM1026_SYSCTL_TEMP_THERM2, VALUE(1), 0 }, 2379 { SENSORS_ADM1026_TEMP3, "temp3", 2380 SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, SENSORS_MODE_R, 2381 ADM1026_SYSCTL_TEMP3, VALUE(3), 0 }, 2382 { SENSORS_ADM1026_TEMP3_MIN, "temp3_min", 2383 SENSORS_ADM1026_TEMP3, SENSORS_ADM1026_TEMP3, SENSORS_MODE_RW, 2384 ADM1026_SYSCTL_TEMP3, VALUE(1), 0 }, 2385 { SENSORS_ADM1026_TEMP3_MAX, "temp3_max", 2386 SENSORS_ADM1026_TEMP3, SENSORS_ADM1026_TEMP3, SENSORS_MODE_RW, 2387 ADM1026_SYSCTL_TEMP3, VALUE(2), 0 }, 2388 { SENSORS_ADM1026_TEMP3_OFFSET, "temp3_offset", 2389 SENSORS_ADM1026_TEMP3, SENSORS_NO_MAPPING, SENSORS_MODE_RW, 2390 ADM1026_SYSCTL_TEMP_OFFSET3, VALUE(1), 0 }, 2391 { SENSORS_ADM1026_TEMP3_TMIN, "temp3_tmin", 2392 SENSORS_ADM1026_TEMP3, SENSORS_ADM1026_TEMP3, SENSORS_MODE_RW, 2393 ADM1026_SYSCTL_TEMP_TMIN3, VALUE(1), 0 }, 2394 { SENSORS_ADM1026_TEMP3_THERM, "temp3_therm", 2395 SENSORS_ADM1026_TEMP3, SENSORS_ADM1026_TEMP3, SENSORS_MODE_RW, 2396 ADM1026_SYSCTL_TEMP_THERM3, VALUE(1), 0 }, 2397 { 0 } 2398 }; 2399 2400 2085 2401 static sensors_chip_feature via686a_features[] = 2086 2402 { … … 3967 4283 { SENSORS_ADM1022_PREFIX, thmc50_features }, 3968 4284 { SENSORS_ADM1025_PREFIX, adm1025_features }, 4285 { SENSORS_ADM1026_PREFIX, adm1026_features }, 3969 4286 { SENSORS_VIA686A_PREFIX, via686a_features }, 3970 4287 { SENSORS_DDCMON_PREFIX, ddcmon_features }, -
lm-sensors/trunk/lib/chips.h
r1741 r1777 946 946 947 947 948 #define SENSORS_ADM1026_PREFIX "adm1026" 949 /* NOTE: print_adm1026 (sensors) depends on the ordering 950 * of these entries in each group. For example 951 * fan#, fan#_div, fan#_min 952 * temp#, temp#_max, temp#_min, temp#_offset 953 * and the ordering of the groups 954 * in0, in1, ... in9, in10, in11 955 */ 956 #define SENSORS_ADM1026_AFC_DAC 1 /* RW -- afc_analog_out */ 957 #define SENSORS_ADM1026_AFC_PWM 2 /* RW -- afc_pwm */ 958 #define SENSORS_ADM1026_ALARMS 3 /* R -- alarms */ 959 #define SENSORS_ADM1026_ALARM_MASK 4 /* R -- alarm_mask */ 960 #define SENSORS_ADM1026_DAC 5 /* RW -- analog_out */ 961 #define SENSORS_ADM1026_GPIO 6 /* R -- gpio */ 962 #define SENSORS_ADM1026_GPIO_MASK 7 /* R -- gpio_mask */ 963 #define SENSORS_ADM1026_PWM 8 /* RW -- pwm */ 964 #define SENSORS_ADM1026_VID 9 /* RW -- vid */ 965 #define SENSORS_ADM1026_VRM 10 /* RW -- vrm */ 966 #define SENSORS_ADM1026_FAN0 11 /* R -- fan0 */ 967 #define SENSORS_ADM1026_FAN0_DIV 12 /* RW -- fan0_div */ 968 #define SENSORS_ADM1026_FAN0_MIN 13 /* RW -- fan0_min */ 969 #define SENSORS_ADM1026_FAN1 14 /* R -- fan1 */ 970 #define SENSORS_ADM1026_FAN1_DIV 15 /* RW -- fan1_div */ 971 #define SENSORS_ADM1026_FAN1_MIN 16 /* RW -- fan1_min */ 972 #define SENSORS_ADM1026_FAN2 17 /* R -- fan2 */ 973 #define SENSORS_ADM1026_FAN2_DIV 18 /* RW -- fan2_div */ 974 #define SENSORS_ADM1026_FAN2_MIN 19 /* RW -- fan2_min */ 975 #define SENSORS_ADM1026_FAN3 20 /* R -- fan3 */ 976 #define SENSORS_ADM1026_FAN3_DIV 21 /* RW -- fan3_div */ 977 #define SENSORS_ADM1026_FAN3_MIN 22 /* RW -- fan3_min */ 978 #define SENSORS_ADM1026_FAN4 23 /* R -- fan4 */ 979 #define SENSORS_ADM1026_FAN4_DIV 24 /* RW -- fan4_div */ 980 #define SENSORS_ADM1026_FAN4_MIN 25 /* RW -- fan4_min */ 981 #define SENSORS_ADM1026_FAN5 26 /* R -- fan5 */ 982 #define SENSORS_ADM1026_FAN5_DIV 27 /* RW -- fan5_div */ 983 #define SENSORS_ADM1026_FAN5_MIN 28 /* RW -- fan5_min */ 984 #define SENSORS_ADM1026_FAN6 29 /* R -- fan6 */ 985 #define SENSORS_ADM1026_FAN6_DIV 30 /* RW -- fan6_div */ 986 #define SENSORS_ADM1026_FAN6_MIN 31 /* RW -- fan6_min */ 987 #define SENSORS_ADM1026_FAN7 32 /* R -- fan7 */ 988 #define SENSORS_ADM1026_FAN7_DIV 33 /* RW -- fan7_div */ 989 #define SENSORS_ADM1026_FAN7_MIN 34 /* RW -- fan7_min */ 990 #define SENSORS_ADM1026_IN0 35 /* R -- in0 */ 991 #define SENSORS_ADM1026_IN0_MAX 36 /* RW -- in0_max */ 992 #define SENSORS_ADM1026_IN0_MIN 37 /* RW -- in0_min */ 993 #define SENSORS_ADM1026_IN1 38 /* R -- in1 */ 994 #define SENSORS_ADM1026_IN1_MAX 39 /* RW -- in1_max */ 995 #define SENSORS_ADM1026_IN1_MIN 40 /* RW -- in1_min */ 996 #define SENSORS_ADM1026_IN2 41 /* R -- in2 */ 997 #define SENSORS_ADM1026_IN2_MAX 42 /* RW -- in2_max */ 998 #define SENSORS_ADM1026_IN2_MIN 43 /* RW -- in2_min */ 999 #define SENSORS_ADM1026_IN3 44 /* R -- in3 */ 1000 #define SENSORS_ADM1026_IN3_MAX 45 /* RW -- in3_max */ 1001 #define SENSORS_ADM1026_IN3_MIN 46 /* RW -- in3_min */ 1002 #define SENSORS_ADM1026_IN4 47 /* R -- in4 */ 1003 #define SENSORS_ADM1026_IN4_MAX 48 /* RW -- in4_max */ 1004 #define SENSORS_ADM1026_IN4_MIN 49 /* RW -- in4_min */ 1005 #define SENSORS_ADM1026_IN5 50 /* R -- in5 */ 1006 #define SENSORS_ADM1026_IN5_MAX 51 /* RW -- in5_max */ 1007 #define SENSORS_ADM1026_IN5_MIN 52 /* RW -- in5_min */ 1008 #define SENSORS_ADM1026_IN6 53 /* R -- in6 */ 1009 #define SENSORS_ADM1026_IN6_MAX 54 /* RW -- in6_max */ 1010 #define SENSORS_ADM1026_IN6_MIN 55 /* RW -- in6_min */ 1011 #define SENSORS_ADM1026_IN7 56 /* R -- in7 */ 1012 #define SENSORS_ADM1026_IN7_MAX 57 /* RW -- in7_max */ 1013 #define SENSORS_ADM1026_IN7_MIN 58 /* RW -- in7_min */ 1014 #define SENSORS_ADM1026_IN8 59 /* R -- in8 */ 1015 #define SENSORS_ADM1026_IN8_MAX 60 /* RW -- in8_max */ 1016 #define SENSORS_ADM1026_IN8_MIN 61 /* RW -- in8_min */ 1017 #define SENSORS_ADM1026_IN9 62 /* R -- in9 */ 1018 #define SENSORS_ADM1026_IN9_MAX 63 /* RW -- in9_max */ 1019 #define SENSORS_ADM1026_IN9_MIN 64 /* RW -- in9_min */ 1020 #define SENSORS_ADM1026_IN10 65 /* R -- in10 */ 1021 #define SENSORS_ADM1026_IN10_MAX 66 /* RW -- in10_max */ 1022 #define SENSORS_ADM1026_IN10_MIN 67 /* RW -- in10_min */ 1023 #define SENSORS_ADM1026_IN11 68 /* R -- in11 */ 1024 #define SENSORS_ADM1026_IN11_MAX 69 /* RW -- in11_max */ 1025 #define SENSORS_ADM1026_IN11_MIN 70 /* RW -- in11_min */ 1026 #define SENSORS_ADM1026_IN12 71 /* R -- in12 */ 1027 #define SENSORS_ADM1026_IN12_MAX 72 /* RW -- in12_max */ 1028 #define SENSORS_ADM1026_IN12_MIN 73 /* RW -- in12_min */ 1029 #define SENSORS_ADM1026_IN13 74 /* R -- in13 */ 1030 #define SENSORS_ADM1026_IN13_MAX 75 /* RW -- in13_max */ 1031 #define SENSORS_ADM1026_IN13_MIN 76 /* RW -- in13_min */ 1032 #define SENSORS_ADM1026_IN14 77 /* R -- in14 */ 1033 #define SENSORS_ADM1026_IN14_MAX 78 /* RW -- in14_max */ 1034 #define SENSORS_ADM1026_IN14_MIN 79 /* RW -- in14_min */ 1035 #define SENSORS_ADM1026_IN15 80 /* R -- in15 */ 1036 #define SENSORS_ADM1026_IN15_MAX 81 /* RW -- in15_max */ 1037 #define SENSORS_ADM1026_IN15_MIN 82 /* RW -- in15_min */ 1038 #define SENSORS_ADM1026_IN16 83 /* R -- in16 */ 1039 #define SENSORS_ADM1026_IN16_MAX 84 /* RW -- in16_max */ 1040 #define SENSORS_ADM1026_IN16_MIN 85 /* RW -- in16_min */ 1041 #define SENSORS_ADM1026_TEMP1 86 /* R -- temp1 */ 1042 #define SENSORS_ADM1026_TEMP1_MAX 87 /* RW -- temp1_max */ 1043 #define SENSORS_ADM1026_TEMP1_MIN 88 /* RW -- temp1_min */ 1044 #define SENSORS_ADM1026_TEMP1_OFFSET 89 /* RW -- temp1_offset */ 1045 #define SENSORS_ADM1026_TEMP1_THERM 90 /* RW -- temp1_therm */ 1046 #define SENSORS_ADM1026_TEMP1_TMIN 91 /* RW -- temp1_tmin */ 1047 #define SENSORS_ADM1026_TEMP2 92 /* R -- temp2 */ 1048 #define SENSORS_ADM1026_TEMP2_MAX 93 /* RW -- temp2_max */ 1049 #define SENSORS_ADM1026_TEMP2_MIN 94 /* RW -- temp2_min */ 1050 #define SENSORS_ADM1026_TEMP2_OFFSET 95 /* RW -- temp2_offset */ 1051 #define SENSORS_ADM1026_TEMP2_THERM 96 /* RW -- temp2_therm */ 1052 #define SENSORS_ADM1026_TEMP2_TMIN 97 /* RW -- temp2_tmin */ 1053 #define SENSORS_ADM1026_TEMP3 98 /* R -- temp3 */ 1054 #define SENSORS_ADM1026_TEMP3_MAX 99 /* RW -- temp3_max */ 1055 #define SENSORS_ADM1026_TEMP3_MIN 100 /* RW -- temp3_min */ 1056 #define SENSORS_ADM1026_TEMP3_OFFSET 101 /* RW -- temp3_offset */ 1057 #define SENSORS_ADM1026_TEMP3_THERM 102 /* RW -- temp3_therm */ 1058 #define SENSORS_ADM1026_TEMP3_TMIN 103 /* RW -- temp3_tmin */ 1059 948 1060 949 1061 #define SENSORS_VIA686A_PREFIX "via686a" -
lm-sensors/trunk/lib/proc.c
r1705 r1777 184 184 if (sysctl(sysctl_name, 4, buf, &buflen, NULL, 0)) 185 185 return -SENSORS_ERR_PROC; 186 if (sysctl_name[0] != CTL_DEV) { sysctl_name[0] = CTL_DEV ; } 186 187 for (mag = the_feature->scaling; mag > 0; mag --) 187 188 value *= 10.0; -
lm-sensors/trunk/mkpatch/Config.in
r1726 r1777 16 16 dep_tristate ' Analog Devices ADM1024' CONFIG_SENSORS_ADM1024 $CONFIG_I2C $CONFIG_I2C_PROC 17 17 dep_tristate ' Analog Devices ADM1025' CONFIG_SENSORS_ADM1025 $CONFIG_I2C $CONFIG_I2C_PROC 18 dep_tristate ' Analog Devices ADM1026' CONFIG_SENSORS_ADM1026 $CONFIG_I2C $CONFIG_I2C_PROC 18 19 dep_tristate ' Analog Devices ADM9240 and compatibles' CONFIG_SENSORS_ADM9240 $CONFIG_I2C $CONFIG_I2C_PROC 19 20 dep_tristate ' Dallas DS1621 and DS1625' CONFIG_SENSORS_DS1621 $CONFIG_I2C $CONFIG_I2C_PROC -
lm-sensors/trunk/mkpatch/FILES
r1726 r1777 22 22 kernel/chips/adm1024.c drivers/sensors/adm1024.c 23 23 kernel/chips/adm1025.c drivers/sensors/adm1025.c 24 kernel/chips/adm1026.c drivers/sensors/adm1026.c 24 25 kernel/chips/adm9240.c drivers/sensors/adm9240.c 25 26 kernel/chips/bt869.c drivers/sensors/bt869.c -
lm-sensors/trunk/mkpatch/mkpatch.pl
r1726 r1777 95 95 m@Analog Devices ADM1024@ or 96 96 m@Analog Devices ADM1025@ or 97 m@Analog Devices ADM1026@ or 97 98 m@Analog Devices ADM9240 and compatibles@ or 98 99 m@Dallas DS1621 and DS1625@ or … … 107 108 m@National Semiconductors LM78@ or 108 109 m@National Semiconductors LM80@ or 110 m@National Semiconductors LM85 and compatibles@ or 109 111 m@National Semiconductors LM87@ or 110 112 m@Silicon Integrated Systems Corp. SiS5595 Sensor@ or … … 284 286 http://www.lm-sensors.nu 285 287 288 Analog Devices ADM1026 289 CONFIG_SENSORS_ADM1026 290 If you say yes here you get support for Analog Devices ADM1026 sensor 291 chips. This can also be built as a module which can be inserted and 292 removed while the kernel is running. 293 294 You will also need the latest user-space utilties: you can find them 295 in the lm_sensors package, which you can download at 296 http://www.lm-sensors.nu 297 286 298 Analog Devices ADM9240 and compatibles 287 299 CONFIG_SENSORS_ADM9240 … … 402 414 sensor chips. This can also be built as a module which can be 403 415 inserted and removed while the kernel is running. 416 417 You will also need the latest user-space utilties: you can find them 418 in the lm_sensors package, which you can download at 419 http://www.lm-sensors.nu 420 421 National Semiconductor LM85 422 CONFIG_SENSORS_LM85 423 If you say yes here you get support for National Semiconductor LM85 424 sensor chips and compatibles. Compatible chips include the Analog 425 Devices ADM1027 and ADT7463 and SMSC EMC6D100 and EMC6D101. This 426 can also be built as a module which can be inserted and removed 427 while the kernel is running. 404 428 405 429 You will also need the latest user-space utilties: you can find them … … 874 898 obj-$(CONFIG_SENSORS_ADM1024) += adm1024.o 875 899 obj-$(CONFIG_SENSORS_ADM1025) += adm1025.o 900 obj-$(CONFIG_SENSORS_ADM1026) += adm1026.o 876 901 obj-$(CONFIG_SENSORS_ADM9240) += adm9240.o 877 902 obj-$(CONFIG_SENSORS_BT869) += bt869.o … … 958 983 endif 959 984 985 ifeq ($(CONFIG_SENSORS_ADM1026),y) 986 L_OBJS += adm1026.o 987 else 988 ifeq ($(CONFIG_SENSORS_ADM1026),m) 989 M_OBJS += adm1026.o 990 endif 991 endif 992 960 993 ifeq ($(CONFIG_SENSORS_ADM9240),y) 961 994 L_OBJS += adm9240.o … … 1051 1084 ifeq ($(CONFIG_SENSORS_LM80),m) 1052 1085 M_OBJS += lm80.o 1086 endif 1087 endif 1088 1089 ifeq ($(CONFIG_SENSORS_LM85),y) 1090 L_OBJS += lm85.o 1091 else 1092 ifeq ($(CONFIG_SENSORS_LM85),m) 1093 M_OBJS += lm85.o 1053 1094 endif 1054 1095 endif -
lm-sensors/trunk/prog/detect/sensors-detect
r1775 r1777 762 762 ddcmonitor_detect ds1621_detect adm1024_detect fscpos_detect 763 763 fscscy_detect pcf8591_detect arp_detect ipmi_kcs_detect 764 ipmi_smic_detect via8231_isa_detect lm85_detect smartbatt_detect); 764 ipmi_smic_detect via8231_isa_detect lm85_detect smartbatt_detect 765 adm1026_detect); 765 766 766 767 # This is a list of all recognized chips. … … 955 956 i2c_addrs => [0x2c..0x2f], 956 957 i2c_detect => sub { adm9240_detect 2, @_ } 958 }, 959 { 960 name => "Analog Devices ADM1026", 961 driver => "adm1026", 962 i2c_addrs => [0x2c,0x2d,0x2e], 963 i2c_detect => sub { adm1026_detect 0, @_ } 957 964 }, 958 965 { … … 2523 2530 return unless (i2c_smbus_read_byte_data($file,0x40) & 0x80) == 0x00; 2524 2531 return unless (i2c_smbus_read_byte_data($file,0x3f) & 0xf0) == 0x20; 2532 return (8); 2533 } 2534 2535 # $_[0]: Chip to detect (0 = ADM1026) 2536 # $_[1]: A reference to the file descriptor to access this chip. 2537 # We may assume an i2c_set_slave_addr was already done. 2538 # $_[2]: Address 2539 # Returns: undef if not detected, (8) if detected. 2540 # Registers used: 2541 # 0x16: Company ID 2542 # 0x17: Revision 2543 sub adm1026_detect 2544 { 2545 my $reg; 2546 my ($chip, $file,$addr) = @_; 2547 $reg = i2c_smbus_read_byte_data($file,0x16); 2548 return unless ($reg == 0x41); 2549 return unless (i2c_smbus_read_byte_data($file,0x17) & 0xf0) == 0x40; 2525 2550 return (8); 2526 2551 } -
lm-sensors/trunk/prog/sensors/chips.c
r1740 r1777 3968 3968 } 3969 3969 3970 static long adm1026_alarms_in[] = { 3971 ADM1026_ALARM_IN0, ADM1026_ALARM_IN1, ADM1026_ALARM_IN2, 3972 ADM1026_ALARM_IN3, ADM1026_ALARM_IN4, ADM1026_ALARM_IN5, 3973 ADM1026_ALARM_IN6, ADM1026_ALARM_IN7, ADM1026_ALARM_IN8, 3974 ADM1026_ALARM_IN9, ADM1026_ALARM_IN10, ADM1026_ALARM_IN11, 3975 ADM1026_ALARM_IN12, ADM1026_ALARM_IN13, ADM1026_ALARM_IN14, 3976 ADM1026_ALARM_IN15, ADM1026_ALARM_IN16 3977 }; 3978 static long adm1026_alarms_temp[] = { 3979 ADM1026_ALARM_TEMP1, ADM1026_ALARM_TEMP2, ADM1026_ALARM_TEMP3 3980 }; 3981 3982 void print_adm1026(const sensors_chip_name *name) 3983 { 3984 char *label = NULL; 3985 double cur,min,max; 3986 long alarms, gpio; 3987 int valid, i; 3988 3989 if (!sensors_get_feature(*name,SENSORS_ADM1026_ALARMS,&cur)) { 3990 alarms = cur + 0.5; 3991 } else { 3992 printf("ERROR: Can't get alarm data!\n"); 3993 alarms = 0; 3994 } 3995 3996 /* Seventeen voltage sensors */ 3997 for (i = 0; i <= 16 ; ++i) { 3998 int feat_base = SENSORS_ADM1026_IN0 + (3 * i); 3999 int feat_max = feat_base +1, feat_min = feat_base +2; 4000 if (!sensors_get_label_and_valid(*name,feat_base,&label,&valid) && 4001 !sensors_get_feature(*name,feat_base,&cur) && 4002 !sensors_get_feature(*name,feat_min,&min) && 4003 !sensors_get_feature(*name,feat_max,&max)) { 4004 if (valid) { 4005 print_label(label,10); 4006 printf("%+6.2f V (min = %+6.2f V, max = %+6.2f V) %s\n", 4007 cur,min,max,(alarms&adm1026_alarms_in[i])?"ALARM":""); 4008 } 4009 } else { 4010 printf("ERROR: Can't get IN%d data!\n",i); 4011 } 4012 free_the_label(&label); 4013 }; 4014 4015 /* Eight fan sensors */ 4016 for (i = 0; i <= 7 ; ++i) { 4017 int feat_base = SENSORS_ADM1026_FAN0 + (3 * i); 4018 int feat_div = feat_base +1, feat_min = feat_base +2; 4019 if (!sensors_get_label_and_valid(*name,feat_base,&label,&valid) && 4020 !sensors_get_feature(*name,feat_base,&cur) && 4021 !sensors_get_feature(*name,feat_min,&min) && 4022 !sensors_get_feature(*name,feat_div,&max)) { 4023 if (valid) { 4024 print_label(label,10); 4025 printf("%4.0f RPM (min = %4.0f RPM, div = %1.0f) %s\n", 4026 cur,min,max,(alarms&(ADM1026_ALARM_FAN0<<i))?"ALARM":""); 4027 } 4028 } else { 4029 printf("ERROR: Can't get FAN%d data!\n",i); 4030 } 4031 free_the_label(&label); 4032 }; 4033 4034 /* Three temperature sensors 4035 * NOTE: 6 config values per temperature 4036 * 0 current 4037 * 1 max 4038 * 2 min 4039 * 3 offset (to current) 4040 * 4 therm (SMBAlert) 4041 * 5 tmin (AFC) 4042 */ 4043 for (i = 0; i <= 2 ; ++i) { 4044 int feat_base = SENSORS_ADM1026_TEMP1 + (6 * i); 4045 int feat_max = feat_base +1; 4046 int feat_min = feat_base +2; 4047 4048 if (!sensors_get_label_and_valid(*name,feat_base,&label,&valid) && 4049 !sensors_get_feature(*name,feat_base,&cur) && 4050 !sensors_get_feature(*name,feat_min,&min) && 4051 !sensors_get_feature(*name,feat_max,&max)) { 4052 if (valid) { 4053 print_label(label,10); 4054 print_temp_info( cur, max, min, MINMAX, 0, 0); 4055 puts( (alarms&adm1026_alarms_temp[i])?" ALARM":"" ); 4056 } 4057 } else { 4058 printf("ERROR: Can't get TEMP%d data!\n",i+1); 4059 } 4060 free_the_label(&label); 4061 }; 4062 4063 /* VID/VRM */ 4064 if (!sensors_get_label_and_valid(*name,SENSORS_ADM1026_VID,&label,&valid) 4065 && !sensors_get_feature(*name,SENSORS_ADM1026_VID,&cur) 4066 && !sensors_get_feature(*name,SENSORS_ADM1026_VRM,&min) ) { 4067 if (valid) { 4068 print_label(label,10); 4069 printf("%+6.3f V (VRM Version %4.1f)\n",cur,min); 4070 } 4071 } 4072 free_the_label(&label); 4073 4074 } 4075 3970 4076 void print_unknown_chip(const sensors_chip_name *name) 3971 4077 { -
lm-sensors/trunk/prog/sensors/chips.h
r1726 r1777 29 29 extern void print_lm75(const sensors_chip_name *name); 30 30 extern void print_adm1021(const sensors_chip_name *name); 31 extern void print_adm1024(const sensors_chip_name *name); 31 32 extern void print_adm1025(const sensors_chip_name *name); 32 extern void print_adm102 4(const sensors_chip_name *name);33 extern void print_adm1026(const sensors_chip_name *name); 33 34 extern void print_adm9240(const sensors_chip_name *name); 34 35 extern void print_lm78(const sensors_chip_name *name); -
lm-sensors/trunk/prog/sensors/main.c
r1742 r1777 367 367 else if (!strcmp(name.prefix,"bmc")) 368 368 print_bmc(&name); 369 else if (!strcmp(name.prefix,"adm1026")) 370 print_adm1026(&name); 369 371 else 370 372 print_unknown_chip(&name);
