Changeset 714
- Timestamp:
- 01/30/00 02:15:29 (9 years ago)
- Files:
-
- lm-sensors/trunk/prog/detect/sensors-detect (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/prog/detect/sensors-detect
r696 r714 215 215 procid => "3Dfx Voodoo3", 216 216 driver => "i2c-voodoo3", 217 match => sub { $_[0] =~ / Voodoo3 adapter at/ },217 match => sub { $_[0] =~ /Banshee adapter/ }, 218 218 }, 219 219 { … … 223 223 procid => "3Dfx Voodoo Banshee", 224 224 driver => "i2c-voodoo3", 225 match => sub { $_[0] =~ / Voodoo3 adapter at/ },225 match => sub { $_[0] =~ /Banshee adapter/ }, 226 226 }, 227 227 ); … … 453 453 { 454 454 name => "DDC monitor", 455 driver => "ddc -none-available-yet",455 driver => "ddcmon", 456 456 i2c_addrs => [0x50], 457 457 i2c_detect => sub { ddcmonitor_detect @_ }, … … 1706 1706 # 0x08..0x7E: checksumed area 1707 1707 # 0x7F: checksum 1708 # I hope my changes do not break anything...1708 ### commented out additional location checks for now - don't work? 1709 1709 sub ddcmonitor_detect 1710 1710 { 1711 1711 my ($file,$addr) = @_; 1712 1712 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; 1715 1715 i2c_smbus_read_byte_data($file,0x00) == 0x00 or goto FAILURE; 1716 1716 i2c_smbus_read_byte_data($file,0x01) == 0xFF or goto FAILURE; … … 1721 1721 i2c_smbus_read_byte_data($file,0x06) == 0xFF or goto FAILURE; 1722 1722 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; 1725 1725 # Check the checksum for validity. We should do this for all addresses, 1726 1726 # but it would be too slow.
