Commit Graph
126 Commits
Author SHA1 Message Date
Philip Edelbrock 812e77a817 (Phil) Fixed a probing bug.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@282 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-28 20:40:53 +00:00
Frodo Looijaard 089481f07d Two insignificant patches to remove 2.0.x kernel compile warnings.
It compiles now cleanly against kernel 2.0.36; I checked, double-checked and
cross-checked.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@247 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 14:31:54 +00:00
Frodo Looijaard d4ae94bf20 Huh? My ALI patch did not take?!? Let's try again...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@245 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-18 13:19:29 +00:00
Frodo Looijaard a9cc710cc7 Two small warnings (one to the point) removed when DEBUG=1
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@237 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 19:19:23 +00:00
Frodo Looijaard 6e404a91d9 Stupid ADM1021 detection bug fixed (thanks Mark!)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@236 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-17 00:20:36 +00:00
Frodo Looijaard d78cd0cb5f Removed some compiler warnings
All our own code (ie. anything not in the i2c directory) compiles now without
warnings, even with WARN=1 (which sets -Wall -Wstrict-prototypes -Wshadow
-Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs
-Winline). There is one exception: the lex code (conf-lex.l) complains about
unused functions. That's flex' fault, not ours!

The i2c code still emits many warnings with the above flags; that's Simon's
problem.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@233 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-16 21:59:05 +00:00
Frodo Looijaard 5402bf4b71 Added MAX1617 support, and documented it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@232 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-16 21:33:41 +00:00
Mark D. Studebaker 071877a923 shortened the comments a little since we have a file in the doc directory.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@221 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-12 06:13:34 +00:00
Frodo Looijaard cf243b3072 Removed offending ISA test. Added warning about renamed modules.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@219 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-12 05:47:07 +00:00
Kyosti Malkki b1f55390ae (Kyösti) Reverted to previous version, with only typos corrected.
Temp and fan alarms yet to be fixed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@214 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-11 20:06:08 +00:00
Kyosti Malkki 90c8bc2ff6 (Kyösti) Modified gl518sm to use entries in /etc/sensors.conf.
Some small bugfixes, but temperature and fan alarms still don't work
as documented.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@213 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-11 01:18:34 +00:00
Philip Edelbrock 25a196faf1 (Phil) Added Mark D. Studebaker's (<mds@eng.paradyne.com>) bus driver
for the SMBus host on Acer Labs Inc. (ALI) M1541 and M1543C South Bridges.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@211 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-10 04:33:01 +00:00
Frodo Looijaard 24792039f6 Adrian's copyright patch applied
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@207 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-08 22:50:29 +00:00
Kyosti Malkki 26ebdf4fa3 (Kyösti) SiS5595 documentation forwarding you to LM78 documents.
Renamed sensors entry from "SiS 5595 Sensor-*" to "sis5595-*"
Added this name in sensors.conf.eg to use lm78 names for inputs.
Small related document updates.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@199 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-07 01:58:06 +00:00
Kyosti Malkki 79aed13889 (Kyösti) Support for the sensor hardware in SiS 5595. This has an
integrated LM78, so the driver is only a customized copy of lm78.c
This southbridge can also do i2c, but this not enough documented in
the datasheet. So i2c is currently not supported.

Some cosmetic changes for VIA driver and documentation.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@196 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-06 12:04:48 +00:00
Frodo Looijaard b9b60a0195 Automatically delete old kernel modules on a 'make install'
It tries to delete bit-via.o, bit-mb.o, isa.o and piix4.o in the module
install directory.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@194 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-05 13:25:49 +00:00
Philip Edelbrock b86777ddd3 (Phil) Changed voltage scalers to (slightly more?) sane values.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@193 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-05 07:47:13 +00:00
Philip Edelbrock c5ccb700b2 (Phil) Minor change in initialization of device. Hopefully this will
turn the device 'on' correctly so it starts monitoring.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@192 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-05 02:33:53 +00:00
Frodo Looijaard 6fe26d90fe PROC_CALL ioctl hook in i2c-dev added
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@190 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-02-02 17:13:00 +00:00
Kyosti Malkki 4928c0d7bc (Kyösti) : Via driver and related documentation moved under
lm_sensors2 source tree. Improvements in VIA driver,
            now checks revision code and refuses to load the
            module if bit_test (in algo-bit) fails.
            (Also fixes previous unsuccessfull CVS commit)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@187 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-31 22:55:35 +00:00
Kyosti Malkki e2f85d427e (Kyösti) : Via driver and related documentation moved under
lm_sensors2 source tree. Improvement in VI


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@186 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-31 21:29:53 +00:00
Frodo Looijaard 634cb32ac0 Update to the latest (mod-19990118) kernel archive
I really hope I did not forget an add or remove. If strange things happen
when you compile, please let me know.

There may still be problems with the EXPORT_* stuff; it seems to work now
for kernel 2.0.36pre19, but it may give trouble for earlier kernels. We
need to check that.

Some i2c modules may be a bit verbose at this moment.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@184 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-29 13:40:25 +00:00
Frodo Looijaard 065e52c2b1 Changed all isa.h references to i2c-isa.h
vi `find -type f|xargs grep -l isa.h` worked like a charm :-)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@182 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-29 00:17:11 +00:00
Philip Edelbrock b1cb5b860b (Phil) Renamed isa.h to i2c-isa.h. Note: '#include "isa.h"'s need to be
updated.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@181 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 22:51:38 +00:00
Frodo Looijaard face12a534 Stuff to get rid of the LM_SENSORS define
Until now, all installed include files depended on a #defined variable
LM_SENSORS: if it was defined, other files were included as "somefile.h"
instead of <linux/somefile.h>. This was clearly dangerous, and is fixed
now, by automatically deleting the offending lines from the include file
when it is installed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@180 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 15:36:01 +00:00
Frodo Looijaard f31a1f45f2 Makefile tweaks for the new kernel directory structure
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@179 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-28 14:45:20 +00:00
Philip Edelbrock 412327936e (Phil) Whoops.. minor typo fixed. Everything builds, and most modules
have been tested.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@177 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:21:46 +00:00
Philip Edelbrock ce7aea9a5a (Phil) Made slight adjustments so the new file arrangement will build.
I added two new make file 'includes': busses/Module.mk and chips/Module.mk
Frodo- You may want to review the makefile structure to make sure that
the system works as you intended.

Note: The docs still need to be updated to reflect the new file arrangement,
but at least it builds!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@176 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-27 06:10:00 +00:00
Philip Edelbrock bf7943bb69 (Phil) Added adm9240 and adm1021 entries into the lib and added VID
output to ADM9240.  Status/alarms values need to be implemented instead
of a raw output, but I'll do that too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@173 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-24 00:15:12 +00:00
Philip Edelbrock c55834ae8e (Phil) Added some simple detection (checks low byte of manufacturer ID),
and I fixed a small bug in the VID code (highest order bit was being lost).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@172 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-23 23:47:37 +00:00
Frodo Looijaard 8c18675d85 i2c-dev is now working!
You can now use i2cdump to dump SMBus device registers!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@165 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:47:52 +00:00
Frodo Looijaard 50573c910d More i2c-dev fixes
* Made some smbus.h symbols visible in non-kernel mode
* Some i2c-dev.h fixes


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@164 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 20:25:21 +00:00
Frodo Looijaard a5f164aca5 Made 'make install' first make everything; disabled the installation
of the old i2c i2c-dev now we have our own.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@161 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 19:14:38 +00:00
Frodo Looijaard a775db2fcc Completed i2c-dev. Not tested yet.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@160 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 19:07:57 +00:00
Frodo Looijaard 1b05c9e1c1 User-space header file added for i2c-dev access
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@159 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 16:46:38 +00:00
Frodo Looijaard 81c78982f6 The beginnings of i2c-dev
Everything is in, except the IOCTL hook (which will be pretty simple to add).
It compiles cleanly. It is not tested at all.

Also a very small fix for i2c-proc, and Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@158 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-13 01:32:09 +00:00
Frodo Looijaard 90627a9461 More better DEBUG stuff for piix4, removed compile warning for sensors.c
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@157 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 17:06:18 +00:00
Frodo Looijaard 6330b7018a Slightly better debug logs
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@156 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 17:02:01 +00:00
Philip Edelbrock e4051fec67 (Phil) Added a driver for the LTC1710. The LTC1710 is a very simple dual
switch.  It can switch two devices which each consume 300mA at 5V (or less).
This is good for fans, lights, or into relays for heftier stuff.

Here's what the usage looks like:

[root@penn sensors]# ls ltc1710-i2c-1-58/*
ltc1710-i2c-1-58/switch1
ltc1710-i2c-1-58/switch2

[root@penn sensors]# cat ltc1710-i2c-1-58/*
0
0

[root@penn sensors]# echo "1" >  ltc1710-i2c-1-58/switch2
(blue LED turned on)

[root@penn sensors]# cat ltc1710-i2c-1-58/*
0
1

One problem with the device: It doesn't support reads.  It ignores any
read transactions, so even detection with a read won't work.  This
also means that the status of the switches has to be remembered and
can't be polled.

As simple as this device is, it is one of the few which actually
allows the computer to send signals OUT into the world to
control something.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@155 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 05:20:10 +00:00
Philip Edelbrock ff2c35a40b (Phil) Added driver for ADM9240. It isn't full tested, but it is
mostly there and working.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@154 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-11 03:33:07 +00:00
Philip Edelbrock 899ca67043 (Phil) Added a driver for the Analog Devices ADM1021. The ADM1021 is
basically an expanded LM75.  It can have an external temp probe (in
addition to the internal one), customizable conversion rate (in # of times
per second, depending on power consumption requirements), and
actually has a device-id register for easier/more-certain detecting!

The only strange property is the low-limit.  The low-limit doesn't act
as a Hystersis value like the LM75.  I.e., if the temp falls below it,
it triggers an alarm instead of clearing it.  Strange, ey?  This makes
using the chip for a thermostat control (like for a fan) much harder.
But it *could* be used to turn on a heater to prevent your computer from
freezing. :')

Here's what my output looks like (without a remote sensor. temp's
are the same format as the LM75 [high-limit, low-limit, value]):

[root@penn adm1021-i2c-0-18]# ls -l
total 0
-r--r--r--   1 root     root            0 Jan  9 23:42 die_code
-rw-r--r--   1 root     root            0 Jan  9 23:42 remote_temp
-r--r--r--   1 root     root            0 Jan  9 23:42 status
-rw-r--r--   1 root     root            0 Jan  9 23:42 temp
[root@penn adm1021-i2c-0-18]# cat *
3
60 20 0
76
60 20 24


PS- all temp values in the ADM1021 (limits and readings) are signed
(2's comp) bytes.  So, all readings go from -128 to 127 C (actually,
the docs say it can only reliable sense down to -65), and only
in whole degree increments.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@153 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-10 08:03:43 +00:00
Frodo Looijaard 8b123ff46b Winbond bug fixes, as indicated by Petr Vandrovec
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@151 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-08 23:47:16 +00:00
Frodo Looijaard 14992732d9 GL518SM fixes
* Better VDD internal computation, as described in the data sheet;
* Fixed the config file to reflect the above change;
* The library read the wrong file to get its gl518sm alarm data.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@150 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-08 20:21:32 +00:00
Frodo Looijaard 95961de807 Resolved old fan_div related bug in lm80 and w83781 modules.
When computing the fan rotation speed, the register value of the dividers
was used, instead of the value it represents. I'ev fixed this ages ago
for the LM80 driver, but it seems I had forgotten to fix it at other places.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@149 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-08 14:48:46 +00:00
Frodo Looijaard dabc5bfbb6 i2c-proc bug resolved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@147 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-07 20:07:15 +00:00
Frodo Looijaard 1d12298e93 New file CHANGES
Read the intro; it describes how you can use CVS to diff between old releases.

Stupid copyright typo in piix4.c fixed


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@146 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-06 00:23:42 +00:00
Frodo Looijaard a59e9abc8b Several small GL518SM fixes
* (module) VIN limits are now set to sane values (3V instead of 30V, which
  caused nasty overflows)
* (module) VIN limits had min/max swapped in gl518_attach_adapter
* (lib) TEMP_HYST used the VID sysctl instead of the TEMP sysctl, leading
  to bogus readings
* (sensors) print n/a for gl518 not available readings.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@145 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-01-03 16:21:51 +00:00
Philip Edelbrock 7b51473a03 (Phil) Fixed a simple (but serious) problem with the temp2 and temp3
readings.  (changed a u8 to a u16 in the data struct.)  Now the temp
readings seem to work perfectly!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@136 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-29 06:56:30 +00:00
Frodo Looijaard d8dce5faf3 fill_inode bug resolved
This could lead to memory corruption and to the could-not-unload-module
problem of earlier reports. With a little luck, this will resolve all
module loading/unloading problems reported.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@132 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 15:50:25 +00:00
Frodo Looijaard afc4714f07 Fixed word-sized Winbond register read/write.
This should solve the temp2/3 bogus readings.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@131 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-28 15:30:44 +00:00