Changeset 1410
- Timestamp:
- 06/30/02 22:34:35 (11 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/sensors-detect (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/sensors-detect
r1394 r1410 649 649 ddcmonitor_detect ds1621_detect adm1024_detect fscpos_detect 650 650 fscscy_detect pcf8591_detect arp_detect ipmi_kcs_detect 651 ipmi_smic_detect via8231_isa_detect );651 ipmi_smic_detect via8231_isa_detect lm85_detect); 652 652 653 653 # This is a list of all recognized chips. … … 724 724 }, 725 725 { 726 name => "National Semiconductor LM85", 727 driver => "Unwritten: lm85", 728 i2c_addrs => [0x2c..0x2e], 729 i2c_detect => sub { lm85_detect @_}, 730 }, 731 { 726 732 name => "National Semiconductor LM87", 727 733 driver => "lm87", … … 920 926 } , 921 927 { 922 name => "Serial EEPROM ( PC-100DIMM)",928 name => "Serial EEPROM (SDRAM DIMM)", 923 929 driver => "eeprom", 924 930 i2c_addrs => [0x50..0x57], … … 956 962 }, 957 963 { 958 name => "SMBus 2.0 ARP-Capable Device ??",959 driver => " to-be-written",964 name => "SMBus 2.0 ARP-Capable Device", 965 driver => "smbus-arp", 960 966 i2c_addrs => [0x61], 961 967 i2c_detect => sub { arp_detect @_}, … … 1958 1964 return (3); 1959 1965 } 1960 1966 1967 # $_[0]: A reference to the file descriptor to access this chip. 1968 # #_[1]: Base address. 1969 # Returns: undef if not detected, (7) if detected. 1970 # Registers used: 0x3e == Vendor register. 1971 # 0x3f == Version/Stepping register. 1972 # Constants used: 0x01 == National Semiconductor Vendor Id. 1973 # 0x60 == Version number. The lower 4 stepping 1974 # bits are masked and ignored. 1975 sub lm85_detect 1976 { 1977 my ($file,$addr) = @_; 1978 return if (i2c_smbus_read_byte_data($file,0x3e)) != 0x01; 1979 return if (i2c_smbus_read_byte_data($file,0x3f) & 0xf0) != 0x60; 1980 return (7); 1981 } 1982 1961 1983 # $_[0]: A reference to the file descriptor to access this chip. 1962 1984 # We may assume an i2c_set_slave_addr was already done.
