Changeset 5494
- Timestamp:
- 12/01/08 18:02:47 (4 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/detect/sensors-detect (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r5473 r5494 32 32 Fix bus number prediction logic (#2327) 33 33 Suggest the sbs driver for smart batteries 34 Drop alias detection for Super-I/O chips 34 35 35 36 3.0.3 (2008-09-28) -
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect
r5493 r5494 1125 1125 # devid_mask (optional): Bitmask to apply before checking the device ID 1126 1126 # logdev: The logical device containing the sensors 1127 # alias_detect (optional): For chips which can be both on the LPC and the1128 # I2C bus, a function which detects whether two entries are the same.1129 # The function will be passed three parameters: the LPC address, an1130 # open file descriptor to access the I2C bus, and the I2C address.1131 1127 use vars qw(@superio_ids_natsemi @superio_ids_smsc @superio_ids_smsc_ns 1132 1128 @superio_ids_winbond @superio_ids_ite @superio_ids); … … 1450 1446 devid => 0x3c, 1451 1447 logdev => 0x0b, 1452 alias_detect => sub { vt1211_alias_detect(@_); },1453 1448 }, { 1454 1449 name => "VIA VT1212 Super IO Lite", # in 100 pin TQFP package … … 1464 1459 devid => 0x52, 1465 1460 logdev => 0x0b, 1466 alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3d); },1467 1461 }, { 1468 1462 name => "Winbond W83627THF/THG Super IO Sensors", … … 1498 1492 devid_mask => 0xFFC0, 1499 1493 logdev => 0x0b, 1500 alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3e); },1501 1494 }, { 1502 1495 name => "Winbond W83627DHG Super IO Sensors", … … 1505 1498 devid_mask => 0xFFF0, 1506 1499 logdev => 0x0b, 1507 alias_detect => sub { winbond_alias_detect(@_, 0x2b, 0x3e); },1508 1500 }, { 1509 1501 name => "Winbond W83L517D Super IO", … … 1572 1564 devid => 0x8712, 1573 1565 logdev => 0x04, 1574 alias_detect => sub { winbond_alias_detect(@_, 0x30, 0x45); },1575 1566 }, { 1576 1567 name => "ITE IT8716F Super IO Sensors", … … 2910 2901 chipname => $chip->{name} 2911 2902 }; 2912 add_isa_to_chips_detected($chip->{driver}, $new_hash, 2913 $chip->{alias_detect}); 2903 add_isa_to_chips_detected($chip->{driver}, $new_hash); 2914 2904 } 2915 2905 … … 4647 4637 for ($i = $first; $i <= $last; $i++) { 4648 4638 return 0 unless isa_read_i5d6($isa_addr, $i) == 4649 i2c_smbus_read_byte_data($file, $i);4650 }4651 return 1;4652 }4653 4654 sub vt1211_alias_detect4655 {4656 my ($isa_addr, $file, $i2c_addr) = @_;4657 my $i;4658 4659 return 0 unless (inb($isa_addr + 0x48) & 0x7f) == $i2c_addr;4660 for ($i = 0x2b; $i <= 0x3d; $i++) {4661 return 0 unless inb($isa_addr + $i) ==4662 4639 i2c_smbus_read_byte_data($file, $i); 4663 4640 }
