Changeset 649
- Timestamp:
- 12/01/99 22:07:51 (13 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 modified
-
README (modified) (3 diffs)
-
lib/access.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/README
r614 r649 29 29 At least the following SMBus adapters are supported: 30 30 Acer Labs M1541 and M1543C (used in the Aladdin IV, V and Pro 2 chipsets) 31 AMD 756 31 32 Apple Hydra (used on some PPC machines) 32 33 Intel ICH (used in the Intel 810 and 810E chipsets) … … 61 62 If you want to offer more substantial help, this is very welcome too, of 62 63 course. 64 65 66 Don't ask us whether we support a particular mainboard; we do not know. 67 We *do* know what hardware we support, but usually, it is easier to 68 install everything and run sensors-detect. It will tell you what hardware 69 you have (and incidentally, what corresponding drivers are needed). You 70 could also take a look at http://members.brabant.chello.nl/~a.vankaam/mbm 71 (this lists chips found on many mainboard, but regrettable, not the adapters 72 on them) or http://web01.fureai.or.jp/~hirobo/project/reserch_project.html 73 (yes, it is japanese; you want the ninth column, and it again lists only 74 chips, not adapters). 63 75 64 76 … … 97 109 98 110 The latest version of this package can always be found on our homepage: 99 http://www.netroedge.com/~lm78. Pre-release versions can be retrieved111 http://www.netroedge.com/~lm78. Pre-release versions can be retrieved 100 112 through anonymous CVS; see doc/cvs for more information. 101 113 -
lm-sensors/trunk/lib/access.c
r207 r649 129 129 } 130 130 131 #include <stdio.h> 132 131 133 /* Look up the label which belongs to this chip. Note that chip should not 132 134 contain wildcard values! *result is newly allocated (free it yourself). 133 135 This function will return 0 on success, and <0 on failure. */ 134 int sensors_get_label (sensors_chip_name name, int feature, char **result)136 int sensors_get_label1(sensors_chip_name name, int feature, char **result) 135 137 { 136 138 const sensors_chip *chip; … … 154 156 } 155 157 158 int sensors_get_label(sensors_chip_name name, int feature, char **result) 159 { 160 int res=sensors_get_label1(name,feature,result); 161 if (res) fprintf(stderr,"\nerror get_label: %d\n",res); 162 return res; 163 } 164 156 165 /* Read the value of a feature of a certain chip. Note that chip should not 157 166 contain wildcard values! This function will return 0 on success, and <0 158 167 on failure. */ 159 int sensors_get_feature (sensors_chip_name name, int feature, double *result)168 int sensors_get_feature1(sensors_chip_name name, int feature, double *result) 160 169 { 161 170 const sensors_chip_feature *main_feature; … … 197 206 } 198 207 208 int sensors_get_feature(sensors_chip_name name, int feature, double *result) 209 { 210 int res=sensors_get_feature1(name,feature,result); 211 if (res) fprintf(stderr,"\nerror get_feature: %d\n",res); 212 return res; 213 } 214 199 215 /* Set the value of a feature of a certain chip. Note that chip should not 200 216 contain wildcard values! This function will return 0 on success, and <0
