Commit Graph
108 Commits
Author SHA1 Message Date
Mark D. Studebaker b5d014bd46 Disable sensors.c and i2c-isa.h in the Module.mk files.
Leave the files there for now.
      Remove old installed sensors.o in kernel/Module.mk.
      sensors.c was moved to i2c-proc.c in the i2c package.
      i2c-isa.h was appended to i2c.h in the i2c package.
      Delete all but the SYSCTL and ALARMS definitions in sensors.h,
      as the rest of the file was moved to i2c-proc.h in the i2c package.
      Remove #include "i2c-isa.h" lines in all chip drivers and
      in bus driver i2c-isa.c.
      This all probably breaks mkpatch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1015 7894878c-1315-0410-8ee3-d5d059ff63e0
2001-02-06 02:53:46 +00:00
Philip Edelbrock f592b02b21 (Phil) Wrapped Serverworks OSB4 support into i2c-piix4.c (briefly tested
on both platforms).  LM87 support is very far along, and should work
for a majority of users, but some minor tweaks are still on the to-do list.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@963 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-22 19:26:21 +00:00
Mark D. Studebaker ab321d5243 (mds) add lm87 support to 'sensors'. Rename SYSCTL_* values to standard
TEMP[1-3], etc. No fan2 support in driver yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@953 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-12-16 17:07:24 +00:00
Mark D. Studebaker bb4b723e68 (mds) add ds1621 driver from Christian Zuckschwerdt (zany@triq.net)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@935 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-11-26 23:07:17 +00:00
Mark D. Studebaker 4dcb88898c (mds) MTP008 driver patch from Kris Van Hees.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@909 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-18 00:34:07 +00:00
Philip Edelbrock 6270f18139 (Phil) Added support for adm1023. Actually, the adm1021 driver worked
perfectly with the adm1023, but didn't take advantage of it's extra precision
for the remote temp sensor. Now, if an adm1023 is detected, it will.

For example, my adm1021 remote_temp looks like this:

phil@penn phil]$ cat /proc/sys/dev/sensors/adm1021*/remote_temp
60 20 23

My 1023 looks like this:

[root@penn lm_sensors2]# cat /proc/sys/dev/sensors/adm1023-i2c-2-2a/remote_temp
60.125 20.250 1.500 20.875

(Both from the same inserted driver)

Notice the extra 3 digit precision (actually, it's in increments of 0.125).
And, also notice the extra 'limit'.  It's actually an offset register.
Right now it's adding 1.5 degrees to the reading for the remote_temp. This
same functionality could easily be done by editing /etc/sensors.conf, but
Analog Devices decided to put it into the chip instead. :')

Things to do: edit the default sensors.conf, and sensors-detect for this
new chip.

Oh, I also added SENSORS_INSMOD_7 into sensors.h.  This was the first
driver to need it, apparently.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@904 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-16 01:45:44 +00:00
Dan Eaton 0992d0bc20 (Dan) Added support for PCF8574 I2C bus expander.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@887 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-10-08 20:33:00 +00:00
Philip Edelbrock cc4315029e (Phil) Initial addition of LM87 driver. Compiling testing not done yet,
but will be done very shortly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@872 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-09-13 23:28:14 +00:00
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