Jean Delvare
eee8d62f7b
Fix compiler warning (uninitialized variable).
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1790 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:06:49 +00:00
Jean Delvare
2e120f8a2a
Make -Wall mandatory. Add -W to optional warnings.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1789 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-16 17:05:35 +00:00
Mark D. Studebaker
390ba37335
remove old sensors/ directory too
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1788 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-14 19:49:02 +00:00
Mark D. Studebaker
b24442eed8
remove old gzipped modules;
...
remove old misc directory if empty
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1787 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-14 19:25:19 +00:00
Mark M. Hoffman
f525a97656
added missing #include <linux/mm.h>
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1786 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-12 03:29:38 +00:00
Mark D. Studebaker
aa82a69e54
give w83783s its own section to avoid "unknown feature name"
...
ticket 1281
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1785 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-12 02:18:44 +00:00
Mark D. Studebaker
9c3c40097c
Add support for w83627thf. Includes patch from
...
Matthias Hentges <matthias@hentges.net >
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1784 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-11 23:43:25 +00:00
Jean Delvare
0b7a7b9787
Undid outb() fix by Jim Morris.
...
Fixed faulty outb() calls.
Armored outb() against future faulty calls.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1783 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-11 08:28:55 +00:00
Mark D. Studebaker
2c31ea166c
add w83791d detection, update documentation
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1782 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 03:01:31 +00:00
Mark D. Studebaker
a05fe9ed42
print super I/O device ID if not matched to help
...
identify unsupported chips
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1781 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 02:32:57 +00:00
Mark D. Studebaker
a7c706826f
add reset option;
...
fix adapter functionality check to verify that
block data w/ HW or SW PEC is available.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1780 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 01:09:31 +00:00
Mark D. Studebaker
2d1d0cbcb8
fix compile; tested ok
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1779 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 01:08:13 +00:00
Mark D. Studebaker
79adb8ba49
check for invalid transaction type
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1778 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-10 01:07:54 +00:00
Mark D. Studebaker
e9c0fce42a
adm1026 and auto-sensors.h patch from P.P.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1777 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:33:39 +00:00
Mark D. Studebaker
63443070b3
update
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1776 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:10:31 +00:00
Mark D. Studebaker
8234f8c58a
add support for 82801EB (ICH5) 0x24d3
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1775 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 21:05:58 +00:00
Mark D. Studebaker
2be6de25d8
C format fix from Jim Morris <morris@wolfman.com>
...
This seems to happen on newer perl versions.
It is fatal in as much as the sensors are not detected.
The solution appears to be to simply add & 0x7f to the
pack statement at line 1138 of sensors_detect...
sub outb
{
my $towrite = pack( "C", $_[1] & 0x7f);
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1774 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 20:24:51 +00:00
Jean Delvare
c4666742ca
Added missing device IDs, required for compiling with Linux kernel
...
2.4.18 and previous (VIA_8233A and INTEL_82801DB_3).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1773 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-08 17:21:54 +00:00
Mark D. Studebaker
1755e4adc0
add 791d support. Patch from Ross Biro <rossb@google.com>
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1772 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:45:46 +00:00
Mark D. Studebaker
6ec76d7fd2
add ds1307
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1771 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:18:04 +00:00
Mark D. Studebaker
819c3f0863
fix version printk
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1770 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:17:34 +00:00
Mark D. Studebaker
01ea959a80
populate pci_device_id table. untested.
...
Took out the force code which may need to be put back in somehow.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1769 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 20:05:10 +00:00
Mark D. Studebaker
182261f671
populate pci_device_id tables so the module will load. untested.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1768 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 19:53:21 +00:00
Jean Delvare
63ea19c123
Fixed nForce2 detection, for real this time. Successfully tested
...
by Thomas "Sesshoumaru" Sabono. Thanks Thomas!
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1767 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-07 08:34:25 +00:00
Mark D. Studebaker
7118cc009b
updates
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1766 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 02:38:53 +00:00
Mark D. Studebaker
fcc2041d20
populate pci_device_id table. untested.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1765 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 02:11:21 +00:00
Mark D. Studebaker
84718f8ff2
partial backport from 2.5.69. Populated the pci_device_id table;
...
left the dmi_scan stuff in there. untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1764 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 01:51:06 +00:00
Mark D. Studebaker
4302318201
backport from kernel 2.5.69. untested.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1763 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 01:49:49 +00:00
Mark D. Studebaker
c858140e89
version printk cleanup
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1762 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-06 01:45:51 +00:00
Jean Delvare
8742aa8f3a
Added nForce2 detection, which was missing, although we have
...
nForce2 supported since 16 Feb 2003.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1761 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-05 09:16:33 +00:00
Jean Delvare
be8a4206b7
Added a section about using the watchdog. Mostly the contribution
...
of A'rpi <arpi@thot.banki.hu >, edited and completed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1760 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 08:38:31 +00:00
Jean Delvare
71b222e5e2
More comments for as99127f.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1759 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 08:00:58 +00:00
Jean Delvare
286bce4021
Fixed as99127f temp2.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1758 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 07:26:43 +00:00
Mark M. Hoffman
142689feb3
Fix trivial compile errors when using DEBUG := 1
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1757 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 04:56:51 +00:00
Mark D. Studebaker
b5e2fb9803
backport from kernel 2.5.69. tested OK.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1756 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-04 02:41:15 +00:00
Jean Delvare
fc17449b5b
Now supports dmidecode 2.0 and later.
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1755 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 07:44:49 +00:00
Mark D. Studebaker
7bce574327
get i2c-viapro working again by backporting from
...
kernel 2.5.69 and adding new sensors_compat.h for the
drv_dbg(), etc. calls
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1754 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-03 02:05:18 +00:00
Mark D. Studebaker
bbdef07b0e
add 791D sysctls; IN9, FAN4, FAN5
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1753 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-06-02 23:44:58 +00:00
Mark M. Hoffman
3d54042d27
Added support for SiS745 north bridge.
...
Patch and testing by Rudolf Marek
(mmh) Also added missing declaration for SiS963 support - my bad.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1752 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 22:22:16 +00:00
Mark M. Hoffman
ec909108b7
Added support for SiS963 south bridge.
...
Testing by Brad Barnett
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1751 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 21:33:32 +00:00
Mark M. Hoffman
caf6b6140e
Added support for SiS651 north bridge.
...
Patches and testing by Chris King and Norbert Roos
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1750 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 20:23:13 +00:00
Mark D. Studebaker
41e0c48a84
fix symbol error, finish implementation of PCI module init.
...
doesn't work for me yet though.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1749 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 18:50:50 +00:00
Mark D. Studebaker
f9b228cf18
fix 'make install', change install directory to be the same
...
as other modules. Ticket #1258
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1748 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 17:30:47 +00:00
Mark D. Studebaker
ece019f16a
fix removal of old sensors.o module, now uses MODPREF rather
...
than MODDIR
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1747 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 15:48:28 +00:00
Mark D. Studebaker
ce5aceb748
replace -idirafter with -nostdinc and other magic from the kernel
...
makefile. This prevents ever picking up headers from /usr/include
for module builds. Headers must be located in
/lib/modules/`uname -r`/build
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1746 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 14:42:48 +00:00
Mark D. Studebaker
a43c4d1b3a
update paths again to pick up userspace i2c-dev.h from
...
../../kernel/include
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1745 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 04:18:24 +00:00
Mark D. Studebaker
8d14fe682d
add include file search path
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1744 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 02:38:19 +00:00
Mark D. Studebaker
0d05ed0fab
patch as described below. Doesn't compile because of header problems...
...
From: rysanek@fccps.cz
Dear Chris,
many thanks for writing eeprom.c in the first place.
It has saved me an indefinite amount of time when I needed
to access a 24C02 in a cursed notebook battery pack that
someone's trying to refurbish.
Many more thanks to the authors of lm_sensors and Linux i2c
for writing their software, of course.
I did have to modify eepromer/eeprom.c a bit though, to support
my 24C02. The essential gotcha was this: whereas the 24C16 that
you were using supports maximum burst size of 16 bytes (the same
applies to 24C08 and 24C04), the 24C02 and 24C01 only support
bursts up to 8 bytes long.
I assume that in fact you already know this, as in your code
there's a neat #define called MAX_BYTES to hold exactly this
burst length. And, this was the first thing I modified when
I was trying to solve my problem.
There's one more associated bug though, probably a result of
the fact that your code was not tested with MAX_BYTES values
other than 16. The two for(;;) cycles for reading/writing
consecutive bursts have a wrong terminal condition: they're
comparing the loop count against MAX_BYTES instead of
(BYTES_PER_PAGE/MAX_BYTES).
With this e-mail, I am enclosing the corrected eeprom.c.
My symptoms looked like this: I read the eeprom just fine.
I did my dirty work on two bytes in the eprom dump and
flashed it back. When I re-read the eprom contents,
I found garbage - or so it seemed.
At a closer look, I found out that every second
half-burst (the second 8 bytes of the 16) was correct and
every first 8 bytes was garbled. (Compared that using two
hex editors open on consoles 1 and 2.)
After a few more seconds I found out that the two half-bursts
were really identical.
My final explanation is that each 16byte write resulted in
only the first half-burst being overwritten (the second was
left untouched), only the eeprom latched in all 16 bytes
obediently, so that its FIFO overflew and looped around
exactly once, which resulted in the *second* half-burst
being written into the *first* eight bytes...
Based largely on eeprom.c, I've already hacked a simple util
to write only those two or four bytes that matter to me (the
actual battery capacity and the write-protect stuff).
If the battery refurbishment works out, I'll update my website
to report this success, including all my code snippets.
Thanks again :)
Frank Rysanek
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1743 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 02:37:24 +00:00
Mark D. Studebaker
080beac84a
recognize w83791d
...
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1742 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 01:01:58 +00:00
Mark D. Studebaker
2436f40201
libsensors support for w83791d; patch from
...
Ross Biro rossb@google.com
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1741 7894878c-1315-0410-8ee3-d5d059ff63e0
2003-05-31 01:00:23 +00:00