Changeset 2413

Show
Ignore:
Timestamp:
04/05/04 20:29:27 (9 years ago)
Author:
khali
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/sensors-detect

    r2409 r2413  
    13071307#  driver: The driver name (without .o extension). Put in 
    13081308#      "to-be-written" if it is not yet available. 
    1309 #  addrreg: The address register 
    1310 #  datareg: The data register 
    13111309#  enter: The password sequence to write to the address register 
    13121310#  devid: The device ID(s) we have to match (base device) 
    13131311#  logdev: The logical device containing the sensors 
    1314 #  exit (optional): Sequence of addr,val pairs which exits config mode 
     1312#  exit (optional): Sequence to write to the address register to exit config 
     1313#      mode. If not provided, a default reset operation is performed. 
    13151314#  alias_detect (optional): For chips which can be both on the ISA and the 
    13161315#      I2C bus, a function which detectes whether two entries are the same. 
     
    14211420     },  
    14221421     { 
     1422        name => "SMSC 47S42x Super IO Fan Sensors", 
     1423        driver => "to-be-written", 
     1424        enter => [0x55], 
     1425        devid => 0x57, 
     1426        logdev => 0x0a, 
     1427        exit => [0xaa], 
     1428     },  
     1429     { 
     1430        name => "SMSC 47S45x Super IO Fan Sensors", 
     1431        driver => "to-be-written", 
     1432        enter => [0x55], 
     1433        devid => 0x62, 
     1434        logdev => 0x0a, 
     1435        exit => [0xaa], 
     1436     },  
     1437     { 
    14231438        name => "VT1211 Super IO Sensors", 
    14241439        driver => "vt1211", 
     
    14611476     },  
    14621477     { 
    1463         name => "Winbond W83697UF Super IO PWM", 
     1478        name => "Winbond W83697SF/UF Super IO PWM", 
    14641479        driver => "to-be-written", 
    14651480        enter => [0x87, 0x87], 
     
    16691684  open INPUTFILE, "/proc/modules" or die "Can't access /proc/modules!"; 
    16701685  while (<INPUTFILE>) { 
     1686    tr/_/-/; 
    16711687    push @modules_list, /^(\S*)/ ; 
    16721688  } 
     
    44984514    print "\nAs you are not root, we shall skip this step.\n"; 
    44994515  } else { 
    4500     if (($have_sysconfig and not <STDIN> =~ /^\s*[Nn]/) or <STDIN> =~ /^\s*[Yy]/) { 
     4516    $_ = <STDIN>; 
     4517    if (($have_sysconfig and not m/^\s*[Nn]/) or m/^\s*[Yy]/) { 
    45014518      unless ($have_sysconfig) { 
    45024519        mkdir '/etc/sysconfig', 0777