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
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
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
00e07cfde1
Prevent possible (but harmless and unlikely) buffer overflow.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3050 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-08 19:44:52 +00:00
Jean Delvare
4da4861017
Properly handle short i2c block reads.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3048 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-08 19:09:32 +00:00
Jean Delvare
49526b087e
Showing the version is not an error.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2697 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-09-22 20:41:26 +00:00
Jean Delvare
657ffe4e9c
Wait for user input to continue (as opposed to 5 sec delay).
...
Can be skipped using -y.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2680 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-30 19:31:46 +00:00
Jean Delvare
1cc6544e2b
Refactor i2c device opening.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2675 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-28 20:42:49 +00:00
Jean Delvare
2f3df5d0cb
Mass reindent.
...
Drop /dev/i2cN support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2673 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-26 21:01:40 +00:00
Jean Delvare
9dcb6da848
Fix typo on "consecutive".
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2176 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-14 17:54:42 +00:00
Mark D. Studebaker
82caa7986f
add -l option to i2cdetect so 'i2cdetect -l'
...
can be used as a replacement for 'cat /proc/bus/i2c'
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2100 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-28 04:37:08 +00:00
Mark D. Studebaker
bd947e0fe5
add 'c' mode for consecutive address byte reads
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2095 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-26 03:45:18 +00:00
Mark D. Studebaker
4f3ded5af9
use common function to print out available i2c busses;
...
add sysfs support to that function
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2065 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-17 03:04:09 +00:00
Jean Delvare
a1ca8861d4
Fix compiler warning (uninitialized variable).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1791 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:19:10 +00:00
Mark D. Studebaker
21920eeb66
cleanup from Philip Pokorny
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1725 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-03-17 02:28:56 +00:00
Kyosti Malkki
1cfe63804a
(Kyösti) Cleanups
...
Copy sysctl enums to chip drivers from sensors.h for now,
as seen in drivers included in 2.5 tree. File no longer included
from kernel side.
Apply i2c-proc change in CVS tagged -km2.
Partial clean and sort of includes everywhere.
Add i2c-dev.h, as a partial copy from i2c.
Add to sensors.h from i2c-proc.h to compile things.
Remove i2c-isa.h.
Reflect header file changes to lib/ and prog/.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1705 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-01-21 20:01:27 +00:00
Mark D. Studebaker
1a6cc8f95d
add PEC support
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1445 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-07-11 02:24:56 +00:00
Mark D. Studebaker
7cdb5c4439
add ability to specify the "command" on a smbus block read
...
(previously forced to zero). Limit smbus block read printout to 32 bytes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1390 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-06-12 02:52:16 +00:00
Mark D. Studebaker
ecc1a18331
add text printout; patch from
...
Jean Delvare <delvare@ensicaen.ismra.fr >
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1311 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-02-09 16:34:13 +00:00
Mark D. Studebaker
7821a784f2
do multiple reads in i2c block read mode to get all 256 bytes
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1258 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-12-04 00:30:55 +00:00
Mark D. Studebaker
8e94a4925f
add i2c block read capability to i2cdump
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1244 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-11-19 21:14:43 +00:00
Mark D. Studebaker
0709b19497
add devfs /dev/i2c/x support
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1053 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-03-31 19:00:45 +00:00
Mark D. Studebaker
f03fc688a2
fix message about what mode you are in - used to always say
...
i2c block rather than byte or word.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1049 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-03-31 01:55:54 +00:00
Mark D. Studebaker
94a2aa1305
(mds) add smbus block read support to i2cdump.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@858 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-08-12 19:16:00 +00:00
Mark D. Studebaker
86d41cfc96
(mds) fix error reporting when you don't have permission to open
...
/dev/i2c-x and /dev/i2cx doesn't exist.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@847 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-16 22:54:41 +00:00
Mark D. Studebaker
47a3491775
(mds) fix typos in /dev/i2c- and /dev/i2c checking.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@830 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-04 01:42:30 +00:00
Frodo Looijaard
93f3a9f7ac
All tools now understand both /dev/i2c-* and /dev/i2c*
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@827 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-07-02 18:11:31 +00:00
Mark D. Studebaker
7f86b419d6
(mds) add Winbond-style bank selection.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@805 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-12 00:16:08 +00:00
Mark D. Studebaker
13f7d150e0
(mds) Change ioctl from I2C_SLAVE to I2C_SLAVE_FORCE so that
...
you can run i2cdump even when a driver is installed.
Add a cat of /proc/bus/i2c to the help function to help
users with the bus number argument.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@690 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-09 22:45:57 +00:00
Kyosti Malkki
bddf810ebe
(Kyösti)
...
* renamed SMBUS_* to I2C_SMBUS_*
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@501 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 10:12:21 +00:00
Frodo Looijaard
24e547b88e
First round of lm_sensors changes for the new I2C tree
...
* The i2c package can no longer be compiled as part of the lm_sensors tree
* The archive of the i2c package is removed
* smbus, i2c-dev and i2c-proc modules and headers have been removed; they
are now completely integrated into the i2c package
* The fake i2c.h header has been removed; this also allowed us to remove
the ugly LM_SENSORS and TBD defines.
* A new variable I2C_HEADERS is introduced in the Makefile. This allows
us to install the i2c headers in, for example, /usr/local/include/linux.
* All files now include <linux/i2c.h> instead of "i2c.h" and "smbus.h"
Status: 'make dep' works, all the right include files are found. 'make all'
does not yet work.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@496 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-19 11:45:27 +00:00
Philip Edelbrock
ce7aea9a5a
(Phil) Made slight adjustments so the new file arrangement will build.
...
I added two new make file 'includes': busses/Module.mk and chips/Module.mk
Frodo- You may want to review the makefile structure to make sure that
the system works as you intended.
Note: The docs still need to be updated to reflect the new file arrangement,
but at least it builds!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@176 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:10:00 +00:00
Frodo Looijaard
33269d5252
Small fixes to make all programs compile cleanly with libc6.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@168 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-14 00:41:44 +00:00
Frodo Looijaard
1867246ee0
Documentation updates, and a very small print fix in i2cdump.c
...
Note especially the autoloading of i2c-dev by adding the following line
to /etc/module.conf (or /etc/conf.module):
alias char-major-89 i2c-dev
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@166 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 21:00:04 +00:00
Frodo Looijaard
8c18675d85
i2c-dev is now working!
...
You can now use i2cdump to dump SMBus device registers!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@165 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:47:52 +00:00
Frodo Looijaard
351441d5d8
Added a program to dump the registers of an SMBus device. Do not try
...
it yet; there are still bugs, which cause kernel oopses.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@163 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:23:48 +00:00