Changeset 714

Show
Ignore:
Timestamp:
01/30/00 02:15:29 (9 years ago)
Author:
mds
Message:

(mds) Referenced ddcmon driver. Commented out 0x51-0x57 checking for ddcmon,

not working for me. Have to ask Petr.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/prog/detect/sensors-detect

    r696 r714  
    215215       procid => "3Dfx Voodoo3", 
    216216       driver => "i2c-voodoo3", 
    217        match  => sub { $_[0] =~ /Voodoo3 adapter at/ }, 
     217       match  => sub { $_[0] =~ /Banshee adapter/ }, 
    218218     }, 
    219219     { 
     
    223223       procid => "3Dfx Voodoo Banshee", 
    224224       driver => "i2c-voodoo3", 
    225        match  => sub { $_[0] =~ /Voodoo3 adapter at/ }, 
     225       match  => sub { $_[0] =~ /Banshee adapter/ }, 
    226226     }, 
    227227); 
     
    453453     { 
    454454       name => "DDC monitor", 
    455        driver => "ddc-none-available-yet", 
     455       driver => "ddcmon", 
    456456       i2c_addrs => [0x50], 
    457457       i2c_detect => sub { ddcmonitor_detect @_ }, 
     
    17061706#   0x08..0x7E: checksumed area 
    17071707#   0x7F:       checksum 
    1708 # I hope my changes do not break anything... 
     1708### commented out additional location checks for now - don't work? 
    17091709sub ddcmonitor_detect 
    17101710{ 
    17111711  my ($file,$addr) = @_; 
    17121712  my $i; 
    1713   for ($i = 0; $i < 8; $i ++) { 
    1714     i2c_set_slave_addr \*FILE,$addr+$i or goto FAILURE; 
     1713###  for ($i = 0; $i < 8; $i ++) { 
     1714###    i2c_set_slave_addr \*FILE,$addr+$i or goto FAILURE; 
    17151715    i2c_smbus_read_byte_data($file,0x00) == 0x00 or goto FAILURE; 
    17161716    i2c_smbus_read_byte_data($file,0x01) == 0xFF or goto FAILURE; 
     
    17211721    i2c_smbus_read_byte_data($file,0x06) == 0xFF or goto FAILURE; 
    17221722    i2c_smbus_read_byte_data($file,0x07) == 0x00 or goto FAILURE; 
    1723   } 
    1724   i2c_set_slave_addr \*FILE,$addr or return; 
     1723###  } 
     1724###  i2c_set_slave_addr \*FILE,$addr or return; 
    17251725  # Check the checksum for validity. We should do this for all addresses, 
    17261726  # but it would be too slow.