2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00
Commit Graph

4145 Commits

Author SHA1 Message Date
Frodo Looijaard
b10d66cc58 The very beginnings of the new user-space application
It doesn't do much yet, but at least it compiles and links...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@99 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-21 16:49:11 +00:00
Frodo Looijaard
f26b52021b More library extensions
Most notably, config file line numbers are now stored, so we can now generate
better error messages.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@98 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-21 14:14:25 +00:00
Frodo Looijaard
1779b684c1 More library stuff
Nice init and cleanup functions.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@97 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-20 21:57:39 +00:00
Frodo Looijaard
750e0d00aa Slightly better copyright messages, now telling what the file belongs
to.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@96 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-20 17:04:11 +00:00
Frodo Looijaard
730efd78ca More library files
This brings the archive into synch with my harddisk...

Everything in the lib directory should compile without problems (yes, even
without warnings even if WARN=1). It is not well-tested, though, and there
are some minor functions which must still be added. It is now almost
usable.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@95 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-20 16:54:03 +00:00
Philip Edelbrock
b47bfd40c2 (Phil) Fixed some bugs in src/eeprom.c and added more stuff
to /prog/eeprom/decode-dimms.pl


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@94 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-20 07:48:16 +00:00
Frodo Looijaard
8ffb8660b7 Again, some library files. These document for each chip how it can
be accessed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@93 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-19 13:18:16 +00:00
Frodo Looijaard
e49c6712bf lib/Module.mk correction, to stop ldconfig from choking
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@92 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-19 10:36:55 +00:00
Frodo Looijaard
c4cb096dd9 The first bunch of library files
These are the relatively well-tested files. They allow you to parse a
configuration file, and to build an internal abstract syntax tree.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@91 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-19 00:10:48 +00:00
Frodo Looijaard
52696a8d2d More Makefile stuff
* Added lib directory; the library will live here
* Added Makefile fragment in the lib dir
* Modified README.directories to include the new dir
* Added lib directory to the fragments the Makefile uses


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@90 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 18:39:32 +00:00
Frodo Looijaard
14116cf7fa Makefile documentation updates, and two additional Makefile fixes
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@89 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 16:39:47 +00:00
Frodo Looijaard
e50c0d6684 Makefile updates
Several, mostly internal, things changed. Most notably, the install
directories are extended (we'll need this to install the new library).
Also, explicit rules for creating .c and .o files are added.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@88 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 16:31:56 +00:00
Philip Edelbrock
b469d20bf4 (Phil) Added access to 'beep' buzzer control registers via 'beep' file.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@87 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 03:15:07 +00:00
Philip Edelbrock
22394501ce (Phil) Temp2 and 3 are working!!! :') No mutex on the bank setting
yet, though.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@86 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-18 02:43:48 +00:00
Philip Edelbrock
3f4412405e (Phil) Tried to add remote temp sensors support to Winbond driver. My board
doesn't seem to have any sensors (I guess?), or the Windbond PDF is so
convoluted that I haven't understood it enough to get it working (another
good possibility).  Oh, well. It builds and inserts, anyway.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@85 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-17 07:29:59 +00:00
Philip Edelbrock
772f10e964 (Phil) Basically just duplicated the LM79 driver I extracted to provide a
start for the LM80 driver.  (Since 80-79=1, they must be very similar,
right? :')  Oh, and I removed the ISA components from it since the LM80 is
an SMBus only chip, too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@84 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-17 04:15:10 +00:00
Philip Edelbrock
cd9e3adc9d (Phil) Started w83781d.c. It compiles, inserts, and seems to work, but
has no Winbond specific features implemented yet.  Proper testing for
a Winbond also needs to be implemented.  src/Module.mk and src/sensors.h
were modified slightly to support the new driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@83 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-17 03:34:30 +00:00
Frodo Looijaard
3cf3a85b3c Very minor changes
* Turned the i2c noise level down, by setting the debug_level in algo-bit.c
  and i2c-core.c to 0 instead of 1. This should stop it from polluting
  the dmesg output, as it does at this moment.
* Renamed gl518-r?0-* entries to gl518sm-r?0-*


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@82 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-16 02:55:02 +00:00
Philip Edelbrock
fb456d3585 (Phil) Released version 2.0.2.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@80 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-15 05:02:10 +00:00
Philip Edelbrock
de722b68e4 (Phil) Added some eeprom docs/tools and fixed some typos while I was at it.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@79 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-15 04:55:51 +00:00
Frodo Looijaard
83d433dce9 Last changes for 2.0.2
* Fixed FORCE_PIIX4_ENABLE bus (misspelled function call)
* Added Kyösti's mail about the VIA chipset to the doc directory, as
  temporary placeholder


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@78 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-15 03:22:20 +00:00
Frodo Looijaard
75dd7e42d7 Small bug fixed which made it impossible to detect more than one
LM78.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@77 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-14 03:28:44 +00:00
Philip Edelbrock
446a74bd6a (Phil) Fixed some bugs and added read support for 128 bytes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@76 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-14 00:31:22 +00:00
Frodo Looijaard
8193486f36 Another very, very small bug removed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@75 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-13 16:52:15 +00:00
Frodo Looijaard
2ae7fe9deb Winbond-over-SMBus addition
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@74 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-13 14:03:28 +00:00
Philip Edelbrock
0a56e24ec7 (Phil) Now functional serial eeprom interface! sysctl entries for eeprom
module.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@73 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-13 08:44:58 +00:00
Philip Edelbrock
b739581ce9 (Phil) Now functional serial eeprom interface! Changes to Module.mk to
build the eeprom module.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@72 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-13 08:44:04 +00:00
Philip Edelbrock
d1786aa42b (Phil) Now functional serial eeprom interface! A couple limitations:
* Only first 64 bytes are read (enough for SDRAM EEPROM data) in 16 byte
blocks (separate proc files).

* No writing to EEPROMs.  It's actually quite easy to add support for
writing, but I was being very paranoid about killing my DIMMs.  I may add
write support, but make it only available when a #define is specified.

Now for a user app to decode the values...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@71 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-13 08:43:14 +00:00
Frodo Looijaard
812f463a20 Added temporary Winbond detection code
IF the Winbond docs are right this time, a Winbond should now be
recognized; a warning is printed, and it is treated as a LM79.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@70 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-13 02:21:37 +00:00
Frodo Looijaard
af2a765748 Correction of last commit
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@69 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-11 15:07:56 +00:00
Frodo Looijaard
a8ee0243ad Some small bug fixes
* Somehow, i2c-proc did not yet use the i2c_adapter_id call. This must have
  slipped through.
* isa.o and smbus.o changes I made to make them less noisy had a small
  error (no return value), which caused strange device detections.
* Added /proc/bus/i2c module-count monitoring - somehow, this slipped
  through, too.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@68 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-11 15:07:29 +00:00
Frodo Looijaard
ea315df1c3 Made the ISA/SMBus code shut up if DEBUG is off and things try to
access unimplementable functionality. And removed a #if which could never
become true anyway from i2c-proc.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@67 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-11 02:16:59 +00:00
Philip Edelbrock
bc8bc74784 (Phil) Released 2.0.1 with some bug fixes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@66 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-11 01:15:59 +00:00
Frodo Looijaard
89e2183261 Fixed a byte swapping bug in both the LM75 and the GL518SM drivers.
Strangly enough, both these devices use a high byte, low byte order for
word-sized reads and writes. The SMBus documentation specifies the
reverse (low, high) order, though. If all devices use the high,low order,
we should change this in smbus.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@64 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-10 16:20:03 +00:00
Frodo Looijaard
3b1432c71e Last Kyösti fix, applied a bit differently (about fan_div and
division-by-zero).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@63 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-10 12:54:34 +00:00
Frodo Looijaard
c1257570df Minor gl518sm fan_div correction
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@62 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-10 01:03:20 +00:00
Frodo Looijaard
20d42fa180 GL518SM driver updates
* Alarms may now work (sound signal disabled, though)
* Revision 0x80 should be recognized and handled correctly
* If fan unconnected, it should show 0 instead of -1 now

Note that this driver will not support GL520SM chips; that chip is different
enough that it deserves its own driver.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@61 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-10 00:39:05 +00:00
Frodo Looijaard
6b0755c9f3 Some more useful sites (Phil, please replace your website copy with
this newest one).


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@59 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 20:36:01 +00:00
Frodo Looijaard
b8b8332fa8 (Frodo)
My very last changes to 2.0.0; made 'make install' behave better.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@58 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 20:02:14 +00:00
Frodo Looijaard
00032d8651 Last documentation updates
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@57 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 19:51:40 +00:00
Frodo Looijaard
5dd41b1046 GL518SM driver
To be done: support for GL518SM revision 0x80 and GL520SM

Kyösti, if you have some time soon, could you please test it?


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@56 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 17:53:32 +00:00
Frodo Looijaard
0e8799ff27 Module use count trick expanded to all files and directories
Also fixed a minor Makefile typo.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@55 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 15:11:32 +00:00
Philip Edelbrock
15fd94984f (Phil) Fixed a minor bug in smbus_access_i2c which caused an error on
insertion ('memset' not resolved).  Namely, I changed this line (near the
very top of the function):

char msgbuf0[33] = { command };

to:

char msgbuf0[33];
[...]

msgbuf0[0] = command;


which should be equivelent (right?? ;').


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@54 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 04:03:33 +00:00
Frodo Looijaard
01e8dc6d7c Some small rounding and initializing bugs solved.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@53 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-09 01:34:45 +00:00
Frodo Looijaard
000b95cce0 Another Makefile simplification
Object files for executables (as opposed to modules) will now use the .ro
extension; their dependency file is a .rd file. Currently, this affects only
the i2c/eeprom/eeprom program. but in the future, there will be more
executables generated.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@52 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-08 23:51:29 +00:00
Frodo Looijaard
2e4f147647 Introduced /proc/sys/dev/sensors/chips file
See doc/sysctl for an explanation why it is needed.

Also fixed two very small cleanup bugs in lm75/lm78, which would probably be
impossible to trigger anyway, but still.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@51 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-08 22:52:05 +00:00
Frodo Looijaard
a28dc58524 (Frodo)
Yet more documentation updates, and a quick Makefile update to install all
include files correctly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@50 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-08 20:48:17 +00:00
Frodo Looijaard
ca90531f6b More documentation, and some small bug fixes
* LM75 temperature limits initializations were switched
* LM78 VID readings were off by a factor 100
* New bit-mask constants in sensors.h for LM78 alarm field


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@49 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-08 16:58:10 +00:00
Frodo Looijaard
c88b09de08 Some new documentation. Please read and correct.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@48 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-08 15:51:23 +00:00
Frodo Looijaard
d38f92e42a Documentation update
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@47 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-07 23:57:51 +00:00