Commit Graph
76 Commits
Author SHA1 Message Date
Frodo Looijaard b827b9a68e Fan value problems resolved
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@128 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-27 20:08:44 +00:00
Frodo Looijaard 9248881396 Winbond driver enhancements (untested)
* Force the Winbond into bank 0 before anything else is done
* Copied fan_div patch from lm78.c
* Copied IN_{FROM,TO}_REG patch from lm78.c
* Copied alarms computation bug fix from lm78.c
* Nicer way of managing banks: the bank number to access is now the high
  byte of the (as u16 declared) register number. Only
  w38781d_{read,write}_value needs now to be aware of banks. Also, the
  w38781d_{read,write}_value functions now know that sensors 2 and temp, hyst
  and over registers are word-sized.
* Introduced fan_div for FAN3 and 9-bit temperature readings.
* Made beep file work like the gl518sm one
* Corrected small VID problem (bit 4 was read from the wrong register)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@121 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-26 01:18:58 +00:00
Frodo Looijaard e5249883ec Completed the LM80 driver. Untested.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@115 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 19:30:44 +00:00
Frodo Looijaard e55205a604 Two bug fixed in the LM78/79 driver
* fan_div should now be handled correctly (please, could anybody play with
  this? My fan is on FAN3, the one whose fan_div can't be changed...)
* IN_{TO,FROM}_REG no longer needs the additional in parameter, since we
  eliminated scaling in the module.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@114 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 18:36:03 +00:00
Frodo Looijaard e1a28393b3 Several minor things
* sensors.conf.eg now contains LM80 declarations
* i2c/i2c-core.c again displays which adapters and clients are found and
  connected, but it does not track the calls to transfer functions in dmesg
* Slight alarms computation bug in lm78.c repaired
* First hacks at lm80.c; expect a fully working version later today


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@113 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-25 15:50:47 +00:00
Frodo Looijaard f3cfdfa7a5 Added 'beep' file for GL518SM chips
This file consists of two numbers: the first is either 0 (global sound
alarm disable) or 1 (enable), the second is in the same encoding as the
'alarm' file and determines for which alarms the speaker will sound.

The new file was added to the module, the library and the sensors application.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@112 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-24 23:17:55 +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 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
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 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 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 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
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 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 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 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 7937738275 Module use count fix
This fix will only work for kernels >= 2.1.58.

* lm75, lm78: {INC,DEC}_MOD_USE_COUNT called for {inc,dec}_mod_use hooks
* sensors: For new kernels, fill_inode is called, which in turn calls
  {inc,dec}_mod_use for a certain client


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@46 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-07 22:15:49 +00:00
Philip Edelbrock 502fa4f125 (Phil) Started on an eeprom driver which works very much like the lm75
driver (used as a template).  It is completely non-functional at this
point, but it's a start.  There is a lot of code still specific to the
lm75 in it, so don't try to use it yet. ;')  Also note that there needs
to be some concern with using it because a 'write' and a 'read' to an
EEPROM on the SMBus are very similar.  So, we need to be carefull not
to start crippling SDRAM DIMMs due to unfinished/buggy code.

This should (when working) be able to read EEPROMs:

* In SDRAM DIMMs which specify the type, clocking, etc. of the DIMM.

* the EEPROMs in the new Intel Xeon processors.

* Any other EEPROM connected to the SMBus conforming to the standard
SMBus comminucation methods for SMBus EEPROMs.

Since only eight possible addresses are available for EEPROMs (at
least from the spec I'm looking at from Atmel), the code will
only probe for eight.  Notice that this can lead to some problems
for machines for which this is true: # of SDRAM DIMMs + # of Xeons > 8


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@45 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-07 04:32:20 +00:00
Frodo Looijaard 4aa9c6376c Corrected small bug in isa.c and smbus.c which caused faulty lm75
chips to be registered on the ISA bus now that the I2C emulation code was
triggered.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@44 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-06 23:10:20 +00:00
Frodo Looijaard 45e87b2b9e SMBus emulation on real I2C adapters finished
Not tested, as I do not own such an adapter...

Block reading not implemented, as it seems impossible to do with the
currently available I2C primitives.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@43 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-06 23:03:46 +00:00
Frodo Looijaard f322a67793 Better header files
* Header files isa.h, sensors.h and smbus.h will now be installed on a
  'make install';
* #ifdef __KERNEL__ added to the above header files where appropriate;
* Correct files are included, both if __KERNEL__ is true and false.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@42 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-06 16:19:24 +00:00
Frodo Looijaard 831b8e88f3 Resolved ISA crash.
Status: You can insert all modules, and it works like a charm!

Changes:
* Corrected check for SMBus algorithm in smbus_access
* (The unimplemented) smbus_access_i2c now returns an error, instead of
  an undefined result


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@41 7894878c-1315-0410-8ee3-d5d059ff63e0
1998-12-06 16:07:23 +00:00