Something in the README about ways to determine your chips

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@649 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-12-01 21:07:51 +00:00
1 parent 389f9b89f3
commit 59bd758cd7
2 files changed
+31 -3

No files matched your search

+13 -1
View File
@@ -28,6 +28,7 @@ and module bit-mb is renamed i2c-via. You have been warned.
At least the following SMBus adapters are supported:
Acer Labs M1541 and M1543C (used in the Aladdin IV, V and Pro 2 chipsets)
AMD 756
Apple Hydra (used on some PPC machines)
Intel ICH (used in the Intel 810 and 810E chipsets)
Intel PIIX4 (used in most Intel chipsets)
@@ -62,6 +63,17 @@ If you want to offer more substantial help, this is very welcome too, of
course.
Don't ask us whether we support a particular mainboard; we do not know.
We *do* know what hardware we support, but usually, it is easier to
install everything and run sensors-detect. It will tell you what hardware
you have (and incidentally, what corresponding drivers are needed). You
could also take a look at http://members.brabant.chello.nl/~a.vankaam/mbm
(this lists chips found on many mainboard, but regrettable, not the adapters
on them) or http://web01.fureai.or.jp/~hirobo/project/reserch_project.html
(yes, it is japanese; you want the ninth column, and it again lists only
chips, not adapters).
SMBus, also known as System Management Bus, is a protocol for communicating
through a I2C ('I squared C') bus. Many modern mainboards have a System
Management Bus. There are a lot of devices which can be connected to a
@@ -96,7 +108,7 @@ for you. But please try to read the documentation and FAQ first before you ask
any questions!
The latest version of this package can always be found on our homepage:
http://www.netroedge.com/~lm78. Pre-release versions can be retrieved
http://www.netroedge.com/~lm78. Pre-release versions can be retrieved
through anonymous CVS; see doc/cvs for more information.
This whole package is copyright (c) 1998, 1999 by Frodo Looijaard and
+18 -2
View File
@@ -128,10 +128,12 @@ int sensors_chip_name_has_wildcards(sensors_chip_name chip)
return 0;
}
#include <stdio.h>
/* Look up the label which belongs to this chip. Note that chip should not
contain wildcard values! *result is newly allocated (free it yourself).
This function will return 0 on success, and <0 on failure. */
int sensors_get_label(sensors_chip_name name, int feature, char **result)
int sensors_get_label1(sensors_chip_name name, int feature, char **result)
{
const sensors_chip *chip;
const sensors_chip_feature *featureptr;
@@ -153,10 +155,17 @@ int sensors_get_label(sensors_chip_name name, int feature, char **result)
return 0;
}
int sensors_get_label(sensors_chip_name name, int feature, char **result)
{
int res=sensors_get_label1(name,feature,result);
if (res) fprintf(stderr,"\nerror get_label: %d\n",res);
return res;
}
/* Read the value of a feature of a certain chip. Note that chip should not
contain wildcard values! This function will return 0 on success, and <0
on failure. */
int sensors_get_feature(sensors_chip_name name, int feature, double *result)
int sensors_get_feature1(sensors_chip_name name, int feature, double *result)
{
const sensors_chip_feature *main_feature;
const sensors_chip_feature *alt_feature;
@@ -196,6 +205,13 @@ int sensors_get_feature(sensors_chip_name name, int feature, double *result)
return 0;
}
int sensors_get_feature(sensors_chip_name name, int feature, double *result)
{
int res=sensors_get_feature1(name,feature,result);
if (res) fprintf(stderr,"\nerror get_feature: %d\n",res);
return res;
}
/* Set the value of a feature of a certain chip. Note that chip should not
contain wildcard values! This function will return 0 on success, and <0
on failure. */