Commit Graph
500 Commits
Author SHA1 Message Date
Frodo Looijaard dde88d36d8 mkpatch is now complete. It is not yet tested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@515 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 14:32:26 +00:00
Frodo Looijaard c937c1aa56 A beginning on the lm_sensors mkpatch script.
Untested, not complete, do not use, but coming along nicely.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@514 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 12:32:17 +00:00
Frodo Looijaard fcbe78a669 First step to make it possible to integrate lm_sensors modules into
the kernel.

* <kernel/init.h> is now included for all modules
* Initialization-time only functions and variables are marked with __init
* EXPORT_SYMBOL or EXPORT_NO_SYMBOLS declarations added


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@513 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 11:43:58 +00:00
Frodo Looijaard 7de5a15384 Updated TODO
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@512 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 00:21:46 +00:00
Kyosti Malkki c9e71cd9df (Kyösti)
* gl518sm document simplified for rev 0x00 & 0x80
 * gl518sm & gl520sm libsensors interface updates

 BTW: Revision is no longer part of the name, so old sensors.conf
      will not work at all with gl518sm.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@511 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 21:19:14 +00:00
Kyosti Malkki 41c6e871a4 (Kyösti)
* Restructured iteration code for rev 0x00

 Two modes already:

   0   no iteration, no delay, reads only vin3, vin0-2 = 0
   1   does iteration, delays reads approx. 8 seconds

 To be added:

   2   does iteration in background, no delay for user apps

  In this mode the results of the last iteration loop are shown,
  and then a new iteration loop is triggered.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@510 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 16:43:37 +00:00
Kyosti Malkki b64ef156c9 (Kyösti)
* now compiles with DEBUG=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@509 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 14:46:46 +00:00
Frodo Looijaard f25a9ff361 Tidied up the TODO list.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@508 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-22 10:58:05 +00:00
Kyosti Malkki 655a994e9c (Kyösti)
* gl520sm compiles now


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@507 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 22:45:20 +00:00
Frodo Looijaard dac5f2f6fd TODO update
My last commit for today.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@506 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 22:14:50 +00:00
Frodo Looijaard 2212822342 ISA changes
* i2c-isa simplified, by using the addr field in the client structure,
  instead of a new field. This means we do not need `struct isa_*'
  anymore
* All clients changed to reflect the new isa code. Many are much
  simplified now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@505 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 22:04:34 +00:00
Frodo Looijaard abf15cf902 sensors-detect now use smbus_quick command for probes. sensors-detect
no longer tries to load i2c-proc. TODO list updates.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@504 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 20:11:27 +00:00
Kyosti Malkki 2dbe720b09 (Kyösti)
* Added new client driver for GL520SM


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@503 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 10:30:07 +00:00
Kyosti Malkki 6126040a88 (Kyösti)
* removed separation of GL518SM to revision 0x00 and 0x80


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@502 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 10:14:59 +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
Kyosti Malkki 0bf0482e56 (Kyösti)
*  Use write-address to detect devices on the bus.

 Simple clients that you can't read, don't ack the read address.
 I believe every client has to ack their write address?


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@500 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-21 09:35:40 +00:00
Kyosti Malkki 3014204a0d (Kyösti)
* renamed every smbus_*  access to i2c_smbus_*
 * everything in lm_sensors2/kernel/* compiles nicely :)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@499 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-20 22:46:49 +00:00
Kyosti Malkki 868b407674 (Kyösti)
* True SMBus host support for VIA southbridges

 Supports PCI devices:
   1106:3050        VT82C596    "Via Apollo Pro / Pro+"
   1106:3057        VT82C686    "Via Apollo MVP4"

 I have no hardware to test these..


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@498 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-20 21:48:39 +00:00
Kyosti Malkki 7ac5a6005f (Kyösti)
* Fixed adapter drivers to compile with the new i2c structs.
   They might, or they might not work..


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@497 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-20 21:38:11 +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
Frodo Looijaard 17bb1f4934 Slight fix to the Makefile for Debian users
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@495 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-13 23:09:09 +00:00
Frodo Looijaard 8e98b3c1f6 pci_write_word_united wrote a byte instead :-(
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@494 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-23 19:09:09 +00:00
Frodo Looijaard 791c9709cf SiS5595 driver correction, which made any insertion impossible
Never put a semicolon after an if :-(

I have a SiS5595 here, which reports his chip monitor address as 0x0000.
Strange thing...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@493 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-23 18:39:47 +00:00
Frodo Looijaard 746250b30a Detection bug for ADM9240 solved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@492 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-22 22:09:09 +00:00
Philip Edelbrock 949f5199c5 (Phil) Slightly better looking screen updates.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@491 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-18 05:07:24 +00:00
Philip Edelbrock 1b4a230a5d (Phil) Improved the speed by a lot.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@490 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-18 04:51:16 +00:00
Philip Edelbrock bcb6b86014 (Phil) Yikes! Removing the i2c project from lm_sensors2. The new home is
in the root dir of the CVS archive. (a complete backup was made before
doing this, of course ;')


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@489 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-17 02:04:13 +00:00
Philip Edelbrock 9f20e1e821 (Phil) Tag and release 2.3.4
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@488 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-17 01:44:30 +00:00
Philip Edelbrock 9a200e3bce (Phil) Prep for 2.3.4 release.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@486 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-17 01:40:51 +00:00
Philip Edelbrock b57f6b73e6 (Phil) Documentation for the matorb driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@485 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-17 01:22:50 +00:00
Kyosti Malkki 824dd6c635 (Kyösti) gl518sm driver code updates
* rewrote iteration code for rev 0x00
* fan1 on/off control


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@484 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-16 22:16:48 +00:00
Philip Edelbrock e9c1b45a44 (Phil) This is a simple Perl script which reads standard input and sends
the results to the display.  Only the first four lines are read, and only
the first 20 chars of each line are displayed.

Example use:

echo -e "hi\nthere,\nhow are\nyou?" | displayit.pl

Displays this on the display:

hi
there,
how are
you?


It doesn't get much simpler than this!

TODO: The code isn't very efficient and goes slow for what it is doing.
It assumes that the display is 20x4 (easily changable).  And, it assumes
that there is only one display. This is really more of a simple example
than a feature-rich app.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@483 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-16 06:25:31 +00:00
Philip Edelbrock 63a083da8e (Phil) It works! So, I'll commit it. Here's the skinny:
There is only one file 'disp'.  To send bytes (like chars to be displayed)
you send a series of unsigned base-10 values separated by spaces.
For example:

echo "hi there" | perl -e \
 '$_=<STDIN>; while (/(.)/gc) { print ord($1)," "; }' \
 > /proc/sys/dev/sensors/matorb*/disp

This is equivelent to doing:

echo "104 105 32 116 104 101 114 101" > /proc/sys/dev/sensors/matorb*/disp

I was going to create more files for doing things like clearing the screen,
but it is easier and probably better to do this in user-space.  For example,
to clean the screen, you can do:

echo "254 88" > /proc/sys/dev/sensors/matorb*/disp

(As documented in the manual from Matrix-Orbital)

If the folks at Matrix-Orbital added device ID on a read (we talked about
this), then I will add an ID file to indicate that info.

TODO: finish detection.  Right now it looks for a device at a particular
address and assumes it is a display.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@482 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-16 05:40:35 +00:00
Frodo Looijaard 1ff91e0555 Small SMBUS read byte fix
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@481 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-15 15:01:36 +00:00
Kyosti Malkki ffe3cb3324 (Kyösti) : Fix the Read Word bug, again..
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@480 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-09 23:10:13 +00:00
Kyosti Malkki 0960a2028b (Kyösti) SMBus over i2c "Read Word" bug fixed
Uh.. there was a '+' when it should have been '|'


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@479 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-09 20:07:41 +00:00
Kyosti Malkki a652901772 (Kyösti) : Setting minimum fanspeed to 0 disables alarm
The HW still generates the alarm, but the output is masked. The mask comes
useful also once I start fine-tuning that iteration code for reading all 4
voltages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@478 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-09 18:28:46 +00:00
Frodo Looijaard 29a33cac35 Several small patches to make everything compile against all 2.0.x
kernels, even early ones.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@477 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-09 17:26:32 +00:00
Frodo Looijaard d42004ee6c Corrected the last patch (for 2.0 kernels)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@476 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-08 21:36:31 +00:00
Frodo Looijaard d6056ebb59 Resolved undefined VIA PCI device for 2.0.33 kernels
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@475 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-08 19:37:15 +00:00
Mark D. Studebaker ba8c2301b0 update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@474 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-07 00:17:09 +00:00
Frodo Looijaard 7ad0562dc3 Made sure i2c-voodoo3 does not export more symbols than strictly
necessary. Resolved one remaining warning in matorb.c


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@473 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-06 22:24:36 +00:00
Frodo Looijaard 86ba0c96fd (Frodo) Several minor things
* Made i2c-voodoo3.c compile with 2.0 kernels
    It should also run without problem, but obviously I could not test it
    Changes are in the memory mapping of PCI address space
  * Removed several warning from i2c-voodoo3.c
    It compiles now without any warnings, even with WARN=1
  * Removed several warnings from matorb.c
    It compiles now without any warnings, even with WARN=1
    In the proces, I fixed one serious bug (assignment instead of comparison)
  * Removed a warning from w83781d.c
    It compiles now without any warnings, even with WARN=1

Hint: Once in a while, try to compile with WARN=1 and remove warnings. It
helps to find serious, hidden problems. Really!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@472 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-06 14:06:04 +00:00
Frodo Looijaard ed9ebe477b Fixed i2c-core.c kernel 2.3.x modifications to work again with kernel
2.0.x


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@471 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-06 13:29:12 +00:00
Philip Edelbrock 18a07111cd (Phil) last MUTEX change.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@470 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-04 23:50:47 +00:00
Philip Edelbrock 38cd39211c (Phil) Tag and release 2.3.3
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@469 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-03 20:49:42 +00:00
Frodo Looijaard f1888417ca Bradley M. Keryan's patches to make lm_sensors compile against
2.3.x kernels (x >= 1).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@467 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-06-02 18:19:38 +00:00
Frodo Looijaard 9e9a78774a Small W83781D typo fixed, new TODO list entries
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@466 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-17 14:34:24 +00:00
Philip Edelbrock 99668fefd6 (Phil) Minor timing adjustment.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@465 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-15 20:23:52 +00:00
Philip Edelbrock dd4ef6c059 (Phil) Beginnings of the Matrix-Orbital driver (based on lm75.c). As it
is right now, it should clear the LCD screen.  But, I discovered that
the display simply can't cope with I2C read commands - it completely
locks up *both* the data and the *clock* lines!  (That's new.) So,
it kills the bus when probes or other reads are done to the device.
Matrix-Orbital has to fix this before we can get anything
usable working.   :'(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@464 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-14 05:52:20 +00:00