mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 06:15:15 +00:00
Review comments on Super IO chips declaration.
Add two SMSC Super IO chips. Support 2.6 /proc/modules (with underscores). Fix double input request for /etc/sysconfig creation. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2413 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1306,12 +1306,11 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
# name: The full chip name
|
||||
# driver: The driver name (without .o extension). Put in
|
||||
# "to-be-written" if it is not yet available.
|
||||
# addrreg: The address register
|
||||
# datareg: The data register
|
||||
# enter: The password sequence to write to the address register
|
||||
# devid: The device ID(s) we have to match (base device)
|
||||
# logdev: The logical device containing the sensors
|
||||
# exit (optional): Sequence of addr,val pairs which exits config mode
|
||||
# exit (optional): Sequence to write to the address register to exit config
|
||||
# mode. If not provided, a default reset operation is performed.
|
||||
# alias_detect (optional): For chips which can be both on the ISA and the
|
||||
# I2C bus, a function which detectes whether two entries are the same.
|
||||
# The function should take three parameters: The ISA address, the
|
||||
@@ -1419,6 +1418,22 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
logdev => 0x0a,
|
||||
exit => [0xaa],
|
||||
},
|
||||
{
|
||||
name => "SMSC 47S42x Super IO Fan Sensors",
|
||||
driver => "to-be-written",
|
||||
enter => [0x55],
|
||||
devid => 0x57,
|
||||
logdev => 0x0a,
|
||||
exit => [0xaa],
|
||||
},
|
||||
{
|
||||
name => "SMSC 47S45x Super IO Fan Sensors",
|
||||
driver => "to-be-written",
|
||||
enter => [0x55],
|
||||
devid => 0x62,
|
||||
logdev => 0x0a,
|
||||
exit => [0xaa],
|
||||
},
|
||||
{
|
||||
name => "VT1211 Super IO Sensors",
|
||||
driver => "vt1211",
|
||||
@@ -1460,7 +1475,7 @@ use subs qw(mtp008_detect lm78_detect lm78_isa_detect lm78_alias_detect
|
||||
exit => [0xaa],
|
||||
},
|
||||
{
|
||||
name => "Winbond W83697UF Super IO PWM",
|
||||
name => "Winbond W83697SF/UF Super IO PWM",
|
||||
driver => "to-be-written",
|
||||
enter => [0x87, 0x87],
|
||||
devid => 0x68,
|
||||
@@ -1668,6 +1683,7 @@ sub initialize_modules_list
|
||||
{
|
||||
open INPUTFILE, "/proc/modules" or die "Can't access /proc/modules!";
|
||||
while (<INPUTFILE>) {
|
||||
tr/_/-/;
|
||||
push @modules_list, /^(\S*)/ ;
|
||||
}
|
||||
close INPUTFILE;
|
||||
@@ -4497,7 +4513,8 @@ sub main
|
||||
if ($> != 0) {
|
||||
print "\nAs you are not root, we shall skip this step.\n";
|
||||
} else {
|
||||
if (($have_sysconfig and not <STDIN> =~ /^\s*[Nn]/) or <STDIN> =~ /^\s*[Yy]/) {
|
||||
$_ = <STDIN>;
|
||||
if (($have_sysconfig and not m/^\s*[Nn]/) or m/^\s*[Yy]/) {
|
||||
unless ($have_sysconfig) {
|
||||
mkdir '/etc/sysconfig', 0777
|
||||
or die "Sorry, can't create /etc/sysconfig ($!)?!?";
|
||||
|
Reference in New Issue
Block a user