Changeset 4082 for lm-sensors/trunk/prog/detect/sensors-detect
- Timestamp:
- 08/02/06 21:53:20 (7 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/detect/sensors-detect (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/detect/sensors-detect
r4079 r4082 984 984 # i2c_addrs (optional): For I2C chips, the range of valid I2C addresses to 985 985 # probe. Recommend avoiding 0x69 because of clock chips. 986 # i2c_driver_addrs (optional): For I2C chips, the range of valid I2C987 # addresses probed by the kernel driver. Strictly optional.988 986 # i2c_detect (optional): For I2C chips, the function to call to detect 989 987 # this chip. The function should take two parameters: an open file … … 991 989 # isa_addrs (optional): For ISA chips, the range of valid port addresses to 992 990 # probe. 993 # isa_driver_addrs (optional): For ISA chips, the range of valid ISA994 # addresses probed by the kernel driver. Strictly optional.995 991 # isa_detect (optional): For ISA chips, the function to call to detect 996 992 # this chip. The function should take one parameter: the ISA address … … 2596 2592 # with field 'i2c_sub_addrs', containing a reference to a list of 2597 2593 # other I2C addresses (if this is an I2C detection) 2598 # with field 'i2c_extra' if this is an I2C detection and the address2599 # is not normally probed by the kernel driver2600 2594 # with field 'isa_addr' containing the ISA address this chip is on 2601 2595 # (if this is an ISA detection) 2602 # with field 'isa_extra' if this is an ISA detection and the address2603 # is not normally probed by the kernel driver2604 2596 # with field 'conf', containing the confidence level of this detection 2605 2597 # with field 'chipname', containing the chip name … … 2743 2735 $new_misdetected_ref->[$i]->{i2c_addr})) { 2744 2736 $new_misdetected_ref->[$i]->{isa_addr} = $datahash->{isa_addr}; 2745 $new_misdetected_ref->[$i]->{isa_extra} = $datahash->{isa_extra}2746 if exists $datahash->{isa_extra};2747 2737 return $new_misdetected_ref->[$i]; 2748 2738 } … … 2767 2757 $new_detected_ref->[$i]->{i2c_addr})) { 2768 2758 $new_detected_ref->[$i]->{isa_addr} = $datahash->{isa_addr}; 2769 $new_detected_ref->[$i]->{isa_extra} = $datahash->{isa_extra}2770 if exists $datahash->{isa_extra};2771 2759 ($datahash) = splice (@$new_detected_ref, $i, 1); 2772 2760 $isalias=1; … … 2857 2845 i2c_devnr => $adapter_nr, 2858 2846 }; 2859 $new_hash->{i2c_extra} = 02860 if exists $chip->{i2c_driver_addrs} and2861 not contains($addr, @{$chip->{i2c_driver_addrs}});2862 2847 2863 2848 printf "Client found at address 0x\%02x\n", $addr; … … 2908 2893 $new_hash->{i2c_sub_addrs} = \@chips_copy; 2909 2894 } 2910 $new_hash->{i2c_extra} = 02911 if exists $chip->{i2c_driver_addrs} and2912 not contains( $addr , @{$chip->{i2c_driver_addrs}});2913 2895 add_i2c_to_chips_detected $chip->{driver}, $new_hash; 2914 2896 } else { … … 2940 2922 chipname => $chip->{name} 2941 2923 }; 2942 $new_hash->{isa_extra} = 02943 if exists $chip->{isa_driver_addrs} and2944 not contains ($addr, @{$chip->{isa_driver_addrs}});2945 2924 $new_hash = add_isa_to_chips_detected $chip->{alias_detect},$chip->{driver}, 2946 2925 $new_hash; … … 5299 5278 } 5300 5279 $modprobes .= "modprobe $chip->{driver}\n"; 5301 }5302 5303 # Handle detects at addresses normally not probed5304 foreach $detection (@{$chip->{detected}}) {5305 push @probelist, $adapters[$detection->{i2c_devnr}]->{nr_later},5306 $detection->{i2c_addr}5307 if exists $detection->{i2c_addr} and5308 exists $detection->{i2c_extra};5309 push @probelist, -1, $detection->{isa_addr}5310 if exists $detection->{isa_addr} and5311 exists $detection->{isa_extra};5312 5280 } 5313 5281
