device drivers. Specifically, I added these lines:
(in includes list)
#include "i2c-isa.h"
(Near beginning of *-attach-adapter function)
/* Make sure we aren't probing the ISA bus!! */
if (i2c_is_isa_adapter(adapter)) return 0;
This may be redundant is a couple of the files, but it shouldn't hurt.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@283 7894878c-1315-0410-8ee3-d5d059ff63e0
* Redid the internal report structure
* Separated the report function from main
* Rewrote the structure insertion functions
All in all, the functions have become much more readable and maintainable.
The downside: there are almost certainly new bugs created.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@281 7894878c-1315-0410-8ee3-d5d059ff63e0
finds anything within 0x50-0x57, it will claim it is an EEPROM with a
confidence of '1' (the least confidence). Using the PC-100 SPD spec
I should be able to add better detection, at least for serial EEPROMs
on PC-100 SDRAM DIMMs.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@276 7894878c-1315-0410-8ee3-d5d059ff63e0
I forgot to set the I2C address correctly, so it was always comparing with
device 0x00 :-(
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@274 7894878c-1315-0410-8ee3-d5d059ff63e0
All main functionality is now available; please test and send the output
of the summary to me!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@268 7894878c-1315-0410-8ee3-d5d059ff63e0
A few ISA detections must still be added; also, I want to add the option not
to scan certain I2C addresses.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@266 7894878c-1315-0410-8ee3-d5d059ff63e0
No alias detection (ie. detection of chips connected to both ISA and I2C bus)
is done yet; but all hooks are in.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@265 7894878c-1315-0410-8ee3-d5d059ff63e0
definitely should not load.
Also fixed GL520 detection bug. Some other bugs are probably still there.
The report is generated using a very intricate data structure. There
can easily be hidden problems. Just test, test, test :-)
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@255 7894878c-1315-0410-8ee3-d5d059ff63e0
It is already very usable, but not quite finished. The final product will
also collect the needed drivers, and output them as modprobe lines and/or
in other formats.
The most important thing right now is to test where possible the detection
algorithms.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@252 7894878c-1315-0410-8ee3-d5d059ff63e0
Well, it still takes some tinkering, and I need to create a user-interface.
If you want to play with it already:
* Uncomment the line beneath test, and put the adapter number (as
corresponding with /dev/i2c-*) behind it as argument;
* It only detects LM78, LM78-J, LM79 and LM80 at of this moment;
* Only LM75 detection is really tested, as I don't have my LM78 connected
to the SMBus.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@250 7894878c-1315-0410-8ee3-d5d059ff63e0
bug (checked out as one user, and commiting as another to the same checked
out project?). Anyways, things seem to be OK now (I hope!).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@249 7894878c-1315-0410-8ee3-d5d059ff63e0
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
It needs to be expanded a bit and tested, but this means I can start to
write chip detection routines from Perl!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@238 7894878c-1315-0410-8ee3-d5d059ff63e0
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