2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 05:48:07 +00:00

105 Commits

Author SHA1 Message Date
Frodo Looijaard
dc9ff8085a New program, which generates `bus' lines for your config file
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@109 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 01:22:19 +00:00
Frodo Looijaard
10ca370b06 Restructured the doc directory; added doc/progs; modified some files
to add more up-to-date documentation.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@108 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 01:17:11 +00:00
Frodo Looijaard
1c12665831 Expanded expressions, slightly new syntax
An expression can now refer to the value it has to compute (@), but also to
other values. This is now perfectly valid as an expression:
  vid + in_min - in_max * 2 / @
Not that this is very sensible, but you get the idea. Please install the
new example config file, or replace all old 'val' occurences with '@'.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@107 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 01:13:44 +00:00
Frodo Looijaard
657798a79c The announced changes to the LM78 voltages, and an example config file.
Note: GL518SM driver need this change, too; this is not yet done.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@106 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-23 02:27:52 +00:00
Frodo Looijaard
eb21cf98d5 Corrected sensors_get_feature expression search
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@105 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-23 01:05:45 +00:00
Frodo Looijaard
3a6f543366 Library/program updates.
YES! It now pretty-prints the LM75 and LM78 data.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@104 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-23 00:25:53 +00:00
Frodo Looijaard
6ad35eaa33 Yet more library and prog/sensors stuff. LM75 data is now printed!
* Added sensors_get_algorithm_name and sensors_get_adapter_name to the
  library.
* First application of sensors_get_value is very encouraging; LM75 data is
  now printed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@103 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-22 17:41:43 +00:00
Frodo Looijaard
c9d9c6c682 Library addition (sensors_get_detected_chips), program addition
(print detected chips)

Yes! I am getting somewhere now. The sensors program does at last something
visible: it prints all detected chips. OK, cat /proc/sys/dev/sensors/chips
is faster. But it is a start...


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@102 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-22 02:06:51 +00:00
Frodo Looijaard
849acbe439 More libary stuff
The bus translation functions.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@101 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-22 01:25:25 +00:00
Frodo Looijaard
77ba27fd04 Documentation updates, small application update (still not doing
anything useful)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@100 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-21 22:41:59 +00:00
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