Commit Graph
24 Commits
Author SHA1 Message Date
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