Commit Graph
100 Commits
Author SHA1 Message Date
Mark D. Studebaker 2072a3c9d6 (mds) Add adm1025 driver from Chen-Yuan Wu.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@801 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-05-11 01:35:22 +00:00
Mark D. Studebaker ce5c90df0b (mds) maxilife 99 support from Fons R.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@790 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-04-15 17:21:12 +00:00
Bob Dougherty 35cb21b7be (bobd) fixed temp2 alarm bit
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@767 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-10 20:28:19 +00:00
Mark D. Studebaker 40ccaaa658 (mds) Add via686a integrated sensors support. Untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@742 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-03-04 16:14:08 +00:00
Mark D. Studebaker 7a6897b949 (mds) additions for ddcmon.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@715 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 01:16:08 +00:00
Frodo Looijaard 6a2c82b491 `indent -kr -i8' on all kernel sources
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@707 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:37:01 +00:00
Frodo Looijaard 888d32f50b Removing kernel 2.0 and 2.1 compatibility pass 2
Eliminated compat.h


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@705 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 20:07:29 +00:00
Frodo Looijaard 2ff447b225 make install fixes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@681 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-03 00:32:38 +00:00
Frodo Looijaard 01bad38253 Added DESTDIR Makefile variable
Set DESTDIR if you want to install at some other place then where you
will run everything from.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@675 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:52:28 +00:00
Frodo Looijaard 9951d5c9d0 A few files not committed for some reason in the previous run
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@641 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 20:49:45 +00:00
Frodo Looijaard 52b2ce8f52 Patches to make it compatible with kernel 2.3.27 and newer
* Improved monitoring of /proc directories
  Instead of doing:
         proc_bus_i2c->fill_inode = &monitor_bus_i2c;
         void monitor_bus_i2c(struct inode *inode, int fill)
         {
           if (fill)
             MOD_INC_USE_COUNT;
           else
             MOD_DEC_USE_COUNT;
         }
  you can now simply set:
         proc_bus_i2c->owner = THIS_MODULE;
  and this is just as good!
* An old 2.3 problem seemingly never was resolved yet: instead of using
  a *wait_queue directly, you have to use a wait_queue_head_t and
  initialize it properly:
         #if (LINUX_VERSION_CODE < 0x020301)
         static struct wait_queue *pcf_wait = NULL;
         #else
         static wait_queue_head_t pcf_wait;
         #endif

         #if (LINUX_VERSION_CODE >= 0x020301)
            init_waitqueue_head(&pcf_wait);
         #endif
  except for this, semantics remain the same (but using a plain
  wait_queue_head_t instead of a pointer to a wait_queue)
* I had to change the semantics of sensors_register_entry slightly,
  to make the monitoring of /proc/sys/dev/* files possible for kernels
  2.3.27 and newer. It now takes an additional parameter, which you
  can specify as THIS_MODULE.
* THIS_MODULE is only defined in kernels 2.3.13 and later; added
  it to compat.h and the compatibility section of mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@640 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-30 20:48:43 +00:00
Frodo Looijaard 76137a7bf2 Typo as spotted by Kevin Ryde fixed
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@637 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-23 22:54:26 +00:00
Mark D. Studebaker d5f72aebac (mds) add support for gl523sm (adm1021 clone) to adm1021.c and sensors-detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@603 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 02:00:43 +00:00
Mark D. Studebaker 129e08cc94 (mds) Add support for LM84 (ADM1021 clone) to adm1021.c and sensors-detect.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@602 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 01:51:27 +00:00
Frodo Looijaard 52781e50b4 Preparations for better 10-bit address support
Updated for the changes in i2c_smbus_* functions


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@585 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 16:01:24 +00:00
Frodo Looijaard 68a31e3480 Some code cleanups
* Removed several superfluous (struct i2c_client *) casts (they were left
  from the time we had separate structs for smbus and isa)
* Removed the internal lists of registered clients
  They have not been used for quite some time now, took memory space,
  and limited the maximum number of clients that could be registered.

Also removed two small Makefile errors - I am happy I caught them before
the next release!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@582 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 13:20:45 +00:00
Frodo Looijaard fc20445e02 Surer `make clean' implementation
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@581 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 10:52:50 +00:00
Frodo Looijaard c81440d21a Makefile changes for better behaviour with already patched kernels.
The Makefile now examine $(LINUX)/.config to see what modules need to be
compiled. It compiles only those modules which were either not configured
in at all, or were built as modules (ie. drivers which are built-in in the
kernel are not built, as they can not be overruled).

The above is still potentially dangerous, if we break the interface of
our modules. Still, it is much better than it was.
C


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@575 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-22 23:11:52 +00:00
Frodo Looijaard 399608b208 Updates for 2.0.x kernel compilation
Most important change: GL518SM-rev00 can't use kernel threads on 2.0 and
early 2.1 kernels


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@563 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-13 20:55:49 +00:00
Philip Edelbrock d529d90336 (Phil) OK, the driver is basically done, it just needs to be debugged.
I can build, insert, and use it to some capacity at this point.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@562 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-13 00:46:11 +00:00
Philip Edelbrock c25252d479 (Phil) thmc50.o now compiles and inserts as part of the package.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@560 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-12 23:02:35 +00:00
Frodo Looijaard d1e26d5f16 mkpatch updates
* mkpatch now correctly works when kernel-side files do not yet exist.
  I forgot to propagate a change in the i2c version.
* __init* handling in mkpatch and compat.h
* New i801 defines added to mkpatch


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@545 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-03 11:11:03 +00:00
Mark D. Studebaker d34707ac02 (mds) For i801 support.
Oops forgot to check it in with the rest of the i801 stuff.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@531 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-22 15:05:50 +00:00
Mark D. Studebaker 8da1cf8c4f (mds) Add initial w83627hf support. Assuming identical to w83782d.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@525 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-15 21:01:48 +00:00
Kyosti Malkki 8861601cc2 (Kyösti)
* removed algorithm registration in i2c-isa
 * renamed i2c-via2.o to i2c-viapro.o in the driver messages
 * added detection for new drivers in sensors-detect script
 * minor gl518sm fix


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@522 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-27 16:51:00 +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
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
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
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 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
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
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 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
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
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
Philip Edelbrock e2eaa8a9a4 (Phil) More bug fixes and test code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@460 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-12 04:03:22 +00:00
Philip Edelbrock c4b98d9d01 (Phil) NTSC 640x480 and 800x600 output seems to work now (yeah!). They
need these 'special' modelines for XF86Config:

ModeLine "640x480NTSC"   28.195793  640 656 658 784  480 520 525 600
ModeLine "800x600NTSC"   38.769241  800 812 814 880  600 646 649 735

My monitor really doesn't like these modes, but they seem to work well
for TV output.  Oh, and this is only for a screen depth of 16bits
right now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@459 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-10 05:48:58 +00:00
Philip Edelbrock 3298cde510 (Phil) Expansion and beginning functionality of BT869 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@458 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-10 00:17:39 +00:00
Frodo Looijaard 7cffb0b12a Changed the driver ID of the MAXILIFE, as spotted by Phil
Same IDs could lead to nasty surprises :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@449 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-06 11:08:30 +00:00
Philip Edelbrock 6a83949e74 (Phil) Beginnings of Voodoo3 I2C support and BT869 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@447 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-06 05:12:36 +00:00
Frodo Looijaard 5ffe4834e5 Made i2c-hydra.o 2.0.x kernel compatible
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@442 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-02 21:00:24 +00:00
Frodo Looijaard 1725a864ac ADM9240 and DS1780 sensors program entries
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@437 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-05-01 15:28:49 +00:00
Mark D. Studebaker d70c450c78 Added sensor[1-3] support for w83782d/783s to 'sensors'.
Now prints out what kind of sensor it is.
Also separated alarms for temp2 and temp3 for 782d/783s (they are
a single bit for 781d).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@400 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-20 01:49:51 +00:00
Frodo Looijaard db7cba03ca ADM1021 documentation
The old documentation of Phil is still present at the bottom of the file.
Phil may decide to remove it.

In the driver, file 'status' is renamed to 'alarms' and masked to display
only the alarm bits. This fits more closely with other drivers, and the
remaining bit was not interesting anyway.

I fixed a problem that made insertion of the module impossible (I made a
typo when I introduced the insmod parameters) *** Someone else seems to
have changed this at almost the same moment?!? Now it is correct. ***

The MAX1617 and MAX1617A are now also supported by the library.

Once more, some slight formatting changes are made in the documentation
generators (some columns were made wider).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@395 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-15 22:19:59 +00:00
Frodo Looijaard 3e38c3f87e Completely correct limit handling for the lm78 module
Whatever you cat to /proc/..../lm78-*/*, the result will now always be
sensible. No more overflows resulting in weird values.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@381 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-11 20:38:01 +00:00
Frodo Looijaard cb3131905c Major SIS5595 overhaul
* sis5595.c now understand insmod parameters
* sis5595.c now uses sis5595_ prefix instead of lm78_ prefix
* sis5595.c now supports the correct subset of the LM78 features
            (it only knows about 4 voltages, 2 fans and no vid)
* added SIS5595 defines to sensors.h
* fixed a small problem in compat.h


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@379 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-11 16:12:36 +00:00
Frodo Looijaard 0cf84e8549 Redid the macro trickery to define module parameters automatically.
This new version also creates MODULE_PARM_DESC entries, which describe
what each parameter is used for.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@360 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-04 20:56:30 +00:00
Mark D. Studebaker 3ccf39c7d0 Added sensor[1-3] to 782d/783s to select sensor type.
Added RT table read to 781d but then #undef'ed it since it was just
all 1's. Changed max entries in sensor.c to 32 bytes to handle RT table.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@335 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:48:19 +00:00
Philip Edelbrock 1ac215f6a1 (Phil) Added Fons Rademakers' <Fons.Rademakers@cern.ch> MaxiLife driver.
I've reviewed and applied the patch, but I would like some others to review
these commits too, to be safe.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@327 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-19 21:11:33 +00:00
Frodo Looijaard b4b1293b25 LM78 insmod parameters and better detection
Supported insmod parameters:
  ignore, ignore_range
  probe, probe_range
  force, force_lm78, force_lm78j, force_lm79

force* overrules ignore* overrules probe*

The *_range parameters need three elements for each specification:
  bus,start_addr,end_addr
The address ranges are inclusive.
The other parameters need two elements for each specification:
  bus,addr
In each case, '-1' stands for 'any I2C bus', and 9191 stands for
'the ISA bus' (Bonus question: who can figure out why I choose 9191?)
In each case, just append if you want several specification, for example:
  insmod lm78 probe=9191,0x2a0,1,0x56

force_* does no detection, not even chip detection; it blindly assumes
you know what you are doing. plain force does the chip detection, but
nothing else; but it can still fail if the register read-out does not
match a chip type.

Detection is done in exactly the same way as sensors-detect, except that
only the range 0x20-0x2f is examined by default. This needs to be
synchronized somehow with the detect script. I would rather scan the whole
I2C address range, but with those clueless PIIX4 hangs when clock chips
are read, that would simply give too much trouble.

The detect script has slightly better ISA detection now, too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@325 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-19 06:25:02 +00:00