From 7f58258a1d95df386514222865ce298f11e30091 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 20 Feb 2008 19:31:34 +0000 Subject: [PATCH] Move south bridge sensor detection to the right section. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5126 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/detect/sensors-detect | 41 ++++++++++++++++++-------------------- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/CHANGES b/CHANGES index 7152e320..7a4c7c59 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ lm-sensors CHANGES file SVN-HEAD sensors-detect: Add SMSC SCH5027D detection Do not access I/O ports on PPC + Move south bridge sensor detection to the right section 3.0.1 (2008-01-28) documentation: Update the application writing guidelines diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 8199a448..dbd5c55e 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1326,24 +1326,6 @@ use vars qw(@pci_adapters_sis5595 @pci_adapters_sis645 @pci_adapters_sis96x); i2c_addrs => [0x2e], i2c_detect => sub { adm1022_detect(2, @_); }, }, - { - name => "Silicon Integrated Systems SIS5595", - driver => "sis5595", - isa_addrs => [ 0 ], - isa_detect => sub { sis5595_pci_detect(); }, - }, - { - name => "VIA VT82C686 Integrated Sensors", - driver => "via686a", - isa_addrs => [ 0 ], - isa_detect => sub { via686a_pci_detect(); }, - }, - { - name => "VIA VT8231 Integrated Sensors", - driver => "vt8231", - isa_addrs => [ 0 ], - isa_detect => sub { via8231_pci_detect(); }, - }, { name => "VIA VT1211 (I2C)", driver => "use-isa-instead", @@ -2150,6 +2132,21 @@ use vars qw(@chip_kern24_ids @chip_kern26_ids # etc. It must return a confidence value, undef if no supported # CPU is found. @cpu_ids = ( + { + name => "Silicon Integrated Systems SIS5595", + driver => "sis5595", + detect => sub { sis5595_pci_detect(); }, + }, + { + name => "VIA VT82C686 Integrated Sensors", + driver => "via686a", + detect => sub { via686a_pci_detect(); }, + }, + { + name => "VIA VT8231 Integrated Sensors", + driver => "vt8231", + detect => sub { via8231_pci_detect(); }, + }, { name => "AMD K8 thermal sensors", driver => "k8temp", @@ -3256,8 +3253,8 @@ sub scan_isa_bus foreach $chip (@chip_ids) { next if not exists $chip->{isa_addrs} or not exists $chip->{isa_detect}; foreach $addr (@{$chip->{isa_addrs}}) { - printf("\%-60s", sprintf("Probing for `\%s'\%s... ", $chip->{name}, - $addr ? sprintf(" at 0x\%x", $addr) : '')); + printf("\%-60s", sprintf("Probing for `\%s'\ at 0x\%x... ", $chip->{name}, + $addr)); $conf = &{$chip->{isa_detect}} ($addr); print("No\n"), next if not defined $conf; print "Success!\n"; @@ -5837,8 +5834,8 @@ sub main print "\n"; } - print "Some CPUs or memory controllers may also contain embedded sensors.\n"; - print "Do you want to scan for them? (YES/no): "; + print "Some south bridges, CPUs or memory controllers may also contain \n"; + print "embedded sensors. Do you want to scan for them? (YES/no): "; unless ( =~ /^\s*n/i) { $| = 1; foreach my $entry (@cpu_ids) {