mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-27 12:30:43 +00:00
fix uninitialized values (ali entries were funcid instead of func);
add simple IPMI detection. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1276 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
61c2154280
commit
36e9b0c5f9
2 files changed
+33
-4
No files matched your search
@@ -30,7 +30,8 @@ ask CVS about it:
|
||||
Program sensors: Add PCF8591 and W83697HF support
|
||||
Program sensors-detect: Add several Nvidia chips, add PCF8591,
|
||||
fix Via686a and it87 detection,
|
||||
add AMD768
|
||||
add AMD768, IPMI-BMC-KCS and -SMIC,
|
||||
fix uninitialized values
|
||||
|
||||
|
||||
2.6.2 (20011118)
|
||||
|
||||
@@ -185,7 +185,7 @@ use vars qw(@pci_adapters @chip_ids @undetectable_adapters);
|
||||
{
|
||||
vendid => 0x10b9,
|
||||
devid => 0x7101,
|
||||
funcid => 0,
|
||||
func => 0,
|
||||
procid => "Acer Labs 1533/1543",
|
||||
driver => "i2c-ali15x3",
|
||||
match => sub { $_[0] =~ /^SMBus ALI15X3 adapter at/ },
|
||||
@@ -193,7 +193,7 @@ use vars qw(@pci_adapters @chip_ids @undetectable_adapters);
|
||||
{
|
||||
vendid => 0x10b9,
|
||||
devid => 0x7101,
|
||||
funcid => 0,
|
||||
func => 0,
|
||||
procid => "Acer Labs 1535",
|
||||
driver => "i2c-ali1535",
|
||||
match => sub { $_[0] =~ /^SMBus ALI1535 adapter at/ },
|
||||
@@ -535,7 +535,8 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
via686a_isa_detect adm1022_detect ltc1710_detect gl525sm_detect
|
||||
lm87_detect ite_detect ite_isa_detect ite_alias_detect
|
||||
ddcmonitor_detect ds1621_detect adm1024_detect fscpos_detect
|
||||
fscscy_detect pcf8591_detect arp_detect);
|
||||
fscscy_detect pcf8591_detect arp_detect ipmi_kcs_detect
|
||||
ipmi_smic_detect );
|
||||
|
||||
# This is a list of all recognized chips.
|
||||
# Each entry must have the following fields:
|
||||
@@ -840,6 +841,16 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
i2c_addrs => [0x61],
|
||||
i2c_detect => sub { arp_detect @_},
|
||||
},
|
||||
{
|
||||
name => "IPMI BMC KCS",
|
||||
isa_addrs => [ 0x0ca0 ],
|
||||
isa_detect => sub { ipmi_kcs_detect @_ },
|
||||
},
|
||||
{
|
||||
name => "IPMI BMC SMIC",
|
||||
isa_addrs => [ 0x0ca8 ],
|
||||
isa_detect => sub { ipmi_smic_detect @_ },
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@@ -2385,6 +2396,23 @@ sub arp_detect
|
||||
return (1);
|
||||
}
|
||||
|
||||
# Returns: 4
|
||||
# These are simple detectors that only look for a register at the
|
||||
# standard location. No writes are performed.
|
||||
# For KCS, use the STATUS register. For SMIC, use the FLAGS register.
|
||||
sub ipmi_kcs_detect
|
||||
{
|
||||
return if inb (0x0ca3) == 0xff;
|
||||
return (4);
|
||||
}
|
||||
|
||||
sub ipmi_smic_detect
|
||||
{
|
||||
return if inb (0x0cab) == 0xff;
|
||||
return (4);
|
||||
}
|
||||
|
||||
|
||||
|
||||
################
|
||||
# MAIN PROGRAM #
|
||||
|
||||
Reference in new issue
Block a user