Commit Graph
80 Commits
Author SHA1 Message Date
Jean Delvare 8b7f315fd8 Update to mention the new -k option.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2900 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-09 22:01:43 +00:00
Jean Delvare 4943663301 Handle keys/passwords needed to access most Super-I/O chips.
This should let us dump Winbond Super-I/O chips past the few first
dozens registers.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2899 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-02-09 21:08:17 +00:00
Jean Delvare 3eb8495004 Written value can be masked, preserving unmasked bits at the
written location. Similar to what I did for i2cset some times
        ago.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2739 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-16 14:24:55 +00:00
Jean Delvare 2a73d0fd71 Written byte/word can be masked.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2721 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-10 15:58:47 +00:00
Jean Delvare f9fe027586 Nicer output. Refactor code a little.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2712 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-10-08 18:40:03 +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 eb8ced91c4 Trivial fixes (typo...)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2678 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-30 19:19:52 +00:00
Jean Delvare 043d2bb261 New header file, for functions shared among i2c command line
tools (i2cdetect, i2cdump, i2cset).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2677 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-30 18:43:12 +00:00
Jean Delvare e594f08271 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@2676 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-29 21:22:00 +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 89deecca35 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@2663 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-16 18:55:39 +00:00
Jean Delvare e7f4222ccb Mass coding-style update.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2661 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-08-15 12:23:14 +00:00
Mark D. Studebaker 86e0a5ef92 cleanups - remove parens in synopsis (docbook doesn't like);
replace I\u2\dC with I2C since man2html doesn't translate it


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2647 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-07-24 19:00:21 +00:00
Jean Delvare e7e4c799da Implement "make user_uninstall". Original patch contributed by
Rudolf Marek.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2604 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-20 14:18:28 +00:00
Jean Delvare 0d9f6417d5 Cut long line properly.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2584 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-06-05 19:04:02 +00:00
Jean Delvare 4d095e0921 New manual page for isaset.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2490 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-29 17:43:50 +00:00
Jean Delvare 62b7916019 Add missing include.
Discard unused hexchar function.
        Massive reindent.
        Rework the command line parameters handling.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2489 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-29 17:24:45 +00:00
Mark D. Studebaker 6f821d2ad8 new isaset program. Warning - lightly tested.
Please test and improve as necessary.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2488 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-28 23:54:09 +00:00
Jean Delvare 0738cd0915 Document the new flat address options.
Add a few notes.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2476 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-25 13:30:21 +00:00
Jean Delvare ad91c909d8 Add bank support to flat address space mode.
Default to bank register 0x07 for Super-I/O chips.
        Move default bank register selection to a separate function.
        Move setting/restoring bank to a separate function.
        Allow dumping of shorter ranges (flat address space mode).
        Limit I2C-like dumps to addresses up to 0x3fff.
        Print expected ranges on range errors.

        This should allow us to work with the PC87360 family of chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2475 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-25 13:26:45 +00:00
Jean Delvare d832ee135d More detail on how i2cdump can write to a chip.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2462 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-20 19:34:10 +00:00
Mark D. Studebaker 379a2143d3 add code authors to man pages
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2456 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-20 01:25:22 +00:00
Jean Delvare 0c01cd9544 Stop being Winbond-specific about banks: don't mask high bit.
Allow forcing of bank 0. Restore bank after dump.
        This allows proper operation on Super-I/O chips.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2452 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-04-19 18:02:10 +00:00
Jean Delvare 80618f354d Trivial fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2389 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-22 19:55:12 +00:00
Jean Delvare 67a0c882aa Skip isadump on non-x86 architectures. Patch by Aurelien Jarno.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2382 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-21 13:10:26 +00:00
Jean Delvare 45940855fd Manual pages for dump tools, originally written by David Z Maze
for the Debian distribution. Original patch by Aurelien Jarno.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2380 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-21 10:28:48 +00:00
Mark D. Studebaker 36c7305e78 use /sys/class/i2c-dev/i2c-x/name file if available;
solves problem with drivers that have multiple busses;
      requires Greg's patch (for kernel 2.6.5?)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2341 7894878c-1315-0410-8ee3-d5d059ff63e0
2004-03-06 20:27:41 +00:00
Mark D. Studebaker 64aeb747a4 remove -o and -g args to install
Date: Thu, 18 Dec 2003 22:42:36 +0100
From: Haakon Riiser <haakon.riiser@fys.uio.no>
To: sensors@Stimpy.netroedge.com
Subject: lm_sensors 2.8.2 / DESTDIR / root

The reason for this email is that I always try to avoid running
Makefiles as root, even during 'make install'.  Therefore, I
always use the DESTDIR feature, when it's available.  Until today,
I always built i2c and lm_sensors by doing

  $ make
  $ make -i install DESTDIR=/foo
  $ cd /foo && su root && fix permissions/ownership && install

The -i flag to make install is a kludge to avoid having to be root
while installing to the DESTDIR, and it's only required because
the files are installed with "-o root -g root".  Using the -i
flag is of course not a good idea, since more fatal errors can
easily fly by undetected.

Today, I upgraded to Linux 2.6.0, and tried a similar install
procedure for lm_sensors, except that the make target is now "user"
and the install target is "user_install".  I now noticed that the
DESTDIR variable is not used everywhere in "user_install", so I
couldn't use the -i kludge anymore.  Instead, I wrote a patch that
removes the "-o root -g root" arguments to install everywhere, and
I also tried to add DESTDIR to all files/directories installed.
(The patch only applies to lm_sensors, not i2c, since only
lm_sensors is required in Linux 2.6.0.)

There's really no reason to say -o root -g root anyway, since if you
do install directly with make install, you have to be logged in as
root, and then the files will get the right ownership by default.
Much of the point of installing to a temporary DESTDIR is that you
don't have to be root, and that you can prepare the installation
by hand.  Fixing the ownership is trivial:

  chown -R root.root $DESTDIR


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2189 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-23 23:13:38 +00:00
Jean Delvare 5c4b5f75d5 rpath patch by Joerg Dorchain <joerg@dorchain.net>.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2185 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-12-16 19:59:50 +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 713f3eddb7 simplification
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2098 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-28 02:27:41 +00:00
Mark D. Studebaker 5bfcb08e18 report i2c-dev bus numbers rather than i2c-adapter numbers,
which may be different.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2097 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-27 23:53:10 +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 1ec05114f4 cleanups
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2086 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-22 22:27:19 +00:00
Mark D. Studebaker 5cef938a0e remove isaset accidentally added in
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2079 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-11-21 04:05:48 +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
Mark D. Studebaker 0948e17ee9 add new build targets 'user' and 'user_install'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1822 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-28 20:04:51 +00:00
Jean Delvare 9f5e11adc7 Fix compiler warning (missing include).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1792 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:22:22 +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
Jean Delvare eee8d62f7b Fix compiler warning (uninitialized variable).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1790 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:06:49 +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 2fa3db2f24 make install now installs i2cdump, i2cdetect, isadump, i2cset
in /usr/local/sbin


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1484 7894878c-1315-0410-8ee3-d5d059ff63e0
2002-08-03 21:08:53 +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