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

Revision 4270, 90.7 kB (checked in by khali, 2 years ago)

Add user-space support for the ADM1029. Patch contributed by
Corentin Labbe.

  • 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 /* ADM1029 chips */
188
189 #define SENSORS_ADM1029_PREFIX "adm1029"
190
191 #define SENSORS_ADM1029_TEMP1           51
192 #define SENSORS_ADM1029_TEMP1_MAX       52
193 #define SENSORS_ADM1029_TEMP1_MIN       53
194
195 #define SENSORS_ADM1029_TEMP2           61
196 #define SENSORS_ADM1029_TEMP2_MAX       62
197 #define SENSORS_ADM1029_TEMP2_MIN       63
198
199 #define SENSORS_ADM1029_TEMP3           71
200 #define SENSORS_ADM1029_TEMP3_MAX       72
201 #define SENSORS_ADM1029_TEMP3_MIN       73
202
203 #define SENSORS_ADM1029_FAN1            81
204 #define SENSORS_ADM1029_FAN1_MIN        82
205 #define SENSORS_ADM1029_FAN1_DIV        83
206
207 #define SENSORS_ADM1029_FAN2            91
208 #define SENSORS_ADM1029_FAN2_MIN        92
209 #define SENSORS_ADM1029_FAN2_DIV        93
210
211
212 /* ADM1030 and ADM1031 chips */
213
214 #define SENSORS_ADM1030_PREFIX "adm1030"
215 #define SENSORS_ADM1031_PREFIX "adm1031"
216
217 #define SENSORS_ADM1031_TEMP1      51 /* R */
218 #define SENSORS_ADM1031_TEMP1_MIN  52 /* RW */
219 #define SENSORS_ADM1031_TEMP1_MAX  53 /* RW */
220 #define SENSORS_ADM1031_TEMP1_CRIT 54 /* RW */
221
222 #define SENSORS_ADM1031_TEMP2      61 /* R */
223 #define SENSORS_ADM1031_TEMP2_MIN  62 /* RW */
224 #define SENSORS_ADM1031_TEMP2_MAX  63 /* RW */
225 #define SENSORS_ADM1031_TEMP2_CRIT 64 /* RW */
226
227 #define SENSORS_ADM1031_TEMP3      71 /* R */
228 #define SENSORS_ADM1031_TEMP3_MIN  72 /* RW */
229 #define SENSORS_ADM1031_TEMP3_MAX  73 /* RW */
230 #define SENSORS_ADM1031_TEMP3_CRIT 74 /* RW */
231
232
233 #define SENSORS_ADM1031_FAN1       80 /* R */
234 #define SENSORS_ADM1031_FAN1_MIN   81 /* RW */
235 #define SENSORS_ADM1031_FAN1_DIV   82 /* RW */
236 #define SENSORS_ADM1031_FAN2       90 /* R */
237 #define SENSORS_ADM1031_FAN2_MIN   91 /* RW */
238 #define SENSORS_ADM1031_FAN2_DIV   92 /* RW */
239
240 #define SENSORS_ADM1031_ALARMS    100 /* R */
241
242
243 /* MAX1617 chips. */
244
245 #define SENSORS_MAX1617_PREFIX "max1617"
246 #define SENSORS_MC1066_PREFIX "mc1066"
247
248 #define SENSORS_MAX1617_TEMP 51 /* R */
249 #define SENSORS_MAX1617_TEMP_HYST 52 /* RW */
250 #define SENSORS_MAX1617_TEMP_OVER 53 /* RW */
251 #define SENSORS_MAX1617_REMOTE_TEMP 54 /* R */
252 #define SENSORS_MAX1617_REMOTE_TEMP_HYST 55 /* RW */
253 #define SENSORS_MAX1617_REMOTE_TEMP_OVER 56 /* RW */
254 #define SENSORS_MAX1617_ALARMS 81 /* R */
255
256 /* MAX1617A chips. */
257
258 #define SENSORS_MAX1617A_PREFIX "max1617a"
259
260 #define SENSORS_MAX1617A_TEMP 51 /* R */
261 #define SENSORS_MAX1617A_TEMP_HYST 52 /* RW */
262 #define SENSORS_MAX1617A_TEMP_OVER 53 /* RW */
263 #define SENSORS_MAX1617A_REMOTE_TEMP 54 /* R */
264 #define SENSORS_MAX1617A_REMOTE_TEMP_HYST 55 /* RW */
265 #define SENSORS_MAX1617A_REMOTE_TEMP_OVER 56 /* RW */
266 #define SENSORS_MAX1617A_ALARMS 81 /* R */
267
268 /* GL518SM chips */
269
270 #define SENSORS_GL518_PREFIX "gl518sm"
271
272 #define SENSORS_GL518_VDD 1 /* R */
273 #define SENSORS_GL518_VIN1 2 /* R */
274 #define SENSORS_GL518_VIN2 3 /* R */
275 #define SENSORS_GL518_VIN3 4 /* R */
276 #define SENSORS_GL518_VDD_MIN 11 /* RW */
277 #define SENSORS_GL518_VIN1_MIN 12 /* RW */
278 #define SENSORS_GL518_VIN2_MIN 13 /* RW */
279 #define SENSORS_GL518_VIN3_MIN 14 /* RW */
280 #define SENSORS_GL518_VDD_MAX 21 /* RW */
281 #define SENSORS_GL518_VIN1_MAX 22 /* RW */
282 #define SENSORS_GL518_VIN2_MAX 23 /* RW */
283 #define SENSORS_GL518_VIN3_MAX 24 /* RW */
284 #define SENSORS_GL518_FAN1 31 /* R */
285 #define SENSORS_GL518_FAN2 32 /* R */
286 #define SENSORS_GL518_FAN1_MIN 41 /* RW */
287 #define SENSORS_GL518_FAN2_MIN 42 /* RW */
288 #define SENSORS_GL518_TEMP 51 /* R */
289 #define SENSORS_GL518_TEMP_HYST 52 /* RW */
290 #define SENSORS_GL518_TEMP_OVER 53 /* RW */
291 #define SENSORS_GL518_FAN1_DIV 71 /* RW */
292 #define SENSORS_GL518_FAN2_DIV 72 /* RW */
293 #define SENSORS_GL518_ALARMS 81 /* R */
294 #define SENSORS_GL518_BEEP_ENABLE 82 /* RW */
295 #define SENSORS_GL518_BEEPS 83 /* RW */
296 #define SENSORS_GL518_ITERATE 84 /* RW */
297 #define SENSORS_GL518_FAN1OFF 85 /* RW */
298 #define SENSORS_GL518_FAN1PIN 86 /* RW */
299
300 /* GL520SM chips */
301
302 #define SENSORS_GL520_PREFIX "gl520sm"
303
304 #define SENSORS_GL520_VDD 1 /* R */
305 #define SENSORS_GL520_VIN1 2 /* R */
306 #define SENSORS_GL520_VIN2 3 /* R */
307 #define SENSORS_GL520_VIN3 4 /* R */
308 #define SENSORS_GL520_VIN4 5 /* R */
309 #define SENSORS_GL520_VDD_MIN 11 /* RW */
310 #define SENSORS_GL520_VIN1_MIN 12 /* RW */
311 #define SENSORS_GL520_VIN2_MIN 13 /* RW */
312 #define SENSORS_GL520_VIN3_MIN 14 /* RW */
313 #define SENSORS_GL520_VIN4_MIN 15 /* RW */
314 #define SENSORS_GL520_VDD_MAX 21 /* RW */
315 #define SENSORS_GL520_VIN1_MAX 22 /* RW */
316 #define SENSORS_GL520_VIN2_MAX 23 /* RW */
317 #define SENSORS_GL520_VIN3_MAX 24 /* RW */
318 #define SENSORS_GL520_VIN4_MAX 25 /* RW */
319 #define SENSORS_GL520_FAN1 31 /* R */
320 #define SENSORS_GL520_FAN2 32 /* R */
321 #define SENSORS_GL520_FAN1_MIN 41 /* RW */
322 #define SENSORS_GL520_FAN2_MIN 42 /* RW */
323 #define SENSORS_GL520_TEMP1 51 /* R */
324 #define SENSORS_GL520_TEMP1_HYST 52 /* RW */
325 #define SENSORS_GL520_TEMP1_OVER 53 /* RW */
326 #define SENSORS_GL520_TEMP2 54 /* R */
327 #define SENSORS_GL520_TEMP2_HYST 55 /* RW */
328 #define SENSORS_GL520_TEMP2_OVER 56 /* RW */
329 #define SENSORS_GL520_VID 61 /* R */
330 #define SENSORS_GL520_FAN1_DIV 71 /* RW */
331 #define SENSORS_GL520_FAN2_DIV 72 /* RW */
332 #define SENSORS_GL520_ALARMS 81 /* R */
333 #define SENSORS_GL520_BEEP_ENABLE 82 /* RW */
334 #define SENSORS_GL520_BEEPS 83 /* RW */
335 #define SENSORS_GL520_TWOTEMPS 84 /* RW */
336 #define SENSORS_GL520_FAN1OFF 85 /* RW */
337
338 /* LM80 chips */
339
340 #define SENSORS_LM80_PREFIX "lm80"
341
342 #define SENSORS_LM80_IN0 1 /* R */
343 #define SENSORS_LM80_IN1 2 /* R */
344 #define SENSORS_LM80_IN2 3 /* R */
345 #define SENSORS_LM80_IN3 4 /* R */
346 #define SENSORS_LM80_IN4 5 /* R */
347 #define SENSORS_LM80_IN5 6 /* R */
348 #define SENSORS_LM80_IN6 7 /* R */
349 #define SENSORS_LM80_IN0_MIN 11 /* RW */
350 #define SENSORS_LM80_IN1_MIN 12 /* RW */
351 #define SENSORS_LM80_IN2_MIN 13 /* RW */
352 #define SENSORS_LM80_IN3_MIN 14 /* RW */
353 #define SENSORS_LM80_IN4_MIN 15 /* RW */
354 #define SENSORS_LM80_IN5_MIN 16 /* RW */
355 #define SENSORS_LM80_IN6_MIN 17 /* RW */
356 #define SENSORS_LM80_IN0_MAX 21 /* RW */
357 #define SENSORS_LM80_IN1_MAX 22 /* RW */
358 #define SENSORS_LM80_IN2_MAX 23 /* RW */
359 #define SENSORS_LM80_IN3_MAX 24 /* RW */
360 #define SENSORS_LM80_IN4_MAX 25 /* R */
361 #define SENSORS_LM80_IN5_MAX 26 /* R */
362 #define SENSORS_LM80_IN6_MAX 27 /* R */
363 #define SENSORS_LM80_FAN1 31 /* R */
364 #define SENSORS_LM80_FAN2 32 /* R */
365 #define SENSORS_LM80_FAN1_MIN 41 /* RW */
366 #define SENSORS_LM80_FAN2_MIN 42 /* RW */
367 #define SENSORS_LM80_TEMP 51 /* R */
368 #define SENSORS_LM80_TEMP_HOT_HYST 52 /* RW */
369 #define SENSORS_LM80_TEMP_HOT_MAX 53 /* RW */
370 #define SENSORS_LM80_TEMP_OS_HYST 54 /* RW */
371 #define SENSORS_LM80_TEMP_OS_MAX 55 /* RW */
372 #define SENSORS_LM80_FAN1_DIV 71 /* RW */
373 #define SENSORS_LM80_FAN2_DIV 72 /* RW */
374 #define SENSORS_LM80_ALARMS 81 /* R */
375
376 /* LM83 chips */
377
378 #define SENSORS_LM83_PREFIX "lm83"
379
380 #define SENSORS_LM83_LOCAL_TEMP 51 /* R */
381 #define SENSORS_LM83_LOCAL_HIGH 52 /* RW */
382 #define SENSORS_LM83_REMOTE1_TEMP 54 /* R */
383 #define SENSORS_LM83_REMOTE1_HIGH 55 /* RW */
384 #define SENSORS_LM83_REMOTE2_TEMP 57 /* R */
385 #define SENSORS_LM83_REMOTE2_HIGH 58 /* RW */
386 #define SENSORS_LM83_REMOTE3_TEMP 60 /* R */
387 #define SENSORS_LM83_REMOTE3_HIGH 61 /* RW */
388 #define SENSORS_LM83_TCRIT 80 /* RW */
389 #define SENSORS_LM83_ALARMS 81 /* R */
390
391 /* LM85 chips */
392
393 #define SENSORS_LM85_PREFIX "lm85"
394 #define SENSORS_LM85B_PREFIX "lm85b"
395 #define SENSORS_LM85C_PREFIX "lm85c"
396 #define SENSORS_ADM1027_PREFIX "adm1027"
397 #define SENSORS_ADT7463_PREFIX "adt7463"
398 #define SENSORS_EMC6D100_PREFIX "emc6d100"
399 #define SENSORS_EMC6D102_PREFIX "emc6d102"
400
401 #define SENSORS_ADM1027_ALARM_MASK           1  /* RW -- alarm_mask  */
402 #define SENSORS_ADM1027_FAN1_PPR             2  /* RW -- fan1_ppr  */
403 #define SENSORS_ADM1027_FAN1_TACH_MODE       3  /* RW -- fan1_tach_mode  */
404 #define SENSORS_ADM1027_FAN2_PPR             4  /* RW -- fan2_ppr  */
405 #define SENSORS_ADM1027_FAN2_TACH_MODE       5  /* RW -- fan2_tach_mode  */
406 #define SENSORS_ADM1027_FAN3_PPR             6  /* RW -- fan3_ppr  */
407 #define SENSORS_ADM1027_FAN3_TACH_MODE       7  /* RW -- fan3_tach_mode  */
408 #define SENSORS_ADM1027_FAN4_PPR             8  /* RW -- fan4_ppr  */
409 #define SENSORS_ADM1027_FAN4_TACH_MODE       9  /* RW -- fan4_tach_mode  */
410 #define SENSORS_ADM1027_PWM1_SMOOTH         10  /* RW -- pwm1_smooth  */
411 #define SENSORS_ADM1027_PWM2_SMOOTH         11  /* RW -- pwm2_smooth  */
412 #define SENSORS_ADM1027_PWM3_SMOOTH         12  /* RW -- pwm3_smooth  */
413 #define SENSORS_ADM1027_TEMP1_OFFSET        13  /* RW -- temp1_offset  */
414 #define SENSORS_ADM1027_TEMP2_OFFSET        14  /* RW -- temp2_offset  */
415 #define SENSORS_ADM1027_TEMP3_OFFSET        15  /* RW -- temp3_offset  */
416 #define SENSORS_LM85_ALARMS                 16  /* R  -- alarms  */
417 #define SENSORS_LM85_VID                    17  /* R  -- vid  */
418 #define SENSORS_LM85_VRM                    18  /* RW -- vrm  */
419 #define SENSORS_LM85_FAN1                   19  /* R  -- fan1  */
420 #define SENSORS_LM85_FAN1_MIN               20  /* RW -- fan1_min  */
421 #define SENSORS_LM85_FAN1_TACH_MODE         21  /* RW -- fan1_tach_mode  */
422 #define SENSORS_LM85_FAN2                   22  /* R  -- fan2  */
423 #define SENSORS_LM85_FAN2_MIN               23  /* RW -- fan2_min  */
424 #define SENSORS_LM85_FAN2_TACH_MODE         24  /* RW -- fan2_tach_mode  */
425 #define SENSORS_LM85_FAN3                   25  /* R  -- fan3  */
426 #define SENSORS_LM85_FAN3_MIN               26  /* RW -- fan3_min  */
427 #define SENSORS_LM85_FAN3_TACH_MODE         27  /* RW -- fan3_tach_mode  */
428 #define SENSORS_LM85_FAN4                   28  /* R  -- fan4  */
429 #define SENSORS_LM85_FAN4_MIN               29  /* RW -- fan4_min  */
430 #define SENSORS_LM85_IN0                    30  /* R  -- in0  */
431 #define SENSORS_LM85_IN0_MAX                31  /* RW -- in0_max  */
432 #define SENSORS_LM85_IN0_MIN                32  /* RW -- in0_min  */
433 #define SENSORS_LM85_IN1                    33  /* R  -- in1  */
434 #define SENSORS_LM85_IN1_MAX                34  /* RW -- in1_max  */
435 #define SENSORS_LM85_IN1_MIN                35  /* RW -- in1_min  */
436 #define SENSORS_LM85_IN2                    36  /* R  -- in2  */
437 #define SENSORS_LM85_IN2_MAX                37  /* RW -- in2_max  */
438 #define SENSORS_LM85_IN2_MIN                38  /* RW -- in2_min  */
439 #define SENSORS_LM85_IN3                    39  /* R  -- in3  */
440 #define SENSORS_LM85_IN3_MAX                40  /* RW -- in3_max  */
441 #define SENSORS_LM85_IN3_MIN                41  /* RW -- in3_min  */
442 #define SENSORS_LM85_IN4                    42  /* R  -- in4  */
443 #define SENSORS_LM85_IN4_MAX                43  /* RW -- in4_max  */
444 #define SENSORS_LM85_IN4_MIN                44  /* RW -- in4_min  */
445 #define SENSORS_LM85_IN5                    45  /* R  -- in5  */
446 #define SENSORS_LM85_IN5_MAX                46  /* RW -- in5_max  */
447 #define SENSORS_LM85_IN5_MIN                47  /* RW -- in5_min  */
448 #define SENSORS_LM85_IN6                    48  /* R  -- in6  */
449 #define SENSORS_LM85_IN6_MAX                49  /* RW -- in6_max  */
450 #define SENSORS_LM85_IN6_MIN                50  /* RW -- in6_min  */
451 #define SENSORS_LM85_IN7                    51  /* R  -- in7  */
452 #define SENSORS_LM85_IN7_MAX                52  /* RW -- in7_max  */
453 #define SENSORS_LM85_IN7_MIN                53  /* RW -- in7_min  */
454 #define SENSORS_LM85_PWM1                   54  /* RW -- pwm1  */
455 #define SENSORS_LM85_PWM1_FREQ              55  /* RW -- pwm1_freq  */
456 #define SENSORS_LM85_PWM1_INVERT            56  /* RW -- pwm1_invert  */
457 #define SENSORS_LM85_PWM1_MIN               57  /* RW -- pwm1_min  */
458 #define SENSORS_LM85_PWM1_MIN_CTL           58  /* RW -- pwm1_min_ctl  */
459 #define SENSORS_LM85_PWM1_SPINUP            59  /* RW -- pwm1_spinup  */
460 #define SENSORS_LM85_PWM1_SPINUP_CTL        60  /* RW -- pwm1_spinup_ctl  */
461 #define SENSORS_LM85_PWM1_ZONE              61  /* RW -- pwm1_zone  */
462 #define SENSORS_LM85_PWM2                   62  /* RW -- pwm2  */
463 #define SENSORS_LM85_PWM2_FREQ              63  /* RW -- pwm2_freq  */
464 #define SENSORS_LM85_PWM2_INVERT            64  /* RW -- pwm2_invert  */
465 #define SENSORS_LM85_PWM2_MIN               65  /* RW -- pwm2_min  */
466 #define SENSORS_LM85_PWM2_MIN_CTL           66  /* RW -- pwm2_min_ctl  */
467 #define SENSORS_LM85_PWM2_SPINUP            67  /* RW -- pwm2_spinup  */
468 #define SENSORS_LM85_PWM2_SPINUP_CTL        68  /* RW -- pwm2_spinup_ctl  */
469 #define SENSORS_LM85_PWM2_ZONE              69  /* RW -- pwm2_zone  */
470 #define SENSORS_LM85_PWM3                   70  /* RW -- pwm3  */
471 #define SENSORS_LM85_PWM3_FREQ              71  /* RW -- pwm3_freq  */
472 #define SENSORS_LM85_PWM3_INVERT            72  /* RW -- pwm3_invert  */
473 #define SENSORS_LM85_PWM3_MIN               73  /* RW -- pwm3_min  */
474 #define SENSORS_LM85_PWM3_MIN_CTL           74  /* RW -- pwm3_min_ctl  */
475 #define SENSORS_LM85_PWM3_SPINUP            75  /* RW -- pwm3_spinup  */
476 #define SENSORS_LM85_PWM3_SPINUP_CTL        76  /* RW -- pwm3_spinup_ctl  */
477 #define SENSORS_LM85_PWM3_ZONE              77  /* RW -- pwm3_zone  */
478 #define SENSORS_LM85_TEMP1                  78  /* R  -- temp1  */
479 #define SENSORS_LM85_TEMP1_MAX              79  /* RW -- temp1_max  */
480 #define SENSORS_LM85_TEMP1_MIN              80  /* RW -- temp1_min  */
481 #define SENSORS_LM85_TEMP2                  81  /* R  -- temp2  */
482 #define SENSORS_LM85_TEMP2_MAX              82  /* RW -- temp2_max  */
483 #define SENSORS_LM85_TEMP2_MIN              83  /* RW -- temp2_min  */
484 #define SENSORS_LM85_TEMP3                  84  /* R  -- temp3  */
485 #define SENSORS_LM85_TEMP3_MAX              85  /* RW -- temp3_max  */
486 #define SENSORS_LM85_TEMP3_MIN              86  /* RW -- temp3_min  */
487 #define SENSORS_LM85_ZONE1_CRITICAL         87  /* RW -- zone1_critical  */
488 #define SENSORS_LM85_ZONE1_HYST             88  /* RW -- zone1_hyst  */
489 #define SENSORS_LM85_ZONE1_LIMIT            89  /* RW -- zone1_limit  */
490 #define SENSORS_LM85_ZONE1_RANGE            90  /* RW -- zone1_range  */
491 #define SENSORS_LM85_ZONE1_SMOOTH           91  /* RW -- zone1_smooth  */
492 #define SENSORS_LM85_ZONE2_CRITICAL         92  /* RW -- zone2_critical  */
493 #define SENSORS_LM85_ZONE2_HYST             93  /* RW -- zone2_hyst  */
494 #define SENSORS_LM85_ZONE2_LIMIT            94  /* RW -- zone2_limit  */
495 #define SENSORS_LM85_ZONE2_RANGE            95  /* RW -- zone2_range  */
496 #define SENSORS_LM85_ZONE2_SMOOTH           96  /* RW -- zone2_smooth  */
497 #define SENSORS_LM85_ZONE3_CRITICAL         97  /* RW -- zone3_critical  */
498 #define SENSORS_LM85_ZONE3_HYST             98  /* RW -- zone3_hyst  */
499 #define SENSORS_LM85_ZONE3_LIMIT            99  /* RW -- zone3_limit  */
500 #define SENSORS_LM85_ZONE3_RANGE           100  /* RW -- zone3_range  */
501 #define SENSORS_LM85_ZONE3_SMOOTH          101  /* RW -- zone3_smooth  */
502
503 /* LM86/LM89/LM90/LM99/ADM1032/MAX6657/ADT7461 chips */
504
505 #define SENSORS_LM90_PREFIX "lm90"
506 #define SENSORS_ADM1032_PREFIX "adm1032"
507 #define SENSORS_LM99_PREFIX "lm99"
508 #define SENSORS_LM86_PREFIX "lm86"
509 #define SENSORS_MAX6657_PREFIX "max6657"
510 #define SENSORS_ADT7461_PREFIX "adt7461"
511
512 #define SENSORS_LM90_LOCAL_TEMP 51 /* R */
513 #define SENSORS_LM90_LOCAL_HIGH 52 /* RW */
514 #define SENSORS_LM90_LOCAL_LOW 53 /* RW */
515 #define SENSORS_LM90_LOCAL_TCRIT 54 /* RW */
516 #define SENSORS_LM90_REMOTE_TEMP 57 /* R */
517 #define SENSORS_LM90_REMOTE_HIGH 58 /* RW */
518 #define SENSORS_LM90_REMOTE_LOW 59 /* RW */
519 #define SENSORS_LM90_REMOTE_TCRIT 60 /* RW */
520 #define SENSORS_LM90_LOCAL_TCRIT_HYST 79 /* RW */
521 #define SENSORS_LM90_REMOTE_TCRIT_HYST 80 /* R, see driver source */
522 #define SENSORS_LM90_ALARMS 81 /* R */
523
524 /* LM63 chips */
525
526 #define SENSORS_LM63_PREFIX "lm63"
527
528 #define SENSORS_LM63_LOCAL_TEMP                 51 /* R  */
529 #define SENSORS_LM63_LOCAL_HIGH                 52 /* RW */
530 #define SENSORS_LM63_REMOTE_TEMP                57 /* R  */
531 #define SENSORS_LM63_REMOTE_HIGH                58 /* RW */
532 #define SENSORS_LM63_REMOTE_LOW                 59 /* RW */
533 #define SENSORS_LM63_REMOTE_TCRIT               60 /* R  */
534 #define SENSORS_LM63_REMOTE_TCRIT_HYST          80 /* RW */
535 #define SENSORS_LM63_ALARMS                     81 /* R  */
536 #define SENSORS_LM63_FAN                        84 /* R  */
537 #define SENSORS_LM63_FAN_LOW                    85 /* RW */
538 #define SENSORS_LM63_PWM                        87 /* RW */
539 #define SENSORS_LM63_PWM_ENABLE                 88 /* RW */
540
541 /* Winbond W83781D chips */
542
543 #define SENSORS_W83781D_PREFIX "w83781d"
544
545 #define SENSORS_W83781D_IN0 1 /* R */
546 #define SENSORS_W83781D_IN1 2 /* R */
547 #define SENSORS_W83781D_IN2 3 /* R */
548 #define SENSORS_W83781D_IN3 4 /* R */
549 #define SENSORS_W83781D_IN4 5 /* R */
550 #define SENSORS_W83781D_IN5 6 /* R */
551 #define SENSORS_W83781D_IN6 7 /* R */
552 #define SENSORS_W83781D_IN0_MIN 11 /* RW */
553 #define SENSORS_W83781D_IN1_MIN 12 /* RW */
554 #define SENSORS_W83781D_IN2_MIN 13 /* RW */
555 #define SENSORS_W83781D_IN3_MIN 14 /* RW */
556 #define SENSORS_W83781D_IN4_MIN 15 /* RW */
557 #define SENSORS_W83781D_IN5_MIN 16 /* RW */
558 #define SENSORS_W83781D_IN6_MIN 17 /* RW */
559 #define SENSORS_W83781D_IN0_MAX 21 /* RW */
560 #define SENSORS_W83781D_IN1_MAX 22 /* RW */
561 #define SENSORS_W83781D_IN2_MAX 23 /* RW */
562 #define SENSORS_W83781D_IN3_MAX 24 /* RW */
563 #define SENSORS_W83781D_IN4_MAX 25 /* RW */
564 #define SENSORS_W83781D_IN5_MAX 26 /* RW */
565 #define SENSORS_W83781D_IN6_MAX 27 /* RW */
566 #define SENSORS_W83781D_FAN1 31 /* R */
567 #define SENSORS_W83781D_FAN2 32 /* R */
568 #define SENSORS_W83781D_FAN3 33 /* R */
569 #define SENSORS_W83781D_FAN1_MIN 41 /* RW */
570 #define SENSORS_W83781D_FAN2_MIN 42 /* RW */
571 #define SENSORS_W83781D_FAN3_MIN 43 /* RW */
572 #define SENSORS_W83781D_TEMP1 51 /* R */
573 #define SENSORS_W83781D_TEMP1_HYST 52 /* RW */
574 #define SENSORS_W83781D_TEMP1_OVER 53 /* RW */
575 #define SENSORS_W83781D_TEMP2 54 /* R */
576 #define SENSORS_W83781D_TEMP2_HYST 55 /* RW */
577 #define SENSORS_W83781D_TEMP2_OVER 56 /* RW */
578 #define SENSORS_W83781D_TEMP3 57 /* R */
579 #define SENSORS_W83781D_TEMP3_HYST 58 /* RW */
580 #define SENSORS_W83781D_TEMP3_OVER 59 /* RW */
581 #define SENSORS_W83781D_VID 61 /* R */
582 #define SENSORS_W83781D_VRM 62 /* RW */
583 #define SENSORS_W83781D_FAN1_DIV 71 /* RW */
584 #define SENSORS_W83781D_FAN2_DIV 72 /* RW */
585 #define SENSORS_W83781D_FAN3_DIV 73 /* R (yes, really! */
586 #define SENSORS_W83781D_ALARMS 81 /* R */
587 #define SENSORS_W83781D_BEEP_ENABLE 82 /* RW */
588 #define SENSORS_W83781D_BEEPS 83 /* RW */
589 #define SENSORS_W83781D_SENS1 91 /* RW */
590 #define SENSORS_W83781D_SENS2 92 /* RW */
591 #define SENSORS_W83781D_SENS3 93 /* RW */
592
593
594 /* Winbond W83782D chips */
595 /* Cheat on 627HF for now - no separate #defines */
596 /* Cheat on 127F for now - no separate #defines */
597
598 #define SENSORS_W83782D_PREFIX "w83782d"
599 #define SENSORS_W83627HF_PREFIX "w83627hf"
600 #define SENSORS_W83627THF_PREFIX "w83627thf"
601 #define SENSORS_W83637HF_PREFIX "w83637hf"
602 #define SENSORS_W83687THF_PREFIX "w83687thf"
603
604 #define SENSORS_W83791D_PREFIX "w83791d"
605
606
607 #define SENSORS_W83791D_IN0 1 /* R */
608 #define SENSORS_W83791D_IN1 2 /* R */
609 #define SENSORS_W83791D_IN2 3 /* R */
610 #define SENSORS_W83791D_IN3 4 /* R */
611 #define SENSORS_W83791D_IN4 5 /* R */
612 #define SENSORS_W83791D_IN5 6 /* R */
613 #define SENSORS_W83791D_IN6 7 /* R */
614 #define SENSORS_W83791D_IN7 8 /* R */
615 #define SENSORS_W83791D_IN8 9 /* R */
616 #