Commit Graph
3063 Commits
Author SHA1 Message Date
Jean Delvare 40a778e313 Continuous byte mode needs not only read byte capability but also
write byte capability.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3110 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-30 17:25:38 +00:00
Jean Delvare d9927a5a5e Fix a bug in argc check.
Only use PEC on the register write, not the readback, as it has proven to
cause trouble on some chips. Reads with PEC can be tested using i2cget.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3109 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-30 17:16:24 +00:00
Jean Delvare 47a3cc59c0 New helper program to read a single register from an I2C/SMBus
chip. It has byte data and word data read support as well as byte
write/byte read, and supports PEC too. Beware that byte write with PEC
enabled can write random values to registers on non-PEC-aware chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3108 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-29 20:59:22 +00:00
Jean Delvare 17e1b0c907 Add missing parentheses to some macros. Same was done to i2c.h
some months ago but we omitted to do the same in i2c-dev.h.
Drop I2C_FUNC_SMBUS_EMUL, it is meant as a convenient shortcut for plain
I2C bus drivers and has no use in user-space.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3107 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-29 18:03:23 +00:00
Jean Delvare 86a438a263 Add PEC support. This should help debugging PEC support and use
in the kernel drivers.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3106 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-28 21:05:03 +00:00
Jean Delvare f55e5038a3 Syncronize i2c_msg definition with i2c.h. Patch from Hideki
Iwamoto. Without this, I2C_RDWR ioctl does not work correctly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3105 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-27 18:11:57 +00:00
Mark D. Studebaker d5dd7b88cc updates
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3104 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-26 21:41:04 +00:00
Jean Delvare d541844ecc Discard I2C_ACK_TEST, which was commented out and never really
existed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3103 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-26 17:35:48 +00:00
Jean Delvare 5c70989fe9 Drop now useless #ifdef tests. i2c-dev.h defines everything we
need, and is part of this package (lm_sensors2) so it is always
up-to-date.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3102 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-25 18:57:42 +00:00
Jean Delvare d523b3b7d1 Fix misleading error message when no chip is found on Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3101 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-25 13:31:53 +00:00
Jean Delvare 739986c1db The i2c_smbus_data union block member has a comment stating that an
extra byte is required for block process call SMBus transactions. This
has been true for three weeks around June 2002, but no more since, so
it is about time that we drop this comment and fix the definition.
Spotted by Hideki Iwamoto.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3100 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-24 09:40:14 +00:00
Jean Delvare 400bdd4c14 More manufacturer names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3099 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-19 17:29:23 +00:00
Mark M. Hoffman b374291396 (mmh)
Bugfix: lib/init.c wasn't compiling properly if SYSFS_SUPPORT was turned off.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3098 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 21:24:58 +00:00
Mark M. Hoffman 59a14e2ea4 update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3097 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:55:37 +00:00
Mark M. Hoffman a116313d54 (mmh)
This patch makes optional the sysfs support in libsensors.  The default is to
*disable* sysfs support if a 2.4.x kernel is detected, for all other versions,
support will be enabled.  This can be overridden in the top-level Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3096 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:39:53 +00:00
Mark M. Hoffman 85a0c8ccb2 (mmh)
This patch replaces the I2C chip enumeration (through sysfs) in lib/proc.c
with new functions in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3095 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:38:19 +00:00
Mark M. Hoffman c277761d15 (mmh)
This patch replaces the I2C bus enumeration (through sysfs) in lib/proc.c
with a new function in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3094 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:37:42 +00:00
Mark M. Hoffman 87fba1c487 (mmh)
This patch adds the files lib/sysfs.h and lib/sysfs.c, beginning with a rewrite
of the sysfs detection code (using libsyfs).  In the process, I replaced two
poorly named globals with better names, and moved them to sysfs.c.  The sysfs
detection now happens very early during library init, rather than later.

The long term plan is for the two global variables to disappear anyway, as
everything to do with sysfs should get moved into lib/sysfs.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3093 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:30:44 +00:00
Mark M. Hoffman 10337cf80b (mmh)
This trivial patch links the libsysfs library to the libsensors library.
One needs to build and install sysfsutils first:

http://linux-diag.sourceforge.net/Sysfsutils.html

This patch is naive, at least to start.  Later it will be made optional
depending on whether support for Linux 2.6.x is needed, or just 2.4.x.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3092 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:25:25 +00:00
Mark M. Hoffman 6504401cf8 (mmh)
This patch moves two macros from lib/proc.c to lib/data.h.  The macros
pick up the "sensors_" prefix along the way.  The motivation is the
same as the previous patch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3091 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:30:16 +00:00
Mark M. Hoffman 2c5441a2db (mmh)
This patch moves the chip and bus lists from lib/proc.c to lib/data.c.
The variables were already declared in lib/data.h.  Motivation: when
support for kernel 2.4.x becomes optional, lib/proc.c may not even be
compiled into the library... but these variables are still needed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3090 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:28:51 +00:00
Jean Delvare 1e29d075db Add large lookup tables for manufacturer names (based on data
provided by Rudolf Marek).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3089 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 15:21:12 +00:00
Jean Delvare 95a85c3aeb Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3088 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:54 +00:00
Jean Delvare 51c7b3d4d9 Drop -W, sensord warns too much with it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3087 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:55:35 +00:00
Jean Delvare e7efcf6578 (Aurelien Jarno) Drop EEPROM support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3086 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-16 17:54:42 +00:00
Jean Delvare 842c64de27 Kill an unused variable left over from a previous cleanup.
Backport from Linux 2.6, credits go to Andrew Morton.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3085 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-12 17:56:56 +00:00
Jean Delvare e02d1b734e Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3084 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:39:37 +00:00
Jean Delvare 1c9823cffd Compile userspace tools with -W.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3083 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:38:45 +00:00
Jean Delvare 2c0ca7852a Drop Linux-2.6 specific eeprom code, as we no longer support
eeproms on 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3082 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:27:20 +00:00
Jean Delvare ac478a3ef9 Do not log the algorithm name.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3081 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:23:58 +00:00
Jean Delvare 57e3589237 Declare foundsysfs in proc.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3080 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:09:42 +00:00
Jean Delvare ece5b07360 Drop all references to the algorithm names, as Linux 2.6 doesn't
export them. Do not rely on "i2cdetect -l" printing it, in case we drop
it there later. Change the adapter "match" field from a sub to a
regular expression, as this is how this field is actually used.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3079 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 14:39:55 +00:00
Jean Delvare 2cc8929c9e Stop printing the algorithm name unless /proc compatibility format
is requested. Print the correct bus type if bus functionality can be
queried (will work if i2c-dev is loaded and user has write access to
 /dev/i2c*).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3078 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 12:03:14 +00:00
Jean Delvare 32fbdf8ba4 Add a "quiet" parameter to open_i2c_dev() to prevent it from
displaying error messages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3077 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 11:38:32 +00:00
Jean Delvare 27e2a62bab Fix bus matching mechanism which had always been broken for Linux
2.6. Original patch from Karsten Petersen.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3076 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 09:29:35 +00:00
Jean Delvare 28f8be1038 Drop all references to the old mailing list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3075 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-08 16:29:41 +00:00
Jean Delvare 2c48b2afc9 Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3074 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:59:50 +00:00
Jean Delvare 060662c522 Remove bus probing code. This is a backport from Linux 2.6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3073 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:49:53 +00:00
Jean Delvare 08bdbcac71 Remove dead code. Backport from a 2.6 kernel patch by
Hans-Frieder Vogt.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3072 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 20:16:18 +00:00
Jean Delvare 222cfb6918 Drop the W83697HF support from the w83781d driver. It is better
supported by the super-I/O w83627hf driver. Patch from Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3071 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:21:44 +00:00
Jean Delvare 70eca45135 One more model reported to work (VGN-S4M/S).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3070 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:15:52 +00:00
Jean Delvare 401d48d27f Compile user-space programs with -Wundef.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3069 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-07 19:12:17 +00:00
Philip Edelbrock 83e9f83c38 Prep for 2.9.3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3068 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 20:08:27 +00:00
Philip Edelbrock 97649c80b4 Tag and release 2.9.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3066 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 19:44:58 +00:00
Jean Delvare ea18616b4a Add a FAQ entry about the eeprom entries which sensors won't
display anymore.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3065 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 19:07:59 +00:00
Mark M. Hoffman df8e4b3895 drop eeprom display when kernel is 2.6.x - partially resolves this:
http://lists.lm-sensors.org/pipermail/lm-sensors/2005-August/013403.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3064 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 03:33:43 +00:00
Jean Delvare c007106225 Link to two motherboard configuration file databases.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3063 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-03 18:53:56 +00:00
Jean Delvare 96ed8ae3fa Update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3062 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-30 18:56:35 +00:00
Jean Delvare 2bafd91ef5 The smsc47m1 driver now supports the LPC47M15x/192 chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3061 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-30 18:51:18 +00:00
Rudolf Marek 8894546f1f Fix potentional security issue. Thanks to Javier Fernández-Sanguino Peña <jfs@computer.org>
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3060 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-20 19:45:53 +00:00