From 37fa5a4151eacccb2df7faac2017f3b02cef5d6b Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Sun, 10 Dec 2006 20:55:06 +0000 Subject: [PATCH] Add the detection of Intel AMB FB-DIMM thermal sensor. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4261 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index ec731990..78eb1aa5 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1924,6 +1924,11 @@ $chip_kern26_w83791d = { driver => "coretemp", detect => sub { coretemp_detect(); }, }, + { + name => "Intel AMB FB-DIMM thermal sensor", + driver => "to-be-written", + detect => sub { intel_amb_detect(); }, + }, ); ####################### @@ -5262,6 +5267,13 @@ sub k8temp_pci_detect return 9; } +# Returns: undef if not detected, (9) if detected. +sub intel_amb_detect +{ + return unless exists $pci_list{'8086:a620'}; + return 9; +} + # Returns: undef if not detected, (9) if detected. sub coretemp_detect { @@ -5615,8 +5627,8 @@ sub main } print "\n"; - print "Some CPU may also contain embedded sensors.\n"; - print "Do you want to scan for CPU embedded sensors? (YES/no): "; + print "Some CPUs or memory controllers may also contain embedded sensors.\n"; + print "Do you want to scan for them? (YES/no): "; unless ( =~ /^\s*n/i) { foreach my $entry (@cpu_ids) { scan_cpu($entry);