-
Notifications
You must be signed in to change notification settings - Fork 268
/
sensors-detect
executable file
·7732 lines (7094 loc) · 216 KB
/
sensors-detect
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/perl -w
#
# sensors-detect - Detect hardware monitoring chips
# Copyright (C) 1998 - 2002 Frodo Looijaard <frodol@dds.nl>
# Copyright (C) 2004 - 2015 Jean Delvare <jdelvare@suse.de>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA.
#
require 5.004;
use strict;
use Fcntl qw(:DEFAULT :seek);
use File::Basename;
# We will call modprobe, which typically lives in either /sbin,
# /usr/sbin or /usr/local/bin. So make sure these are all in the PATH.
foreach ('/usr/sbin', '/usr/local/sbin', '/sbin') {
$ENV{PATH} = "$_:".$ENV{PATH}
unless $ENV{PATH} =~ m/(^|:)$_\/?(:|$)/;
}
#########################
# CONSTANT DECLARATIONS #
#########################
use constant NO_CACHE => 1;
use constant LM_VERSION => '3.6.0+git';
use vars qw(@pci_adapters @chip_ids @ipmi_ifs @non_hwmon_chip_ids
$i2c_addresses_to_scan @i2c_byte_cache %opt);
# This is the list of SMBus or I2C adapters we recognize by their PCI
# signature. This is an easy and fast way to determine which SMBus or I2C
# adapters should be present.
# Each entry must have a vendid (Vendor ID), devid (Device ID) and
# procid (Device name) and driver (Device driver).
@pci_adapters = (
{
vendid => 0x8086,
devid => 0x7113,
procid => "Intel 82371AB PIIX4 ACPI",
driver => "i2c-piix4",
}, {
vendid => 0x8086,
devid => 0x7603,
procid => "Intel 82372FB PIIX5 ACPI",
driver => "to-be-written",
}, {
vendid => 0x8086,
devid => 0x719b,
procid => "Intel 82443MX Mobile",
driver => "i2c-piix4",
}, {
vendid => 0x8086,
devid => 0x2413,
procid => "Intel 82801AA ICH",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x2423,
procid => "Intel 82801AB ICH0",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x2443,
procid => "Intel 82801BA ICH2",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x2483,
procid => "Intel 82801CA/CAM ICH3",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x24C3,
procid => "Intel 82801DB ICH4",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x24D3,
procid => "Intel 82801EB ICH5",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x25A4,
procid => "Intel 6300ESB",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x269B,
procid => "Intel Enterprise Southbridge - ESB2",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x266A,
procid => "Intel 82801FB ICH6",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x27DA,
procid => "Intel 82801G ICH7",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x283E,
procid => "Intel 82801H ICH8",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x2930,
procid => "Intel ICH9",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x5032,
procid => "Intel Tolapai",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x3A30,
procid => "Intel ICH10",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x3A60,
procid => "Intel ICH10",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x3B30,
procid => "Intel 3400/5 Series (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1C22,
procid => "Intel Cougar Point (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1D22,
procid => "Intel Patsburg (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1D70,
procid => "Intel Patsburg (PCH) IDF",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1D71,
procid => "Intel Patsburg (PCH) IDF",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1D72,
procid => "Intel Patsburg (PCH) IDF",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x2330,
procid => "Intel DH89xxCC (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1E22,
procid => "Intel Panther Point (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8C22,
procid => "Intel Lynx Point (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x9C22,
procid => "Intel Lynx Point-LP (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x1F3C,
procid => "Avoton (SOC)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8D22,
procid => "Wellsburg (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8D7D,
procid => "Wellsburg (PCH) MS",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8D7E,
procid => "Wellsburg (PCH) MS",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8D7F,
procid => "Wellsburg (PCH) MS",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x23B0,
procid => "Coleto Creek (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8CA2,
procid => "Wildcat Point (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x9CA2,
procid => "Wildcat Point-LP (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x0F12,
procid => "BayTrail (SOC)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0xA123,
procid => "Sunrise Point-H (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x9D23,
procid => "Sunrise Point-LP (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x19DF,
procid => "DNV (SOC)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x5AD4,
procid => "Broxton (SOC)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0xA1A3,
procid => "Lewisburg (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0xA223,
procid => "Lewisburg Supersku (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0xA2A3,
procid => "Kaby Lake (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x31D4,
procid => "Gemini Lake (SOC)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0xA323,
procid => "Cannon Lake-H (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x9DA3,
procid => "Cannon Lake-LP (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x18DF,
procid => "Cedar Fork (PCH)",
driver => "i2c-i801",
}, {
vendid => 0x8086,
devid => 0x8119,
procid => "Intel SCH",
driver => "i2c-isch",
}, {
vendid => 0x1106,
devid => 0x3040,
procid => "VIA Technologies VT82C586B Apollo ACPI",
driver => "i2c-via",
}, {
vendid => 0x1106,
devid => 0x3050,
procid => "VIA Technologies VT82C596 Apollo ACPI",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3051,
procid => "VIA Technologies VT82C596B ACPI",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3057,
procid => "VIA Technologies VT82C686 Apollo ACPI",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3074,
procid => "VIA Technologies VT8233 VLink South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3147,
procid => "VIA Technologies VT8233A South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3177,
procid => "VIA Technologies VT8233A/8235 South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3227,
procid => "VIA Technologies VT8237 South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3337,
procid => "VIA Technologies VT8237A South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x8235,
procid => "VIA Technologies VT8231 South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x3287,
procid => "VIA Technologies VT8251 South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x8324,
procid => "VIA Technologies CX700 South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1106,
devid => 0x8353,
procid => "VIA Technologies VX800/VX820 South Bridge",
driver => "i2c-viapro",
}, {
vendid => 0x1039,
devid => 0x0008,
procid => "Silicon Integrated Systems SIS5595",
driver => "i2c-sis5595",
}, {
vendid => 0x1039,
devid => 0x0630,
procid => "Silicon Integrated Systems SIS630",
driver => "i2c-sis630",
}, {
vendid => 0x1039,
devid => 0x0730,
procid => "Silicon Integrated Systems SIS730",
driver => "i2c-sis630",
}, {
vendid => 0x1039,
devid => 0x0016,
procid => "Silicon Integrated Systems SMBus Controller",
driver => "i2c-sis96x",
}, {
# Both Ali chips below have same PCI ID. Can't be helped. Only one should load.
vendid => 0x10b9,
devid => 0x7101,
procid => "Acer Labs 1533/1543",
driver => "i2c-ali15x3",
}, {
vendid => 0x10b9,
devid => 0x7101,
procid => "Acer Labs 1535",
driver => "i2c-ali1535",
}, {
vendid => 0x10b9,
devid => 0x1563,
procid => "Acer Labs 1563",
driver => "i2c-ali1563",
}, {
vendid => 0x1022,
devid => 0x740b,
procid => "AMD-756 Athlon ACPI",
driver => "i2c-amd756",
}, {
vendid => 0x1022,
devid => 0x7413,
procid => "AMD-766 Athlon ACPI",
driver => "i2c-amd756",
}, {
vendid => 0x1022,
devid => 0x7443,
procid => "AMD-768 System Management",
driver => "i2c-amd756",
}, {
vendid => 0x1022,
devid => 0x746b,
procid => "AMD-8111 ACPI",
driver => "i2c-amd756",
}, {
vendid => 0x1022,
devid => 0x746a,
procid => "AMD-8111 SMBus 2.0",
driver => "i2c-amd8111",
}, {
vendid => 0x10de,
devid => 0x01b4,
procid => "nVidia nForce SMBus",
driver => "i2c-amd756",
}, {
vendid => 0x10de,
devid => 0x0064,
procid => "nVidia Corporation nForce2 SMBus (MCP)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0084,
procid => "nVidia Corporation nForce2 Ultra 400 SMBus (MCP)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x00D4,
procid => "nVidia Corporation nForce3 Pro150 SMBus (MCP)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x00E4,
procid => "nVidia Corporation nForce3 250Gb SMBus (MCP)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0052,
procid => "nVidia Corporation nForce4 SMBus (MCP)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0034,
procid => "nVidia Corporation nForce4 SMBus (MCP-04)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0264,
procid => "nVidia Corporation nForce SMBus (MCP51)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0368,
procid => "nVidia Corporation nForce SMBus (MCP55)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x03eb,
procid => "nVidia Corporation nForce SMBus (MCP61)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0446,
procid => "nVidia Corporation nForce SMBus (MCP65)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0542,
procid => "nVidia Corporation nForce SMBus (MCP67)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x07d8,
procid => "nVidia Corporation nForce SMBus (MCP73)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0752,
procid => "nVidia Corporation nForce SMBus (MCP78S)",
driver => "i2c-nforce2",
}, {
vendid => 0x10de,
devid => 0x0aa2,
procid => "nVidia Corporation nForce SMBus (MCP79)",
driver => "i2c-nforce2",
}, {
vendid => 0x1166,
devid => 0x0200,
procid => "ServerWorks OSB4 South Bridge",
driver => "i2c-piix4",
}, {
vendid => 0x1055,
devid => 0x9463,
procid => "SMSC Victory66 South Bridge",
driver => "i2c-piix4",
}, {
vendid => 0x1166,
devid => 0x0201,
procid => "ServerWorks CSB5 South Bridge",
driver => "i2c-piix4",
}, {
vendid => 0x1166,
devid => 0x0203,
procid => "ServerWorks CSB6 South Bridge",
driver => "i2c-piix4",
}, {
vendid => 0x1166,
devid => 0x0205,
procid => "ServerWorks HT-1000 South Bridge",
driver => "i2c-piix4",
}, {
vendid => 0x1002,
devid => 0x4353,
procid => "ATI Technologies Inc ATI SMBus",
driver => "i2c-piix4",
}, {
vendid => 0x1002,
devid => 0x4363,
procid => "ATI Technologies Inc ATI SMBus",
driver => "i2c-piix4",
}, {
vendid => 0x1002,
devid => 0x4372,
procid => "ATI Technologies Inc IXP SB400 SMBus Controller",
driver => "i2c-piix4",
}, {
vendid => 0x1002,
devid => 0x4385,
procid => "ATI Technologies Inc SB600/SB700/SB800 SMBus",
driver => "i2c-piix4",
}, {
vendid => 0x1022,
devid => 0x780b,
procid => "AMD Hudson-2 SMBus",
driver => "i2c-piix4",
}, {
vendid => 0x1022,
devid => 0x790b,
procid => "AMD KERNCZ SMBus",
driver => "i2c-piix4",
}, {
vendid => 0x100B,
devid => 0x0500,
procid => "SCx200 Bridge",
driver => "scx200_acb",
}, {
vendid => 0x100B,
devid => 0x0510,
procid => "SC1100 Bridge",
driver => "scx200_acb",
}, {
vendid => 0x100B,
devid => 0x002B,
procid => "CS5535 ISA bridge",
driver => "scx200_acb",
}, {
vendid => 0x1022,
devid => 0x2090,
procid => "CS5536 [Geode companion] ISA",
driver => "scx200_acb",
}
);
# Look-up table to find out an I2C bus' driver based on the bus name.
# The match field should contain a regular expression matching the I2C
# bus name as it would appear in sysfs.
# Note that new drivers probably don't need to be added to this table
# if they bind to their device, as we will be able to get the driver name
# from sysfs directly.
use vars qw(@i2c_adapter_names);
@i2c_adapter_names = (
{ driver => "i2c-piix4", match => qr/^SMBus PIIX4 adapter at / },
{ driver => "i2c-i801", match => qr/^SMBus I801 adapter at / },
{ driver => "i2c-via", match => qr/^VIA i2c/ },
{ driver => "i2c-viapro", match => qr/^SMBus V(IA|ia) Pro adapter at / },
{ driver => "i2c-sis5595", match => qr/^SMBus SIS5595 adapter at / },
{ driver => "i2c-sis630", match => qr/^SMBus SIS630 adapter at / },
{ driver => "i2c-sis96x", match => qr/^SiS96x SMBus adapter at / },
{ driver => "i2c-ali15x3", match => qr/^SMBus ALI15X3 adapter at / },
{ driver => "i2c-ali1535", match => qr/^SMBus ALI1535 adapter at/ },
{ driver => "i2c-ali1563", match => qr/^SMBus ALi 1563 Adapter @ / },
{ driver => "i2c-amd756", match => qr/^SMBus (AMD756|AMD766|AMD768|AMD8111|nVidia nForce) adapter at / },
{ driver => "i2c-amd8111", match => qr/^SMBus2 AMD8111 adapter at / },
{ driver => "i2c-nforce2", match => qr/^SMBus nForce2 adapter at / },
{ driver => "scx200_acb", match => qr/^(NatSemi SCx200 ACCESS\.bus|SCx200 ACB\d+|CS553[56] ACB\d+)/ },
);
# This is a list of all recognized I2C and ISA chips.
# Each entry must have the following fields:
# name: The full chip name
# driver: The driver name. Put in exactly:
# * "to-be-written" if it is not yet available
# * "use-isa-instead" if no i2c driver will be written
# i2c_addrs (optional): For I2C chips, the list of I2C addresses to
# probe.
# i2c_detect (optional): For I2C chips, the function to call to detect
# this chip. The function will be passed two parameters: an open file
# descriptor to access the bus, and the I2C address to probe.
# isa_addrs (optional): For ISA chips, the list of port addresses to
# probe.
# isa_detect (optional): For ISA chips, the function to call to detect
# this chip. The function will be passed one parameter: the ISA address
# to probe.
# alias_detect (optional): For chips which can be both on the ISA and the
# I2C bus, a function which detects whether two entries are the same.
# The function will be passed three parameters: the ISA address, an
# open file descriptor to access the I2C bus, and the I2C address.
@chip_ids = (
{
name => "Myson MTP008",
driver => "mtp008",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { mtp008_detect(@_); },
}, {
name => "National Semiconductor LM78",
driver => "lm78",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { lm78_detect(@_, 0); },
isa_addrs => [0x290],
isa_detect => sub { lm78_isa_detect(@_, 0); },
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3d); },
}, {
name => "National Semiconductor LM79",
driver => "lm78",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { lm78_detect(@_, 2); },
isa_addrs => [0x290],
isa_detect => sub { lm78_isa_detect(@_, 2); },
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3d); },
}, {
name => "National Semiconductor LM75",
driver => "lm75",
i2c_addrs => [0x48..0x4f],
i2c_detect => sub { lm75_detect(@_, 0); },
}, {
name => "National Semiconductor LM75A",
driver => "lm75",
i2c_addrs => [0x48..0x4f],
i2c_detect => sub { lm75_detect(@_, 2); },
}, {
name => "Dallas Semiconductor DS75",
driver => "lm75",
i2c_addrs => [0x48..0x4f],
i2c_detect => sub { lm75_detect(@_, 1); },
}, {
name => "National Semiconductor LM77",
driver => "lm77",
i2c_addrs => [0x48..0x4b],
i2c_detect => sub { lm77_detect(@_); },
}, {
name => "National Semiconductor LM80",
driver => "lm80",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { lm80_detect(@_, 0); },
}, {
name => "National Semiconductor LM96080",
driver => "lm80",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { lm80_detect(@_, 1); },
}, {
name => "TI / National Semiconductor ADC128D818",
driver => "adc128d818",
i2c_addrs => [0x1d, 0x1e, 0x1f, 0x2d, 0x2e, 0x2f],
i2c_detect => sub { adc128d818_detect(@_); },
}, {
name => "National Semiconductor LM85",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 0); },
}, {
name => "National Semiconductor LM96000 or PC8374L",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 1); },
}, {
name => "Analog Devices ADM1027",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 2); },
}, {
name => "Analog Devices ADT7460 or ADT7463",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 3); },
}, {
name => "SMSC EMC6D100 or EMC6D101",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 4); },
}, {
name => "SMSC EMC6D102",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 5); },
}, {
name => "SMSC EMC6D103",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 6); },
}, {
name => "SMSC EMC6D103S or EMC2300",
driver => "lm85",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm85_detect(@_, 8); },
}, {
name => "SMSC EMC6W201",
driver => "emc6w201",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { emc6w201_detect(@_); },
}, {
name => "Analog Devices ADT7462",
driver => "adt7462",
i2c_addrs => [0x5c, 0x58],
i2c_detect => sub { adt7467_detect(@_, 2); },
}, {
name => "Analog Devices ADT7466",
driver => "to-be-written",
i2c_addrs => [0x4c],
i2c_detect => sub { adt7467_detect(@_, 3); },
}, {
name => "Analog Devices ADT7467 or ADT7468",
driver => "lm85",
i2c_addrs => [0x2e],
i2c_detect => sub { adt7467_detect(@_, 0); },
}, {
name => "Analog Devices ADT7470",
driver => "adt7470",
i2c_addrs => [0x2c, 0x2e, 0x2f],
i2c_detect => sub { adt7467_detect(@_, 4); },
}, {
name => "Analog Devices ADT7473",
driver => sub { kernel_version_at_least(2, 6, 33) ? "adt7475" : "adt7473" },
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { adt7473_detect(@_, 0); },
}, {
name => "Analog Devices ADT7475",
driver => "adt7475",
i2c_addrs => [0x2e],
i2c_detect => sub { adt7473_detect(@_, 1); },
}, {
name => "Analog Devices ADT7476",
driver => "adt7475",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { adt7467_detect(@_, 1); },
}, {
name => "Analog Devices ADT7490",
driver => "adt7475",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { adt7490_detect(@_); },
}, {
name => "Analog Devices ADT7410/ADT7420",
driver => "adt7410",
i2c_addrs => [0x48..0x4b],
i2c_detect => sub { adt7410_detect(@_); },
}, {
name => "Analog Devices ADT7411",
driver => "adt7411",
i2c_addrs => [0x48, 0x4a, 0x4b],
i2c_detect => sub { adt7411_detect(@_); },
}, {
name => "Andigilog aSC7511",
driver => "to-be-written",
i2c_addrs => [0x4c],
i2c_detect => sub { andigilog_aSC7511_detect(@_); },
}, {
name => "Andigilog aSC7512",
driver => "to-be-written",
i2c_addrs => [0x58],
i2c_detect => sub { andigilog_detect(@_, 0); },
}, {
name => "Andigilog aSC7611",
driver => "to-be-written",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { andigilog_detect(@_, 1); },
}, {
name => "Andigilog aSC7621",
driver => "asc7621",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { andigilog_detect(@_, 2); },
}, {
name => "National Semiconductor LM87",
driver => "lm87",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm87_detect(@_, 0); },
}, {
name => "Analog Devices ADM1024",
driver => "lm87",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm87_detect(@_, 1); },
}, {
name => "National Semiconductor LM93",
driver => "lm93",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm93_detect(@_, 0); },
}, {
name => "National Semiconductor LM94 or LM96194",
driver => "lm93",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { lm93_detect(@_, 1); },
}, {
name => "Winbond W83781D",
driver => "w83781d",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 0); },
isa_addrs => [0x290],
isa_detect => sub { w83781d_isa_detect(@_, 0); },
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3d); },
}, {
name => "Winbond W83782D",
driver => "w83781d",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 1); },
isa_addrs => [0x290],
isa_detect => sub { w83781d_isa_detect(@_, 1); },
alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3d); },
}, {
name => "Winbond W83783S",
driver => "w83781d",
i2c_addrs => [0x2d],
i2c_detect => sub { w83781d_detect(@_, 2); },
}, {
name => "Winbond W83791D",
driver => "w83791d",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { w83781d_detect(@_, 7); },
}, {
name => "Winbond W83792D",
driver => "w83792d",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { w83781d_detect(@_, 8); },
}, {
name => "Winbond W83793R/G",
driver => "w83793",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { w83793_detect(@_); },
}, {
name => "Nuvoton W83795G/ADG",
driver => "w83795",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { w83795_detect(@_); },
}, {
name => "Nuvoton NCT7802Y",
driver => "nct7802",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { nct7802_detect(@_); },
}, {
name => "Nuvoton NCT7904D",
driver => "nct7904",
i2c_addrs => [0x2d..0x2e],
i2c_detect => sub { nct7904_detect(@_); },
}, {
name => "Winbond W83627HF",
driver => "use-isa-instead",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 3); },
}, {
name => "Winbond W83627EHF",
driver => "use-isa-instead",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 9); },
}, {
name => "Winbond W83627DHG/W83667HG/W83677HG",
driver => "use-isa-instead",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 10); },
}, {
name => "Asus AS99127F (rev.1)",
driver => "w83781d",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 4); },
}, {
name => "Asus AS99127F (rev.2)",
driver => "w83781d",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 5); },
}, {
name => "Asus ASB100 Bach",
driver => "asb100",
i2c_addrs => [0x28..0x2f],
i2c_detect => sub { w83781d_detect(@_, 6); },
}, {
name => "Asus Mozart-2",
driver => "to-be-written",
i2c_addrs => [0x77],
i2c_detect => sub { mozart_detect(@_); },
}, {
name => "Winbond W83L784R/AR/G",
driver => "to-be-written",
i2c_addrs => [0x2d],
i2c_detect => sub { w83l784r_detect(@_, 0); },
}, {
name => "Winbond W83L785R/G",
driver => "to-be-written",
i2c_addrs => [0x2d],
i2c_detect => sub { w83l784r_detect(@_, 1); },
}, {
name => "Winbond W83L786NR/NG/R/G",
driver => "w83l786ng",
i2c_addrs => [0x2e, 0x2f],
i2c_detect => sub { w83l784r_detect(@_, 2); },
}, {
name => "Winbond W83L785TS-S",
driver => "w83l785ts",
i2c_addrs => [0x2e],
i2c_detect => sub { w83l784r_detect(@_, 3); },
}, {
name => "Genesys Logic GL518SM",
driver => "gl518sm",
i2c_addrs => [0x2c, 0x2d],
i2c_detect => sub { gl518sm_detect(@_, 0); },
}, {
name => "Genesys Logic GL520SM",
driver => "gl520sm",
i2c_addrs => [0x2c, 0x2d],
i2c_detect => sub { gl518sm_detect(@_, 1); },
}, {
name => "Genesys Logic GL525SM",
driver => "to-be-written",
i2c_addrs => [0x2d],
i2c_detect => sub { gl525sm_detect(@_); },
}, {
name => "Analog Devices ADM9240",
driver => "adm9240",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { adm9240_detect(@_, 0); },
}, {
name => "Dallas Semiconductor DS1780",
driver => "adm9240",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { adm9240_detect(@_, 1); },
}, {
name => "National Semiconductor LM81",
driver => "adm9240",
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { adm9240_detect(@_, 2); },
}, {
name => "Analog Devices ADM1026",
driver => "adm1026",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { adm1026_detect(@_); },
}, {
name => "Analog Devices ADM1025",
driver => "adm1025",
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { adm1025_detect(@_, 0); },
}, {
name => "Philips NE1619",
driver => "adm1025",
i2c_addrs => [0x2c..0x2d],
i2c_detect => sub { adm1025_detect(@_, 1); },
}, {
name => "Analog Devices ADM1021",
driver => "adm1021",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
i2c_detect => sub { adm1021_detect(@_, 0); },
}, {
name => "Analog Devices ADM1021A/ADM1023",
driver => "adm1021",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
i2c_detect => sub { adm1021_detect(@_, 1); },
}, {
name => "Global Mixed-mode Technology G781",
driver => "lm90",
i2c_addrs => [0x4c, 0x4d],
i2c_detect => sub { lm90_detect(@_, 15); },
}, {
name => "Maxim MAX1617",
driver => "adm1021",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
i2c_detect => sub { adm1021_detect(@_, 2); },
}, {
name => "Maxim MAX1617A",
driver => "adm1021",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
i2c_detect => sub { adm1021_detect(@_, 3); },
}, {
name => "Maxim MAX1668",
driver => "max1668",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
i2c_detect => sub { max1668_detect(@_, 0); },
}, {
name => "Maxim MAX1805",
driver => "max1668",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],
i2c_detect => sub { max1668_detect(@_, 1); },
}, {
name => "Maxim MAX1989",
driver => "max1668",
i2c_addrs => [0x18..0x1a, 0x29..0x2b, 0x4c..0x4e],