Commit Graph
332 Commits
Author SHA1 Message Date
Mark D. Studebaker a27faf0d60 (mds) make PCI_DEVICE_ID names the same as in <linux/pci_ids.h>.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@730 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 02:33:52 +00:00
Mark D. Studebaker da8174c4db (mds) Add i810 dual-bus (I2C/DDC) driver using algo-bit.
The i801 driver is for the standard I2C bus on an i810 board.
      This driver adds the support for the DDC and TV-out busses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@729 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 02:03:33 +00:00
Mark D. Studebaker ac2f78cb0e (mds) stop changing fan 1/2/3 input/output values at module startup,
hopefully this will preserve BIOS settings.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@728 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-07 01:54:00 +00:00
Mark D. Studebaker 4f8725ec23 (mds) fix request_region() call. Was requesting xx00 - xx07, now
correctly requesting xxE0 - xxEF. Should resolve conflict with
      ACPI.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@726 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-02-04 00:16:44 +00:00
Mark D. Studebaker 0efe92ad9a (mds) more parentheses in detection if statement - can't hurt.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@719 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 02:37:03 +00:00
Mark D. Studebaker afcc0fe82f (mds) updated adapter name to add Banshee and remove 0000 address.
Add warning if > 1 voodoo3/banshee found.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@718 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 01:24:37 +00:00
Mark D. Studebaker ac7ace0484 (mds) changed refresh time from 1.5 seconds to 5 minutes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@717 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 01:21:49 +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
Mark D. Studebaker 27f0db257c (mds) add simple ddc monitor module 'ddcmon'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@713 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-30 01:05:47 +00:00
Mark D. Studebaker dac07447b9 (mds) Fix broken send_byte_data() for I2C and DDC.
Wasn't used by bt869 so wasn't found before.
      i2cdump now works and sensors_detect will find ddc monitor.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@711 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-28 01:05:40 +00:00
Mark D. Studebaker 30fa84cbfd (mds) remove functionality check for WRITE_WORD
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@710 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-28 00:46:11 +00:00
Frodo Looijaard 4319123b28 GL518SM buglet fixed
Initially, random values were put in the voltage registers. If iterate was
left at 0, these random values were put in /proc.

Solution: initialize voltage[0..2] with 0.

  Frodo


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@709 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-26 16:16:53 +00:00
Frodo Looijaard 267a60f254 Guarded all {get,put}_user and copy_{to,from}_user calls
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@708 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-26 14:41:10 +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 9480bb5988 Removal of kernel 2.1 and 2.2 compatibility: pass one
Removed many #if statements


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@704 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-24 19:30:08 +00:00
Mark D. Studebaker b2cde3487e (mds) Add Banshee support and DDC bus support.
Simultaneous DDC and I2C access may cause errors.
      No support for multiple Voodoo3/Banshee chips, only first one
      is handled.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@698 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-15 19:01:54 +00:00
Mark D. Studebaker c80cf6c1eb (mds) Divide temp2 and temp3 by 2 for as99127f. Resolves reports
by Dirk Mueller and Pixel that readings were 2x too high.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@693 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-11 03:08:41 +00:00
Mark D. Studebaker 62e2a8f187 (mds) fix 782d/99127f/623hf isa vs. i2c structure selection.
Thanks Dirk Mueller.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@692 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-11 02:35:57 +00:00
Frodo Looijaard 460f4f9ebb Fixed a temperature bug in the LM80 driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@691 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-10 23:27:32 +00:00
Mark D. Studebaker 136a65eede (mds) change my email addr.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@689 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 16:53:46 +00:00
Mark D. Studebaker 6340ed3175 (mds) change my email addr.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@688 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 16:48:39 +00:00
Mark D. Studebaker cd15965d26 (mds) fix in5 and in6 min/max initialization for as99127f.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@687 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 16:42:26 +00:00
Mark D. Studebaker 68c3de4b5e (mds) Change accesses for LM75-compatible temp2/temp3
registers in I2C mode.

      Instead of using bank 1 and 2, which was in violation of
      the datasheets, use the separate I2C registers (usually
      0x48 and 0x49). Register these addresses separately
      using additional i2c_attach-client() calls.
      Users will see new "subclient" registration messages
      in the syslog.

      /proc and libsensors interfaces are unchanged, i.e. the
      chip still looks like a single device.

      This should fix temp2 and temp3 for the as99127f, which
      did not allow bank 1 and 2 accesses. Should not affect
      operation for other chips as they worked before.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@686 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-08 04:26:57 +00:00
Frodo Looijaard 8250fb4ed7 Fixed voodoo3 for kernel 2.3.37.
Please test. Changes in voodoo3_setup:

* Use pci_find_device instead of traversing the list ourselves;
* Eliminate flag, testing v3_num is just as good;
* Elimiate result, it was not used anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@684 7894878c-1315-0410-8ee3-d5d059ff63e0
2000-01-07 17:16:27 +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 258c8dd869 Olaf Titz <olaf@bigred.inka.de> patches for the SIS5595 driver
It still does not work - but I need more feedback to determine what
is happening.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@674 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-24 19:44:34 +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
Merlin Hughes 4343e90a9b (Merlin) removed some legacy piix constants and comments.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@658 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 21:16:29 +00:00
Frodo Looijaard bf14de051f New SiS5595 SMBus driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@654 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 02:05:25 +00:00
Frodo Looijaard be2a5407e9 Fixed bug in PIIX4 driver: it claimed to do SMBUS_PROC_CALL.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@653 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 01:45:58 +00:00
Frodo Looijaard c158f1b4a6 Moved AMD756 ID to the main i2c-id.h file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@651 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-02 00:50:47 +00:00
Frodo Looijaard 77051058bb A bit too optimistic in my last commit - still more disagreement
about init function names that needed to be fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@647 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 01:08:11 +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 1238d9ab44 New i2c-amd756 driver by Merlin Hughes <merlin@merlin.org>
sensors-detect detection is now complete; I think nothing else needs
to be done in the tree?!? (except documentation of course)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@643 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-12-01 00:33:33 +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
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 6b697a2b1c (mds) remove request_region for ACPI area. This would eventually
have conflicted with kernel ACPI support if it would access
      ali15x3 registers directly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@628 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-14 02:41:27 +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
Frodo Looijaard 03866e7fb8 Stupid Makefile copy-and-paste bug (thanks Thomas Winder!)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@624 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-11-10 13:36:25 +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