root/lm-sensors/tags/V2-10-1/lib/chips.h

Revision 4155, 89.4 kB (checked in by khali, 2 years ago)

The VT1211 has no in6.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2     chips.h - Part of libsensors, a Linux library for reading sensor data.
3     Copyright (c) 1998, 1999  Frodo Looijaard <frodol@dds.nl>
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 /* This files contains, for each type of chip, the kind of values you can
21    read and write. The actual value of each define is completely arbitrary,
22    as long as, for one specific chip, each defined value is unique. I tried
23    to give similar features similar values, but you can't trust that.
24    Some entries are very alike (for example the LM78, LM78-J and LM79
25    defines). Where documented, you can mix the defines. If chip prefixes
26    are different, they get their own entry. */
27
28 /* If you add a chip here, do not forget to add the entry in chips.c too.
29    Other than that (and a recompile, and a bump up of the library number
30    for shared libs) nothing should need to be done to support new chips. */
31
32
33 /* LM78 chips */
34
35 #ifndef LIB_SENSORS_CHIPS_H
36 #define LIB_SENSORS_CHIPS_H
37
38 #define SENSORS_LM78_PREFIX "lm78"
39
40 #define SENSORS_LM78_IN0 1 /* R */
41 #define SENSORS_LM78_IN1 2 /* R */
42 #define SENSORS_LM78_IN2 3 /* R */
43 #define SENSORS_LM78_IN3 4 /* R */
44 #define SENSORS_LM78_IN4 5 /* R */
45 #define SENSORS_LM78_IN5 6 /* R */
46 #define SENSORS_LM78_IN6 7 /* R */
47 #define SENSORS_LM78_IN0_MIN 11 /* RW */
48 #define SENSORS_LM78_IN1_MIN 12 /* RW */
49 #define SENSORS_LM78_IN2_MIN 13 /* RW */
50 #define SENSORS_LM78_IN3_MIN 14 /* RW */
51 #define SENSORS_LM78_IN4_MIN 15 /* RW */
52 #define SENSORS_LM78_IN5_MIN 16 /* RW */
53 #define SENSORS_LM78_IN6_MIN 17 /* RW */
54 #define SENSORS_LM78_IN0_MAX 21 /* RW */
55 #define SENSORS_LM78_IN1_MAX 22 /* RW */
56 #define SENSORS_LM78_IN2_MAX 23 /* RW */
57 #define SENSORS_LM78_IN3_MAX 24 /* RW */
58 #define SENSORS_LM78_IN4_MAX 25 /* RW */
59 #define SENSORS_LM78_IN5_MAX 26 /* RW */
60 #define SENSORS_LM78_IN6_MAX 27 /* RW */
61 #define SENSORS_LM78_FAN1 31 /* R */
62 #define SENSORS_LM78_FAN2 32 /* R */
63 #define SENSORS_LM78_FAN3 33 /* R */
64 #define SENSORS_LM78_FAN1_MIN 41 /* RW */
65 #define SENSORS_LM78_FAN2_MIN 42 /* RW */
66 #define SENSORS_LM78_FAN3_MIN 43 /* RW */
67 #define SENSORS_LM78_TEMP 51 /* R */
68 #define SENSORS_LM78_TEMP_HYST 52 /* RW */
69 #define SENSORS_LM78_TEMP_OVER 53 /* RW */
70 #define SENSORS_LM78_VID 61 /* R */
71 #define SENSORS_LM78_FAN1_DIV 71 /* RW */
72 #define SENSORS_LM78_FAN2_DIV 72 /* RW */
73 #define SENSORS_LM78_FAN3_DIV 73 /* R (yes, really! */
74 #define SENSORS_LM78_ALARMS 81 /* R */
75
76
77 /* LM78-J chips. It is actually safe to use the LM78 defines instead, but it
78    is better practice to use these. */
79
80 #define SENSORS_LM78J_PREFIX "lm78-j"
81
82 #define SENSORS_LM78J_IN0 1 /* R */
83 #define SENSORS_LM78J_IN1 2 /* R */
84 #define SENSORS_LM78J_IN2 3 /* R */
85 #define SENSORS_LM78J_IN3 4 /* R */
86 #define SENSORS_LM78J_IN4 5 /* R */
87 #define SENSORS_LM78J_IN5 6 /* R */
88 #define SENSORS_LM78J_IN6 7 /* R */
89 #define SENSORS_LM78J_IN0_MIN 11 /* RW */
90 #define SENSORS_LM78J_IN1_MIN 12 /* RW */
91 #define SENSORS_LM78J_IN2_MIN 13 /* RW */
92 #define SENSORS_LM78J_IN3_MIN 14 /* RW */
93 #define SENSORS_LM78J_IN4_MIN 15 /* RW */
94 #define SENSORS_LM78J_IN5_MIN 16 /* RW */
95 #define SENSORS_LM78J_IN6_MIN 17 /* RW */
96 #define SENSORS_LM78J_IN0_MAX 21 /* RW */
97 #define SENSORS_LM78J_IN1_MAX 22 /* RW */
98 #define SENSORS_LM78J_IN2_MAX 23 /* RW */
99 #define SENSORS_LM78J_IN3_MAX 24 /* RW */
100 #define SENSORS_LM78J_IN4_MAX 25 /* RW */
101 #define SENSORS_LM78J_IN5_MAX 26 /* RW */
102 #define SENSORS_LM78J_IN6_MAX 27 /* RW */
103 #define SENSORS_LM78J_FAN1 31 /* R */
104 #define SENSORS_LM78J_FAN2 32 /* R */
105 #define SENSORS_LM78J_FAN3 33  /* R */
106 #define SENSORS_LM78J_FAN1_MIN 41 /* RW */
107 #define SENSORS_LM78J_FAN2_MIN 42 /* RW */
108 #define SENSORS_LM78J_FAN3_MIN 43 /* RW */
109 #define SENSORS_LM78J_TEMP 51 /* R */
110 #define SENSORS_LM78J_TEMP_HYST 52 /* RW */
111 #define SENSORS_LM78J_TEMP_OVER 53 /* RW */
112 #define SENSORS_LM78J_VID 61 /* R */
113 #define SENSORS_LM78J_FAN1_DIV 71 /* RW */
114 #define SENSORS_LM78J_FAN2_DIV 72 /* RW */
115 #define SENSORS_LM78J_FAN3_DIV 73 /* R (yes, really!) */
116 #define SENSORS_LM78J_ALARMS 81 /* R */
117
118
119 /* LM79 chips. It is actually safe to use the LM78 defines instead, but it
120    is better practice to use these. */
121
122 #define SENSORS_LM79_PREFIX "lm79"
123
124 #define SENSORS_LM79_IN0 1 /* R */
125 #define SENSORS_LM79_IN1 2 /* R */
126 #define SENSORS_LM79_IN2 3 /* R */
127 #define SENSORS_LM79_IN3 4 /* R */
128 #define SENSORS_LM79_IN4 5 /* R */
129 #define SENSORS_LM79_IN5 6 /* R */
130 #define SENSORS_LM79_IN6 7 /* R */
131 #define SENSORS_LM79_IN0_MIN 11 /* RW */
132 #define SENSORS_LM79_IN1_MIN 12 /* RW */
133 #define SENSORS_LM79_IN2_MIN 13 /* RW */
134 #define SENSORS_LM79_IN3_MIN 14 /* RW */
135 #define SENSORS_LM79_IN4_MIN 15 /* RW */
136 #define SENSORS_LM79_IN5_MIN 16 /* RW */
137 #define SENSORS_LM79_IN6_MIN 17 /* RW */
138 #define SENSORS_LM79_IN0_MAX 21 /* RW */
139 #define SENSORS_LM79_IN1_MAX 22 /* RW */
140 #define SENSORS_LM79_IN2_MAX 23 /* RW */
141 #define SENSORS_LM79_IN3_MAX 24 /* RW */
142 #define SENSORS_LM79_IN4_MAX 25 /* R */
143 #define SENSORS_LM79_IN5_MAX 26 /* R */
144 #define SENSORS_LM79_IN6_MAX 27 /* R */
145 #define SENSORS_LM79_FAN1 31 /* R */
146 #define SENSORS_LM79_FAN2 32 /* R */
147 #define SENSORS_LM79_FAN3 33 /* R */
148 #define SENSORS_LM79_FAN1_MIN 41 /* RW */
149 #define SENSORS_LM79_FAN2_MIN 42 /* RW */
150 #define SENSORS_LM79_FAN3_MIN 43 /* RW */
151 #define SENSORS_LM79_TEMP 51 /* R */
152 #define SENSORS_LM79_TEMP_HYST 52 /* RW */
153 #define SENSORS_LM79_TEMP_OVER 53 /* RW */
154 #define SENSORS_LM79_VID 61 /* R */
155 #define SENSORS_LM79_FAN1_DIV 71 /* RW */
156 #define SENSORS_LM79_FAN2_DIV 72 /* RW */
157 #define SENSORS_LM79_FAN3_DIV 73 /* R (yes, really! */
158 #define SENSORS_LM79_ALARMS 81 /* R */
159
160
161 /* LM75 chips. */
162
163 #define SENSORS_LM75_PREFIX "lm75"
164
165 #define SENSORS_LM75_TEMP 51 /* R */
166 #define SENSORS_LM75_TEMP_HYST 52 /* RW */
167 #define SENSORS_LM75_TEMP_OVER 53 /* RW */
168
169 /* ADM1021 chips. */
170
171 #define SENSORS_ADM1021_PREFIX "adm1021"
172 /* Cheat on LM84,GL523,THMC10,1023 for now - no separate #defines */
173 #define SENSORS_ADM1023_PREFIX "adm1023"
174 #define SENSORS_LM84_PREFIX "lm84"
175 #define SENSORS_GL523_PREFIX "gl523"
176 #define SENSORS_THMC10_PREFIX "thmc10"
177
178 #define SENSORS_ADM1021_TEMP 51 /* R */
179 #define SENSORS_ADM1021_TEMP_HYST 52 /* RW */
180 #define SENSORS_ADM1021_TEMP_OVER 53 /* RW */
181 #define SENSORS_ADM1021_REMOTE_TEMP 54 /* R */
182 #define SENSORS_ADM1021_REMOTE_TEMP_HYST 55 /* RW */
183 #define SENSORS_ADM1021_REMOTE_TEMP_OVER 56 /* RW */
184 #define SENSORS_ADM1021_ALARMS 81 /* R */
185 #define SENSORS_ADM1021_DIE_CODE 90 /* R */
186
187
188 /* ADM1030 and ADM1031 chips */
189
190 #define SENSORS_ADM1030_PREFIX "adm1030"
191 #define SENSORS_ADM1031_PREFIX "adm1031"
192
193 #define SENSORS_ADM1031_TEMP1      51 /* R */
194 #define SENSORS_ADM1031_TEMP1_MIN  52 /* RW */
195 #define SENSORS_ADM1031_TEMP1_MAX  53 /* RW */
196 #define SENSORS_ADM1031_TEMP1_CRIT 54 /* RW */
197
198 #define SENSORS_ADM1031_TEMP2      61 /* R */
199 #define SENSORS_ADM1031_TEMP2_MIN  62 /* RW */
200 #define SENSORS_ADM1031_TEMP2_MAX  63 /* RW */
201 #define SENSORS_ADM1031_TEMP2_CRIT 64 /* RW */
202
203 #define SENSORS_ADM1031_TEMP3      71 /* R */
204 #define SENSORS_ADM1031_TEMP3_MIN  72 /* RW */
205 #define SENSORS_ADM1031_TEMP3_MAX  73 /* RW */
206 #define SENSORS_ADM1031_TEMP3_CRIT 74 /* RW */
207
208
209 #define SENSORS_ADM1031_FAN1       80 /* R */
210 #define SENSORS_ADM1031_FAN1_MIN   81 /* RW */
211 #define SENSORS_ADM1031_FAN1_DIV   82 /* RW */
212 #define SENSORS_ADM1031_FAN2       90 /* R */
213 #define SENSORS_ADM1031_FAN2_MIN   91 /* RW */
214 #define SENSORS_ADM1031_FAN2_DIV   92 /* RW */
215
216 #define SENSORS_ADM1031_ALARMS    100 /* R */
217
218
219 /* MAX1617 chips. */
220
221 #define SENSORS_MAX1617_PREFIX "max1617"
222 #define SENSORS_MC1066_PREFIX "mc1066"
223
224 #define SENSORS_MAX1617_TEMP 51 /* R */
225 #define SENSORS_MAX1617_TEMP_HYST 52 /* RW */
226 #define SENSORS_MAX1617_TEMP_OVER 53 /* RW */
227 #define SENSORS_MAX1617_REMOTE_TEMP 54 /* R */
228 #define SENSORS_MAX1617_REMOTE_TEMP_HYST 55 /* RW */
229 #define SENSORS_MAX1617_REMOTE_TEMP_OVER 56 /* RW */
230 #define SENSORS_MAX1617_ALARMS 81 /* R */
231
232 /* MAX1617A chips. */
233
234 #define SENSORS_MAX1617A_PREFIX "max1617a"
235
236 #define SENSORS_MAX1617A_TEMP 51 /* R */
237 #define SENSORS_MAX1617A_TEMP_HYST 52 /* RW */
238 #define SENSORS_MAX1617A_TEMP_OVER 53 /* RW */
239 #define SENSORS_MAX1617A_REMOTE_TEMP 54 /* R */
240 #define SENSORS_MAX1617A_REMOTE_TEMP_HYST 55 /* RW */
241 #define SENSORS_MAX1617A_REMOTE_TEMP_OVER 56 /* RW */
242 #define SENSORS_MAX1617A_ALARMS 81 /* R */
243
244 /* GL518SM chips */
245
246 #define SENSORS_GL518_PREFIX "gl518sm"
247
248 #define SENSORS_GL518_VDD 1 /* R */
249 #define SENSORS_GL518_VIN1 2 /* R */
250 #define SENSORS_GL518_VIN2 3 /* R */
251 #define SENSORS_GL518_VIN3 4 /* R */
252 #define SENSORS_GL518_VDD_MIN 11 /* RW */
253 #define SENSORS_GL518_VIN1_MIN 12 /* RW */
254 #define SENSORS_GL518_VIN2_MIN 13 /* RW */
255 #define SENSORS_GL518_VIN3_MIN 14 /* RW */
256 #define SENSORS_GL518_VDD_MAX 21 /* RW */
257 #define SENSORS_GL518_VIN1_MAX 22 /* RW */
258 #define SENSORS_GL518_VIN2_MAX 23 /* RW */
259 #define SENSORS_GL518_VIN3_MAX 24 /* RW */
260 #define SENSORS_GL518_FAN1 31 /* R */
261 #define SENSORS_GL518_FAN2 32 /* R */
262 #define SENSORS_GL518_FAN1_MIN 41 /* RW */
263 #define SENSORS_GL518_FAN2_MIN 42 /* RW */
264 #define SENSORS_GL518_TEMP 51 /* R */
265 #define SENSORS_GL518_TEMP_HYST 52 /* RW */
266 #define SENSORS_GL518_TEMP_OVER 53 /* RW */
267 #define SENSORS_GL518_FAN1_DIV 71 /* RW */
268 #define SENSORS_GL518_FAN2_DIV 72 /* RW */
269 #define SENSORS_GL518_ALARMS 81 /* R */
270 #define SENSORS_GL518_BEEP_ENABLE 82 /* RW */
271 #define SENSORS_GL518_BEEPS 83 /* RW */
272 #define SENSORS_GL518_ITERATE 84 /* RW */
273 #define SENSORS_GL518_FAN1OFF 85 /* RW */
274 #define SENSORS_GL518_FAN1PIN 86 /* RW */
275
276 /* GL520SM chips */
277
278 #define SENSORS_GL520_PREFIX "gl520sm"
279
280 #define SENSORS_GL520_VDD 1 /* R */
281 #define SENSORS_GL520_VIN1 2 /* R */
282 #define SENSORS_GL520_VIN2 3 /* R */
283 #define SENSORS_GL520_VIN3 4 /* R */
284 #define SENSORS_GL520_VIN4 5 /* R */
285 #define SENSORS_GL520_VDD_MIN 11 /* RW */
286 #define SENSORS_GL520_VIN1_MIN 12 /* RW */
287 #define SENSORS_GL520_VIN2_MIN 13 /* RW */
288 #define SENSORS_GL520_VIN3_MIN 14 /* RW */
289 #define SENSORS_GL520_VIN4_MIN 15 /* RW */
290 #define SENSORS_GL520_VDD_MAX 21 /* RW */
291 #define SENSORS_GL520_VIN1_MAX 22 /* RW */
292 #define SENSORS_GL520_VIN2_MAX 23 /* RW */
293 #define SENSORS_GL520_VIN3_MAX 24 /* RW */
294 #define SENSORS_GL520_VIN4_MAX 25 /* RW */
295 #define SENSORS_GL520_FAN1 31 /* R */
296 #define SENSORS_GL520_FAN2 32 /* R */
297 #define SENSORS_GL520_FAN1_MIN 41 /* RW */
298 #define SENSORS_GL520_FAN2_MIN 42 /* RW */
299 #define SENSORS_GL520_TEMP1 51 /* R */
300 #define SENSORS_GL520_TEMP1_HYST 52 /* RW */
301 #define SENSORS_GL520_TEMP1_OVER 53 /* RW */
302 #define SENSORS_GL520_TEMP2 54 /* R */
303 #define SENSORS_GL520_TEMP2_HYST 55 /* RW */
304 #define SENSORS_GL520_TEMP2_OVER 56 /* RW */
305 #define SENSORS_GL520_VID 61 /* R */
306 #define SENSORS_GL520_FAN1_DIV 71 /* RW */
307 #define SENSORS_GL520_FAN2_DIV 72 /* RW */
308 #define SENSORS_GL520_ALARMS 81 /* R */
309 #define SENSORS_GL520_BEEP_ENABLE 82 /* RW */
310 #define SENSORS_GL520_BEEPS 83 /* RW */
311 #define SENSORS_GL520_TWOTEMPS 84 /* RW */
312 #define SENSORS_GL520_FAN1OFF 85 /* RW */
313
314 /* LM80 chips */
315
316 #define SENSORS_LM80_PREFIX "lm80"
317
318 #define SENSORS_LM80_IN0 1 /* R */
319 #define SENSORS_LM80_IN1 2 /* R */
320 #define SENSORS_LM80_IN2 3 /* R */
321 #define SENSORS_LM80_IN3 4 /* R */
322 #define SENSORS_LM80_IN4 5 /* R */
323 #define SENSORS_LM80_IN5 6 /* R */
324 #define SENSORS_LM80_IN6 7 /* R */
325 #define SENSORS_LM80_IN0_MIN 11 /* RW */
326 #define SENSORS_LM80_IN1_MIN 12 /* RW */
327 #define SENSORS_LM80_IN2_MIN 13 /* RW */
328 #define SENSORS_LM80_IN3_MIN 14 /* RW */
329 #define SENSORS_LM80_IN4_MIN 15 /* RW */
330 #define SENSORS_LM80_IN5_MIN 16 /* RW */
331 #define SENSORS_LM80_IN6_MIN 17 /* RW */
332 #define SENSORS_LM80_IN0_MAX 21 /* RW */
333 #define SENSORS_LM80_IN1_MAX 22 /* RW */
334 #define SENSORS_LM80_IN2_MAX 23 /* RW */
335 #define SENSORS_LM80_IN3_MAX 24 /* RW */
336 #define SENSORS_LM80_IN4_MAX 25 /* R */
337 #define SENSORS_LM80_IN5_MAX 26 /* R */
338 #define SENSORS_LM80_IN6_MAX 27 /* R */
339 #define SENSORS_LM80_FAN1 31 /* R */
340 #define SENSORS_LM80_FAN2 32 /* R */
341 #define SENSORS_LM80_FAN1_MIN 41 /* RW */
342 #define SENSORS_LM80_FAN2_MIN 42 /* RW */
343 #define SENSORS_LM80_TEMP 51 /* R */
344 #define SENSORS_LM80_TEMP_HOT_HYST 52 /* RW */
345 #define SENSORS_LM80_TEMP_HOT_MAX 53 /* RW */
346 #define SENSORS_LM80_TEMP_OS_HYST 54 /* RW */
347 #define SENSORS_LM80_TEMP_OS_MAX 55 /* RW */
348 #define SENSORS_LM80_FAN1_DIV 71 /* RW */
349 #define SENSORS_LM80_FAN2_DIV 72 /* RW */
350 #define SENSORS_LM80_ALARMS 81 /* R */
351
352 /* LM83 chips */
353
354 #define SENSORS_LM83_PREFIX "lm83"
355
356 #define SENSORS_LM83_LOCAL_TEMP 51 /* R */
357 #define SENSORS_LM83_LOCAL_HIGH 52 /* RW */
358 #define SENSORS_LM83_REMOTE1_TEMP 54 /* R */
359 #define SENSORS_LM83_REMOTE1_HIGH 55 /* RW */
360 #define SENSORS_LM83_REMOTE2_TEMP 57 /* R */
361 #define SENSORS_LM83_REMOTE2_HIGH 58 /* RW */
362 #define SENSORS_LM83_REMOTE3_TEMP 60 /* R */
363 #define SENSORS_LM83_REMOTE3_HIGH 61 /* RW */
364 #define SENSORS_LM83_TCRIT 80 /* RW */
365 #define SENSORS_LM83_ALARMS 81 /* R */
366
367 /* LM85 chips */
368
369 #define SENSORS_LM85_PREFIX "lm85"
370 #define SENSORS_LM85B_PREFIX "lm85b"
371 #define SENSORS_LM85C_PREFIX "lm85c"
372 #define SENSORS_ADM1027_PREFIX "adm1027"
373 #define SENSORS_ADT7463_PREFIX "adt7463"
374 #define SENSORS_EMC6D100_PREFIX "emc6d100"
375 #define SENSORS_EMC6D102_PREFIX "emc6d102"
376
377 #define SENSORS_ADM1027_ALARM_MASK           1  /* RW -- alarm_mask  */
378 #define SENSORS_ADM1027_FAN1_PPR             2  /* RW -- fan1_ppr  */
379 #define SENSORS_ADM1027_FAN1_TACH_MODE       3  /* RW -- fan1_tach_mode  */
380 #define SENSORS_ADM1027_FAN2_PPR             4  /* RW -- fan2_ppr  */
381 #define SENSORS_ADM1027_FAN2_TACH_MODE       5  /* RW -- fan2_tach_mode  */
382 #define SENSORS_ADM1027_FAN3_PPR             6  /* RW -- fan3_ppr  */
383 #define SENSORS_ADM1027_FAN3_TACH_MODE       7  /* RW -- fan3_tach_mode  */
384 #define SENSORS_ADM1027_FAN4_PPR             8  /* RW -- fan4_ppr  */
385 #define SENSORS_ADM1027_FAN4_TACH_MODE       9  /* RW -- fan4_tach_mode  */
386 #define SENSORS_ADM1027_PWM1_SMOOTH         10  /* RW -- pwm1_smooth  */
387 #define SENSORS_ADM1027_PWM2_SMOOTH         11  /* RW -- pwm2_smooth  */
388 #define SENSORS_ADM1027_PWM3_SMOOTH         12  /* RW -- pwm3_smooth  */
389 #define SENSORS_ADM1027_TEMP1_OFFSET        13  /* RW -- temp1_offset  */
390 #define SENSORS_ADM1027_TEMP2_OFFSET        14  /* RW -- temp2_offset  */
391 #define SENSORS_ADM1027_TEMP3_OFFSET        15  /* RW -- temp3_offset  */
392 #define SENSORS_LM85_ALARMS                 16  /* R  -- alarms  */
393 #define SENSORS_LM85_VID                    17  /* R  -- vid  */
394 #define SENSORS_LM85_VRM                    18  /* RW -- vrm  */
395 #define SENSORS_LM85_FAN1                   19  /* R  -- fan1  */
396 #define SENSORS_LM85_FAN1_MIN               20  /* RW -- fan1_min  */
397 #define SENSORS_LM85_FAN1_TACH_MODE         21  /* RW -- fan1_tach_mode  */
398 #define SENSORS_LM85_FAN2                   22  /* R  -- fan2  */
399 #define SENSORS_LM85_FAN2_MIN               23  /* RW -- fan2_min  */
400 #define SENSORS_LM85_FAN2_TACH_MODE         24  /* RW -- fan2_tach_mode  */
401 #define SENSORS_LM85_FAN3                   25  /* R  -- fan3  */
402 #define SENSORS_LM85_FAN3_MIN               26  /* RW -- fan3_min  */
403 #define SENSORS_LM85_FAN3_TACH_MODE         27  /* RW -- fan3_tach_mode  */
404 #define SENSORS_LM85_FAN4                   28  /* R  -- fan4  */
405 #define SENSORS_LM85_FAN4_MIN               29  /* RW -- fan4_min  */
406 #define SENSORS_LM85_IN0                    30  /* R  -- in0  */
407 #define SENSORS_LM85_IN0_MAX                31  /* RW -- in0_max  */
408 #define SENSORS_LM85_IN0_MIN                32  /* RW -- in0_min  */
409 #define SENSORS_LM85_IN1                    33  /* R  -- in1  */
410 #define SENSORS_LM85_IN1_MAX                34  /* RW -- in1_max  */
411 #define SENSORS_LM85_IN1_MIN                35  /* RW -- in1_min  */
412 #define SENSORS_LM85_IN2                    36  /* R  -- in2  */
413 #define SENSORS_LM85_IN2_MAX                37  /* RW -- in2_max  */
414 #define SENSORS_LM85_IN2_MIN                38  /* RW -- in2_min  */
415 #define SENSORS_LM85_IN3                    39  /* R  -- in3  */
416 #define SENSORS_LM85_IN3_MAX                40  /* RW -- in3_max  */
417 #define SENSORS_LM85_IN3_MIN                41  /* RW -- in3_min  */
418 #define SENSORS_LM85_IN4                    42  /* R  -- in4  */
419 #define SENSORS_LM85_IN4_MAX                43  /* RW -- in4_max  */
420 #define SENSORS_LM85_IN4_MIN                44  /* RW -- in4_min  */
421 #define SENSORS_LM85_IN5                    45  /* R  -- in5  */
422 #define SENSORS_LM85_IN5_MAX                46  /* RW -- in5_max  */
423 #define SENSORS_LM85_IN5_MIN                47  /* RW -- in5_min  */
424 #define SENSORS_LM85_IN6                    48  /* R  -- in6  */
425 #define SENSORS_LM85_IN6_MAX                49  /* RW -- in6_max  */
426 #define SENSORS_LM85_IN6_MIN                50  /* RW -- in6_min  */
427 #define SENSORS_LM85_IN7                    51  /* R  -- in7  */
428 #define SENSORS_LM85_IN7_MAX                52  /* RW -- in7_max  */
429 #define SENSORS_LM85_IN7_MIN                53  /* RW -- in7_min  */
430 #define SENSORS_LM85_PWM1                   54  /* RW -- pwm1  */
431 #define SENSORS_LM85_PWM1_FREQ              55  /* RW -- pwm1_freq  */
432 #define SENSORS_LM85_PWM1_INVERT            56  /* RW -- pwm1_invert  */
433 #define SENSORS_LM85_PWM1_MIN               57  /* RW -- pwm1_min  */
434 #define SENSORS_LM85_PWM1_MIN_CTL           58  /* RW -- pwm1_min_ctl  */
435 #define SENSORS_LM85_PWM1_SPINUP            59  /* RW -- pwm1_spinup  */
436 #define SENSORS_LM85_PWM1_SPINUP_CTL        60  /* RW -- pwm1_spinup_ctl  */
437 #define SENSORS_LM85_PWM1_ZONE              61  /* RW -- pwm1_zone  */
438 #define SENSORS_LM85_PWM2                   62  /* RW -- pwm2  */
439 #define SENSORS_LM85_PWM2_FREQ              63  /* RW -- pwm2_freq  */
440 #define SENSORS_LM85_PWM2_INVERT            64  /* RW -- pwm2_invert  */
441 #define SENSORS_LM85_PWM2_MIN               65  /* RW -- pwm2_min  */
442 #define SENSORS_LM85_PWM2_MIN_CTL           66  /* RW -- pwm2_min_ctl  */
443 #define SENSORS_LM85_PWM2_SPINUP            67  /* RW -- pwm2_spinup  */
444 #define SENSORS_LM85_PWM2_SPINUP_CTL        68  /* RW -- pwm2_spinup_ctl  */
445 #define SENSORS_LM85_PWM2_ZONE              69  /* RW -- pwm2_zone  */
446 #define SENSORS_LM85_PWM3                   70  /* RW -- pwm3  */
447 #define SENSORS_LM85_PWM3_FREQ              71  /* RW -- pwm3_freq  */
448 #define SENSORS_LM85_PWM3_INVERT            72  /* RW -- pwm3_invert  */
449 #define SENSORS_LM85_PWM3_MIN               73  /* RW -- pwm3_min  */
450 #define SENSORS_LM85_PWM3_MIN_CTL           74  /* RW -- pwm3_min_ctl  */
451 #define SENSORS_LM85_PWM3_SPINUP            75  /* RW -- pwm3_spinup  */
452 #define SENSORS_LM85_PWM3_SPINUP_CTL        76  /* RW -- pwm3_spinup_ctl  */
453 #define SENSORS_LM85_PWM3_ZONE              77  /* RW -- pwm3_zone  */
454 #define SENSORS_LM85_TEMP1                  78  /* R  -- temp1  */
455 #define SENSORS_LM85_TEMP1_MAX              79  /* RW -- temp1_max  */
456 #define SENSORS_LM85_TEMP1_MIN              80  /* RW -- temp1_min  */
457 #define SENSORS_LM85_TEMP2                  81  /* R  -- temp2  */
458 #define SENSORS_LM85_TEMP2_MAX              82  /* RW -- temp2_max  */
459 #define SENSORS_LM85_TEMP2_MIN              83  /* RW -- temp2_min  */
460 #define SENSORS_LM85_TEMP3                  84  /* R  -- temp3  */
461 #define SENSORS_LM85_TEMP3_MAX              85  /* RW -- temp3_max  */
462 #define SENSORS_LM85_TEMP3_MIN              86  /* RW -- temp3_min  */
463 #define SENSORS_LM85_ZONE1_CRITICAL         87  /* RW -- zone1_critical  */
464 #define SENSORS_LM85_ZONE1_HYST             88  /* RW -- zone1_hyst  */
465 #define SENSORS_LM85_ZONE1_LIMIT            89  /* RW -- zone1_limit  */
466 #define SENSORS_LM85_ZONE1_RANGE            90  /* RW -- zone1_range  */
467 #define SENSORS_LM85_ZONE1_SMOOTH           91  /* RW -- zone1_smooth  */
468 #define SENSORS_LM85_ZONE2_CRITICAL         92  /* RW -- zone2_critical  */
469 #define SENSORS_LM85_ZONE2_HYST             93  /* RW -- zone2_hyst  */
470 #define SENSORS_LM85_ZONE2_LIMIT            94  /* RW -- zone2_limit  */
471 #define SENSORS_LM85_ZONE2_RANGE            95  /* RW -- zone2_range  */
472 #define SENSORS_LM85_ZONE2_SMOOTH           96  /* RW -- zone2_smooth  */
473 #define SENSORS_LM85_ZONE3_CRITICAL         97  /* RW -- zone3_critical  */
474 #define SENSORS_LM85_ZONE3_HYST             98  /* RW -- zone3_hyst  */
475 #define SENSORS_LM85_ZONE3_LIMIT            99  /* RW -- zone3_limit  */
476 #define SENSORS_LM85_ZONE3_RANGE           100  /* RW -- zone3_range  */
477 #define SENSORS_LM85_ZONE3_SMOOTH          101  /* RW -- zone3_smooth  */
478
479 /* LM86/LM89/LM90/LM99/ADM1032/MAX6657/ADT7461 chips */
480
481 #define SENSORS_LM90_PREFIX "lm90"
482 #define SENSORS_ADM1032_PREFIX "adm1032"
483 #define SENSORS_LM99_PREFIX "lm99"
484 #define SENSORS_LM86_PREFIX "lm86"
485 #define SENSORS_MAX6657_PREFIX "max6657"
486 #define SENSORS_ADT7461_PREFIX "adt7461"
487
488 #define SENSORS_LM90_LOCAL_TEMP 51 /* R */
489 #define SENSORS_LM90_LOCAL_HIGH 52 /* RW */
490 #define SENSORS_LM90_LOCAL_LOW 53 /* RW */
491 #define SENSORS_LM90_LOCAL_TCRIT 54 /* RW */
492 #define SENSORS_LM90_REMOTE_TEMP 57 /* R */
493 #define SENSORS_LM90_REMOTE_HIGH 58 /* RW */
494 #define SENSORS_LM90_REMOTE_LOW 59 /* RW */
495 #define SENSORS_LM90_REMOTE_TCRIT 60 /* RW */
496 #define SENSORS_LM90_LOCAL_TCRIT_HYST 79 /* RW */
497 #define SENSORS_LM90_REMOTE_TCRIT_HYST 80 /* R, see driver source */
498 #define SENSORS_LM90_ALARMS 81 /* R */
499
500 /* LM63 chips */
501
502 #define SENSORS_LM63_PREFIX "lm63"
503
504 #define SENSORS_LM63_LOCAL_TEMP                 51 /* R  */
505 #define SENSORS_LM63_LOCAL_HIGH                 52 /* RW */
506 #define SENSORS_LM63_REMOTE_TEMP                57 /* R  */
507 #define SENSORS_LM63_REMOTE_HIGH                58 /* RW */
508 #define SENSORS_LM63_REMOTE_LOW                 59 /* RW */
509 #define SENSORS_LM63_REMOTE_TCRIT               60 /* R  */
510 #define SENSORS_LM63_REMOTE_TCRIT_HYST          80 /* RW */
511 #define SENSORS_LM63_ALARMS                     81 /* R  */
512 #define SENSORS_LM63_FAN                        84 /* R  */
513 #define SENSORS_LM63_FAN_LOW                    85 /* RW */
514 #define SENSORS_LM63_PWM                        87 /* RW */
515 #define SENSORS_LM63_PWM_ENABLE                 88 /* RW */
516
517 /* Winbond W83781D chips */
518
519 #define SENSORS_W83781D_PREFIX "w83781d"
520
521 #define SENSORS_W83781D_IN0 1 /* R */
522 #define SENSORS_W83781D_IN1 2 /* R */
523 #define SENSORS_W83781D_IN2 3 /* R */
524 #define SENSORS_W83781D_IN3 4 /* R */
525 #define SENSORS_W83781D_IN4 5 /* R */
526 #define SENSORS_W83781D_IN5 6 /* R */
527 #define SENSORS_W83781D_IN6 7 /* R */
528 #define SENSORS_W83781D_IN0_MIN 11 /* RW */
529 #define SENSORS_W83781D_IN1_MIN 12 /* RW */
530 #define SENSORS_W83781D_IN2_MIN 13 /* RW */
531 #define SENSORS_W83781D_IN3_MIN 14 /* RW */
532 #define SENSORS_W83781D_IN4_MIN 15 /* RW */
533 #define SENSORS_W83781D_IN5_MIN 16 /* RW */
534 #define SENSORS_W83781D_IN6_MIN 17 /* RW */
535 #define SENSORS_W83781D_IN0_MAX 21 /* RW */
536 #define SENSORS_W83781D_IN1_MAX 22 /* RW */
537 #define SENSORS_W83781D_IN2_MAX 23 /* RW */
538 #define SENSORS_W83781D_IN3_MAX 24 /* RW */
539 #define SENSORS_W83781D_IN4_MAX 25 /* RW */
540 #define SENSORS_W83781D_IN5_MAX 26 /* RW */
541 #define SENSORS_W83781D_IN6_MAX 27 /* RW */
542 #define SENSORS_W83781D_FAN1 31 /* R */
543 #define SENSORS_W83781D_FAN2 32 /* R */
544 #define SENSORS_W83781D_FAN3 33 /* R */
545 #define SENSORS_W83781D_FAN1_MIN 41 /* RW */
546 #define SENSORS_W83781D_FAN2_MIN 42 /* RW */
547 #define SENSORS_W83781D_FAN3_MIN 43 /* RW */
548 #define SENSORS_W83781D_TEMP1 51 /* R */
549 #define SENSORS_W83781D_TEMP1_HYST 52 /* RW */
550 #define SENSORS_W83781D_TEMP1_OVER 53 /* RW */
551 #define SENSORS_W83781D_TEMP2 54 /* R */
552 #define SENSORS_W83781D_TEMP2_HYST 55 /* RW */
553 #define SENSORS_W83781D_TEMP2_OVER 56 /* RW */
554 #define SENSORS_W83781D_TEMP3 57 /* R */
555 #define SENSORS_W83781D_TEMP3_HYST 58 /* RW */
556 #define SENSORS_W83781D_TEMP3_OVER 59 /* RW */
557 #define SENSORS_W83781D_VID 61 /* R */
558 #define SENSORS_W83781D_VRM 62 /* RW */
559 #define SENSORS_W83781D_FAN1_DIV 71 /* RW */
560 #define SENSORS_W83781D_FAN2_DIV 72 /* RW */
561 #define SENSORS_W83781D_FAN3_DIV 73 /* R (yes, really! */
562 #define SENSORS_W83781D_ALARMS 81 /* R */
563 #define SENSORS_W83781D_BEEP_ENABLE 82 /* RW */
564 #define SENSORS_W83781D_BEEPS 83 /* RW */
565 #define SENSORS_W83781D_SENS1 91 /* RW */
566 #define SENSORS_W83781D_SENS2 92 /* RW */
567 #define SENSORS_W83781D_SENS3 93 /* RW */
568
569
570 /* Winbond W83782D chips */
571 /* Cheat on 627HF for now - no separate #defines */
572 /* Cheat on 127F for now - no separate #defines */
573
574 #define SENSORS_W83782D_PREFIX "w83782d"
575 #define SENSORS_W83627HF_PREFIX "w83627hf"
576 #define SENSORS_W83627THF_PREFIX "w83627thf"
577 #define SENSORS_W83637HF_PREFIX "w83637hf"
578 #define SENSORS_W83687THF_PREFIX "w83687thf"
579
580 #define SENSORS_W83791D_PREFIX "w83791d"
581
582
583 #define SENSORS_W83791D_IN0 1 /* R */
584 #define SENSORS_W83791D_IN1 2 /* R */
585 #define SENSORS_W83791D_IN2 3 /* R */
586 #define SENSORS_W83791D_IN3 4 /* R */
587 #define SENSORS_W83791D_IN4 5 /* R */
588 #define SENSORS_W83791D_IN5 6 /* R */
589 #define SENSORS_W83791D_IN6 7 /* R */
590 #define SENSORS_W83791D_IN7 8 /* R */
591 #define SENSORS_W83791D_IN8 9 /* R */
592 #define SENSORS_W83791D_IN9 10 /* R */
593
594 #define SENSORS_W83791D_IN0_MIN 11 /* RW */
595 #define SENSORS_W83791D_IN1_MIN 12 /* RW */
596 #define SENSORS_W83791D_IN2_MIN 13 /* RW */
597 #define SENSORS_W83791D_IN3_MIN 14 /* RW */
598 #define SENSORS_W83791D_IN4_MIN 15 /* RW */
599 #define SENSORS_W83791D_IN5_MIN 16 /* RW */
600 #define SENSORS_W83791D_IN6_MIN 17 /* RW */
601 #define SENSORS_W83791D_IN7_MIN 18 /* RW */
602 #define SENSORS_W83791D_IN8_MIN 19 /* RW */
603 #define SENSORS_W83791D_IN9_MIN 20 /* RW */
604
605 #define SENSORS_W83791D_IN0_MAX 21 /* RW */
606 #define SENSORS_W83791D_IN1_MAX 22 /* RW */
607 #define SENSORS_W83791D_IN2_MAX 23 /* RW */
608 #define SENSORS_W83791D_IN3_MAX 24 /* RW */
609 #define SENSORS_W83791D_IN4_MAX 25 /* RW */
610 #define SENSORS_W83791D_IN5_MAX 26 /* RW */
611 #