2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +00:00

331 Commits

Author SHA1 Message Date
Frodo Looijaard
15cf77b3b4 Taught the w83781d module about insmod parameters
Also fixed a small lm78 problem and synchronised the detect script with
the Winbond detection.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@341 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 21:28:22 +00:00
Frodo Looijaard
dde28aab4f New file BACKGROUND
This file offers a small tour around all components of our package.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@340 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 15:18:03 +00:00
Mark D. Studebaker
3561a27e51 fixed RT-table bug. Still undef'ed though by default.
For those who are interested the default RT table is apparently
1 0 0 69 57 48 39 32 25 19 12 6 255 247 237 0 1 0 0 12 9 9 7 7 7 7 6 7 8 10 14 0.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@339 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 00:00:21 +00:00
Frodo Looijaard
66d89242d4 The lm75 module now understands the new insmod parameters.
Also fixed a few nasty sensors.c bugs, and a minor LM78 one. If the new
parameters give trouble, please recompile sensors.c with DEBUG=1 and
examine the dmesg output!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@338 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:53:28 +00:00
Mark D. Studebaker
876fdf9a43 Removed entry about 444 /proc files (done).
Updated entry on bounds checking /proc writes (fans done).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@337 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:51:03 +00:00
Frodo Looijaard
bdb8f575b7 sensors-detect new feature
The detection program can now be told that it should probe for more
addresses than the kernel driver module; it automatically generates
the necessary insmod parameters for the module if chips are found on
these non-standard addresses. Very useful for the LM78, for instance;
the driver still only check 0x20-0x2f, but the probe program checks
all addresses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@336 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 21:48:41 +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
Frodo Looijaard
27c6df42b3 A short list of things to do when you write a new driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@334 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-23 11:45:01 +00:00
Mark D. Studebaker
c0c25c9c14 changed /proc permissions for vid and alarms and
other r/o stuff to 444.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@333 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-22 02:21:21 +00:00
Frodo Looijaard
e721fcf4ac Minor cosmetic changes to maxlife driver, to make it compile cleanly
with WARN=1


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@332 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-22 00:45:08 +00:00
Frodo Looijaard
914d577e9d Small sensors-program bug fixed (Klaus Woltereck's report)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@331 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-22 00:40:40 +00:00
Mark D. Studebaker
b73b2cc4ce fixed off-by-factor-of-2 of FAN_FROM_REG in w83781d.
Improved bounds checking for FAN_TO_REG in all files.
For lm78-compatible drivers, minimum speed is 2657 RPM when the
divisor is 2. Attempts to set lower than that now are set to 0.
Before was set to a random number.
Thanks Jeff Dairiki.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@330 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-21 23:47:20 +00:00
Mark D. Studebaker
6a45415e5e fixed vid4 - was >> 4 now << 4.
Thanks Jeff Dairiki.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@329 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-21 18:41:08 +00:00
Mark D. Studebaker
10bf57b3e7 Documentation update for supported/unsupported clock chips.
Added some notes on w83781d.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@328 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-20 03:46:07 +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
0900fb64bf First bugfixes already
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@326 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-19 07:04:54 +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
Frodo Looijaard
7e8c43e6b6 Introducing module parameter scanning in sensors.c
It is untested as of yet; but it compiled without problem. Next step: add
support to the chip modules.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@324 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 15:32:20 +00:00
Frodo Looijaard
96ac13566f Finished renaming of detect.pl
* Either Phil had not done a 'cvs update', or I forgot a 'cvs commit'; anyway,
  the last changes to detect.pl have been ported to sensors-detect.
* Added a rule to the Makefile fragment to install it in $(SBINDIR).
* Added SBINDIR to the main Makefile.
* Deleted detect.pl


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@323 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 15:12:01 +00:00
Philip Edelbrock
9649496dc0 (Phil) Renamed 'detect.pl' to 'sensors-detect'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@322 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 05:33:03 +00:00
Mark D. Studebaker
5ae6221d14 fixed fan3 for w83782d for sensors program.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@321 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 01:01:59 +00:00
Frodo Looijaard
1bf46bcc46 Added Stijn's program to the useful addresses
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@320 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-18 00:34:51 +00:00
Mark D. Studebaker
65f60a55ce update todo and notes section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@319 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-17 04:45:27 +00:00
Mark D. Studebaker
75ca64cc7d 782d has pwm3-4 only for i2c, not isa.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@318 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-17 04:42:12 +00:00
Mark D. Studebaker
cc5dfb1ddd overview of math with thermistors and diodes.
added link to the NTC Thermistor guide to the useful addresses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@317 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-17 03:51:03 +00:00
Mark D. Studebaker
73ea1e8902 Basic stuff. It might crash, may not work, etc.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@316 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-17 03:41:49 +00:00
Mark D. Studebaker
fe47b819ed one more fix for 783s not having in1.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@315 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 22:26:51 +00:00
Mark D. Studebaker
9d67ffa454 added pwm1-4 for 782d, pwm1-2 for 783s. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@314 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 21:53:22 +00:00
Mark D. Studebaker
acbab20925 added fan3 for 782d, didn't realize it is just like 781d.
removed in1 and added in6 for 783s to keep compatibility
with 781d/782d. So 783s has no in1. sorry.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@313 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 04:09:35 +00:00
Mark D. Studebaker
a2372ec989 lame description of the chips from our favorite company.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@312 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 04:00:52 +00:00
Mark D. Studebaker
b863fac444 added alarms for 782d in7/in8.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@311 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:51:40 +00:00
Mark D. Studebaker
4f12241758 updated block read/write code.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@310 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:39:19 +00:00
Mark D. Studebaker
91c2805683 fixed default limits for in5/in6.
added alarm bits for in7/in8. alarms now u32.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@309 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:38:48 +00:00
Mark D. Studebaker
5b61f81501 added entries for icspll. Changed union data.block from
[32] to [33] to have enough room for length in block transfer.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@308 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:37:23 +00:00
Mark D. Studebaker
71411df003 Add simple clock chip reader.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@307 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-14 00:35:28 +00:00
Mark D. Studebaker
2ea22de081 Added 782d/783s section.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@306 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-11 03:32:46 +00:00
Mark D. Studebaker
8a23e0cf04 Added initial support for 83782d/83783s.
No alarms for in7/in8 yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@305 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-11 03:19:54 +00:00
Mark D. Studebaker
b20c07806e fixed in7/in8 register locations.
Added limit defaults for in7/in8 and added separate
782d/783s limit defaults for in5/in6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@304 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-11 03:17:11 +00:00
Frodo Looijaard
a9a3659fe9 Minor fixes
* No more redefined complaints of MODULE_* symbols for 2.0 kernels
  This was introduced by the last archive of Simon
* Correct load order of adapters in detect script modprobe report
  You can't assume things come out of a hash in the same order as you
  put them in, of course :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@303 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-10 20:31:58 +00:00
Frodo Looijaard
88814e799c Updated Adrian's email address, as requested
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@302 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-10 01:56:02 +00:00
Frodo Looijaard
64c192a880 Updated CONTRIBUTORS file. Phil, you may want to synchronize it
with your web version.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@301 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-10 01:17:15 +00:00
Mark D. Studebaker
47b1c6d57f added 'i2c-' prefix to module names in all printk's to match new module names.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@300 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-10 00:10:42 +00:00
Frodo Looijaard
d415d98250 Now modprobe line printing handles alias detections too.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@299 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-09 18:11:26 +00:00
Frodo Looijaard
c945d59bbf Added automatic generation of modprobe lines. Also corrected SIS
detection bug

The lesson of today: the control variable in foreach loops is local to the
loop and regains his former value on exit of the loop. Oops.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@298 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-09 16:19:30 +00:00
Mark D. Studebaker
8e0ff06a22 Initial support for 782d/783s.
Recognize chips, adjust /proc entries.
Added registers for Vbat/V5sb for 782d.
Did quick test that 781d isn't broken.
782d/783s untested, I'll send mail to the guy that volunteered.
No PWM fan support yet.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@297 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-09 05:09:53 +00:00
Frodo Looijaard
7050256b5d Last bug removed (ha!)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@296 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-03 14:18:01 +00:00
Philip Edelbrock
7de81ac77b (Phil) Just a slight formatting tweak.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@295 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-03 05:35:54 +00:00
Philip Edelbrock
7b3aaff95c (Phil) Minor update for Adrian's wmsensors/wmlm78 link.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@294 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-03 05:32:41 +00:00
Kyosti Malkki
14e5a602c5 (Kyösti) Small fixes for GL518.
Fan1 causes now alarm when rpm drops.
Fixed libsensors displaying incorrect temperature limits for rev 80.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@293 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 14:12:42 +00:00
Frodo Looijaard
d9e5165439 There we go again... nothing new, except the obvious bug fix. Sigh.
I hope that CVS supports revision numbers of at least seven digits...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@292 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-02 11:13:46 +00:00