Commit Graph
360 Commits
Author SHA1 Message Date
Frodo Looijaard 61c58b0dc0 Updated TODO
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@370 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:49:20 +00:00
Frodo Looijaard 4e5e1093de Fixed the i2c-dev unconnected devices Oops
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@369 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:47:35 +00:00
Frodo Looijaard 389cc3f3ff Slight printing enhancements; corrected a few typos which I
introduced with the last update.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@368 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:39:02 +00:00
Frodo Looijaard 706851448d ADM1021 insmod parameters
As always, I also synchronised the detection with sensors-detect. Its
detection is now much better; it used to scan at many addresses on which
these chips could never exist


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@367 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:38:29 +00:00
Frodo Looijaard 5aebed32c6 Corrected ADM1021 and MAX1617 detection
Address 0x2b was also scanned, though it was not in the address range


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@366 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:08:47 +00:00
Frodo Looijaard 46683648bd Made the gl518sm module understand insmod parameters
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@365 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 19:02:36 +00:00
Frodo Looijaard 18f0aa90cd Corrected gl5*sm detection error: it looked for it on address 0x4[cd]
instead of 0x2[cd]


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@364 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-07 18:37:36 +00:00
Frodo Looijaard 9b1f574b23 Insmod order problem resolved in INSTALL document
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@363 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-05 21:56:54 +00:00
Frodo Looijaard 6d64665fdd New Makefile variables LINUX and LINUX_HEADERS
These will help those unfortunate people who use Debian or other braindead
distributions which ship with non-matching kernel headers in directories
/usr/include/{linux,asm}. For 'normal' people, nothing needs to be changed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@362 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-05 20:45:55 +00:00
Frodo Looijaard 7f48c9a6ba Insmod parameters for the LM80 driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@361 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-04 21:13:55 +00:00
Frodo Looijaard 0cf84e8549 Redid the macro trickery to define module parameters automatically.
This new version also creates MODULE_PARM_DESC entries, which describe
what each parameter is used for.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@360 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-04 20:56:30 +00:00
Frodo Looijaard eb1b4d7ea4 Removed -Ikernel from CFLAGS now we have compat.h in kernel/include
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@359 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-03 20:11:08 +00:00
Philip Edelbrock a8ef794389 (Phil) Moved compat.h to kernel/include.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@358 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-03 19:54:45 +00:00
Frodo Looijaard 08377964d2 Synchronised the texts appearing in /proc/ioports for all bus
drivers.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@357 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-02 22:46:02 +00:00
Frodo Looijaard 765c6e0c84 Documented the new insmod parameters
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@356 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-02 22:42:07 +00:00
Frodo Looijaard 70a35fa068 Solved a bug which made the detect program unrunnable, as reported by
Mark.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@355 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-02 22:38:47 +00:00
Frodo Looijaard 37e476ba7f Removed spurious dmesg which I used for debugging
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@354 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-02 22:37:36 +00:00
Frodo Looijaard c0aac1c8da Changed forcibly enabled stuff to insmod parameters.
There are now two new insmod parameters, and the #define has disappeared

force: if set to anything but zero, this enables the PIIX4 as the old
       #define did.
force_addr: This first sets a new I/O port address for the PIIX4, and
       afterwards enables it. Supercedes 'force'.

Note that using force_addr is very, very dangerous if you do not know
what you are doing. On the other hand, it was very easy to add, and can
be a big help if your BIOS doesn't set correct addresses.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@353 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-04-02 22:37:00 +00:00
Mark D. Studebaker 297c84c605 added note that we need support in 'sensors' for ADM1021 and ADM9240.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@352 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 01:38:19 +00:00
Mark D. Studebaker 30acc6c169 got rid of compile warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@351 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 01:20:48 +00:00
Mark D. Studebaker c44effd7fa fixed compile error. oops.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@350 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 01:18:34 +00:00
Mark D. Studebaker 1067bc4d69 added ds1780 recognition/support. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@349 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 00:58:55 +00:00
Mark D. Studebaker ddfb8235ca changed default Vbat voltage from 3.3V to 3V for 782d/783s.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@348 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-29 00:57:31 +00:00
Kyosti Malkki 669686ff1c (Kyösti)
* Removed unnecessary MOD_INC/DEC_USE_COUNT in host adapter drivers
  (i2c-via bit-lp bit-velle)

You can now rmmod adapters even when they have registered clients.
Without this, you would have to detach the clients first. Only way of doing
this is to rmmod the client drivers, but the same drivers might be used to
access clients behind other hosts.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@347 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-28 14:49:54 +00:00
Kyosti Malkki cb505753d1 (Kyösti)
* Fixed i2c_probe to actually try some addresses, and
  change the client->addr _only_ when we get a match.

* Algo-bit now scans the bus before registering it.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@346 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-28 14:06:38 +00:00
Mark D. Studebaker 41c531511a Added very brief documentation.
We now have one doc file for every driver. Yay!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@345 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-27 00:13:34 +00:00
Mark D. Studebaker d3693e2f13 add 'static' to get rid of offending results of 'nm --extern --defined'.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@344 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-26 23:54:56 +00:00
Mark D. Studebaker 059ec907f7 added chart of the various chips for quick reference.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@343 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-25 21:00:50 +00:00
Frodo Looijaard c4c4b363be Made lm78 and w83781d drivers emit a warning when a 'force' parameter
is used but ignored (because the driver could not determine what
        specific chip was there).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@342 7894878c-1315-0410-8ee3-d5d059ff63e0
1999-03-24 21:44:38 +00:00
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