Commit Graph
192 Commits
Author SHA1 Message Date
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
Mark D. Studebaker 87993e7c02 (mds) add support for force parameter. This allows for as99127f users to
use lm75 driver for temp2 and temp3 until I fix w83781d driver.
      LM75 detection fails on as99127f (and w83781d temp2).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@670 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-14 01:24:37 +00:00
Frodo Looijaard fd545796ee Changes regarding the new i2c_check_addr function
Changes in sensors.c:

  sensors_detect now skips addresses which are already taken. Even a
  force parameter can not override this, as it could lead to major
  problems.
  For ISA addresses, the same is done; but the client drivers still need
  a check if they claim more than one ISA address (as all of the current
  ISA clients do).

Changes in chip drivers:

  Removed the comment about needing address registration

Changes in i2cdetect.c:

  Marks addresses which are already claimed

Changes in sensors-detect:

  Warns when an address is already claimed, and skips it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@667 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-08 20:37:09 +00:00
Frodo Looijaard d3441611d6 SMP bug solved (file not included)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@666 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-08 17:38:45 +00:00
Mark D. Studebaker b5d883ad24 (mds) bug fixes on sensor[1-3] reads and writes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@663 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-04 02:52:15 +00:00
Frodo Looijaard b9831fbfcd Fixed the strange compile problems some people had
Reasons varied from typos (_ instead of -) to static declarations that
should have been extern.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@646 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:57:44 +00:00
Frodo Looijaard 5059c482fd Just to make sure, added `#include <linux/version.h>' at several
other places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@645 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:48:34 +00:00
Frodo Looijaard efe7346ff5 Small fix: sis5595.c did not compile into the kernel, because
<linux/version.h> was not included (it was automatically
       included by <linux/module.h> when a module, but that is not good
       enough of course...)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@644 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:36:38 +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 3f5c8939fd fan div error in adm driver correction
Strange, I thought I had committed this one a few days ago...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@635 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-20 19:27:10 +00:00
Kyosti Malkki d4fe780d20 (Kyösti)
- SiS 5595 patches, thanks to Olaf Titz


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@632 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-18 23:42:12 +00:00
Mark D. Studebaker b2a1ac6622 (mds) Try again for as99127f detection. Remove verification of
address register 0x48.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@625 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-12 03:13:22 +00:00
Mark D. Studebaker bce5bc715f (mds) Fix detection for as99127f (hopefully)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@620 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-05 04:08:07 +00:00
Frodo Looijaard c5fe440f59 Fixed Makefile problems
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@619 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-01 23:01:08 +00:00
Mark D. Studebaker c31a3f5ad8 (mds) Change VID_FROM_REG to allow values 0x06 - 0x0F
(1.75 to 1.30 Volts) as specified in Intel document
      243773302.pdf. Lower voltages are coming!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@617 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-31 00:51:13 +00:00
Mark D. Studebaker f6edfe75bd (mds) Add support for the Asus AS99127F. Treat as an I2C-only W83782D for now.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@614 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-30 21:26:21 +00:00
Mark D. Studebaker d23580c058 (mds) fix LM84 detection. Mfr ID in different place than the other chips.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@604 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 02:13:51 +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
Mark D. Studebaker 52ede0a657 (mds) add support for beep3 register in 782d/783s/627hf.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@601 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 01:26:00 +00:00
Mark D. Studebaker f86aec92f7 (mds) Disable beeps by default.
Reenable by 'set beep_enable 1' in sensors.conf or
      by 'echo 1 > /proc/.../w83781d.../beep
      Ref. tickets 178, 183, 195.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@600 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-20 01:10:18 +00:00
Frodo Looijaard 847d1d3d0f Corrected scaling of temperature limits.
See ticket 181 and 184. Basically, the limits were scaled by 100 instead of
10.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@594 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-06 16:59:55 +00:00
Frodo Looijaard 1be8e3b138 Bug fixed that made it impossible to insert the adm9240 driver
When checking for adapter functionality, a '!' had disappeared :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@592 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-10-04 14:09:53 +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 9d88e65c71 `functionality' checking for clients implemented
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@584 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-27 14:19:46 +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
Philip Edelbrock 373df8c69e (Phil) Improved detection.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@579 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-24 06:53:14 +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 1b41975d9a PCI fixes for kernel 2.3.13 and later. Typo fixed in thmc50 which
bit the compiler.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@566 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-16 19:47:46 +00:00
Philip Edelbrock 6df0da79cf (Phil) Some bug fixes. As far as I can tell, the THMC50 driver seems to
be working perfectly.  Of course, some real-world users might find something
I didn't...  BTW- I caught a minor bug which I thought was funny, and checked
lm75.c to see if it was there from the start... and it was!  So, I managed to
catch a bug in lm75.c which might have resulted in bad temp_hyst readings
during that short period between setting new limits and the next valid update.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@564 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-14 04:55:28 +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
Philip Edelbrock 8bd24883ce (Phil) First rough conversion of lm75.c to thmc50.c. In theory, it should
work but only support the internal temp sensor.... more to come!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@559 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-09-12 22:42:40 +00:00
Philip Edelbrock 2a2a3f35fe (Phil) Fixed temperature reporting of LM80 (I hope).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@543 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-30 04:15:55 +00:00
Mark D. Studebaker 84622329a3 (mds) Improved w83627hf support. Can't do much more unless I get a
datasheet though.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@539 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-28 19:06:53 +00:00
Mark D. Studebaker e3ea230c90 (mds) Fixed bug introduced with thmc10 that made adm1021 get reported
as a max1617. Thanks Phil.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@536 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-24 02:27:57 +00:00
Mark D. Studebaker 0208181806 (mds) add support for TI THMC10 to the adm1021 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@533 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-22 22:58:52 +00:00
Mark D. Studebaker 5f77505190 (mds) add lm81 support to the adm9240 driver.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@532 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-08-22 17:52:38 +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 a92e84fe2a (Kyösti)
* GL518 & GL520: setting fan{1,2}_min 0 masks alarm & beep

 * GL518SM rev 0x00 : Run iteration code in kernel thread

   Every run of "sensors" now reports results of the previous
   iteration run, and triggers a new one.

 * GL520: Reads all inputs now
 * GL520: Select between Temp2 or -12V input.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@520 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-26 15:31:45 +00:00
Kyosti Malkki 5811024b75 (Kyösti)
* typo fix and fine-tuning outputs


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@517 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-24 12:46:12 +00:00
Frodo Looijaard acd5a15556 (Frodo) Massive commit of all things related to mkpatch. Let's just say
it works great now.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@516 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-07-23 23:43:13 +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
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 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