Commit Graph
325 Commits
Author SHA1 Message Date
Jean Delvare 08a1bd9684 The original adm1026 driver numbered the fans from 0 to 7, and so does
libsensors. The Linux 2.6 adm1026 driver uses the standard numebring
(from 1 to 8). Map fan0 to fan8 to make things work while keeping
confusion to the minimum (hopefully.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4118 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-28 19:15:28 +00:00
Jean Delvare 8c235d29a9 Add userspace support for the Winbond W83793. Patch contributed by
Yuan Mu (Winbond.)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4109 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-24 18:13:20 +00:00
Rudolf Marek 6e87587ac6 Add support for k8temp driver
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4100 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-19 15:31:02 +00:00
Rudolf Marek 3027d75a12 Add PCI bus support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4098 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-19 15:23:10 +00:00
Jean Delvare 0e3ba1d1a1 Add support for the ITE IT8718F Super-I/O chip (prefix: it8718).
Unsurprisingly, it is very similar to the IT8716F.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4089 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-09 07:20:54 +00:00
Jean Delvare 79817f34ce Add support for the IT8716F (prefix it8716). It is mostly similar to the
IT8712F so there's not much to do. The most significant difference is that
fan speeds are now reported as 16-bit values, without fan clock dividers.
For this reason, I made the fan_divs optional in sensors. I also made the
fans themselves optional, as I noticed that a number of motherboards don't
use (and don't enable) fan3.

I've made a separate section (chip "it8716-*") in sensors.conf.eg, because
new motherboards tend to have different wirings (e.g. negative voltage
lines are not monitored) so this will make for saner defaults.

Thanks to Stian Oksavik for testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4083 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-03 20:28:20 +00:00
Jean Delvare a526a4a690 Check for fscanf() failure when reading sysfs attributes.
Also drop a redundant return.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4081 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-08-01 09:48:42 +00:00
Mark M. Hoffman 0705e4d581 Reformat of lib/access.c:
First ran .../scripts/Lindent from Linux 2.6.x, then fixed up some
things that were particularly ugly.  Verified the final result by
rebuilding and running 'objdump -d' on the before and after; there
were no differences.



git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4073 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-07-25 02:12:37 +00:00
Jean Delvare 3c3999f9f0 lib/sysfs.c: Fix no sensors being reported as an error.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4041 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-06 11:23:59 +00:00
Jean Delvare 3643a0b2e0 Add user-space support for abituguru. Patch from Hans de Goede.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4035 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-06-02 18:49:23 +00:00
Mark M. Hoffman 4d2c4fd212 Previous leak fix caused multiple sensors_init() calls to break.
This patch fixes that by managing the scanner buffers manually.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3300 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-20 15:24:37 +00:00
Mark M. Hoffman 9a8f962d88 Allow the config file scanner to release its buffers upon EOF.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3296 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-16 02:14:57 +00:00
Mark M. Hoffman e620cb652c fix 2 leaks found by valgrind - missing some free() during cleanup
(as opposed to ongoing run-time leaks)


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3293 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-05-15 03:06:05 +00:00
Jean Delvare dee3639075 Add userspace support for the smsc47m192 driver. Patch from
Hartmut Rick.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3277 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-28 21:31:16 +00:00
Jean Delvare 8212877b81 Add W83627EHF fan and temperature alarm support.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3272 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-22 14:26:48 +00:00
Rudolf Marek 0b6ac4f953 Add the W83627EHF Voltages and voltage alarms support
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3271 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-03-22 13:53:30 +00:00
Jean Delvare 70bb3c495e Fix device scan when no i2c support exists or no i2c bus driver
is loaded.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3261 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-25 21:32:26 +00:00
Jean Delvare ebbd0ba836 Bump lib version to 3.1.0 for the upcoming lm_sensors 2.10.0
release.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3253 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-02-11 18:54:49 +00:00
Rudolf Marek c83a8a43e8 Add back the temp1 in vt1211, patch from Juerg Haefliger <juergh@gmail.com>
This patch enables the reading of temp1 (Reading3) from the VT1211.
Reading3 returns the V1211's internal temperature.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3246 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-27 21:02:09 +00:00
Jean Delvare 7abd07cf00 Fix sysctl warnings on x86_64. Reorder includes.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3244 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-23 07:48:38 +00:00
Jean Delvare b36654cb3b Add 2.4 kernel and user-space support for the Winbond W83687THF
chip. Needs testing.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3226 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-10 11:17:17 +00:00
Jean Delvare 337ffc5729 Add support for the new platform drivers (Linux 2.6, sysfs).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3224 7894878c-1315-0410-8ee3-d5d059ff63e0
2006-01-09 19:55:18 +00:00
Jean Delvare 5cd5fde08d vt8231 cleanups, to get the 2.4 driver, libsensors and sensors
in line with the new 2.6 driver. The most important changes are temp
inputs renumbering, and conversion formulas changes, because part of the
conversions are now done by the driver as required by the interface
standard.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3194 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-19 14:55:30 +00:00
Jean Delvare 58481a6422 Fix w83627ehf temp2 and temp3 magnitude.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3170 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-05 09:08:26 +00:00
Jean Delvare ffdd27a3c2 Initial support for the Fintek F71805F/FG chip.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3169 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-11-04 20:59:18 +00:00
Mark M. Hoffman 72a6f0dde5 Fix bug in smsc47b397_features table, noticed by Jean Delvare.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3133 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-28 03:32:39 +00:00
Mark M. Hoffman 2c5ffc1053 A trivial cleanup for getsysname() - there's no reason for matches[]
to be an automatic, or non-const.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3116 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-02 14:55:58 +00:00
Mark M. Hoffman efb1c0d53c Minor cleanup: get rid of an unnecessary forward declaration.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3115 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:38:56 +00:00
Mark M. Hoffman b4598af0aa Remove a workaround for sysfs support that is no longer needed.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3113 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-10-01 15:31:35 +00:00
Mark M. Hoffman b374291396 (mmh)
Bugfix: lib/init.c wasn't compiling properly if SYSFS_SUPPORT was turned off.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3098 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 21:24:58 +00:00
Mark M. Hoffman a116313d54 (mmh)
This patch makes optional the sysfs support in libsensors.  The default is to
*disable* sysfs support if a 2.4.x kernel is detected, for all other versions,
support will be enabled.  This can be overridden in the top-level Makefile.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3096 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:39:53 +00:00
Mark M. Hoffman 85a0c8ccb2 (mmh)
This patch replaces the I2C chip enumeration (through sysfs) in lib/proc.c
with new functions in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3095 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:38:19 +00:00
Mark M. Hoffman c277761d15 (mmh)
This patch replaces the I2C bus enumeration (through sysfs) in lib/proc.c
with a new function in lib/sysfs (using libsysfs).  The patch also updates
the init code accordingly.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3094 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:37:42 +00:00
Mark M. Hoffman 87fba1c487 (mmh)
This patch adds the files lib/sysfs.h and lib/sysfs.c, beginning with a rewrite
of the sysfs detection code (using libsyfs).  In the process, I replaced two
poorly named globals with better names, and moved them to sysfs.c.  The sysfs
detection now happens very early during library init, rather than later.

The long term plan is for the two global variables to disappear anyway, as
everything to do with sysfs should get moved into lib/sysfs.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3093 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:30:44 +00:00
Mark M. Hoffman 10337cf80b (mmh)
This trivial patch links the libsysfs library to the libsensors library.
One needs to build and install sysfsutils first:

http://linux-diag.sourceforge.net/Sysfsutils.html

This patch is naive, at least to start.  Later it will be made optional
depending on whether support for Linux 2.6.x is needed, or just 2.4.x.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3092 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 20:25:25 +00:00
Mark M. Hoffman 6504401cf8 (mmh)
This patch moves two macros from lib/proc.c to lib/data.h.  The macros
pick up the "sensors_" prefix along the way.  The motivation is the
same as the previous patch.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3091 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:30:16 +00:00
Mark M. Hoffman 2c5441a2db (mmh)
This patch moves the chip and bus lists from lib/proc.c to lib/data.c.
The variables were already declared in lib/data.h.  Motivation: when
support for kernel 2.4.x becomes optional, lib/proc.c may not even be
compiled into the library... but these variables are still needed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3090 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-18 18:28:51 +00:00
Jean Delvare 2c0ca7852a Drop Linux-2.6 specific eeprom code, as we no longer support
eeproms on 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3082 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:27:20 +00:00
Jean Delvare 57e3589237 Declare foundsysfs in proc.h.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3080 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 20:09:42 +00:00
Jean Delvare 27e2a62bab Fix bus matching mechanism which had always been broken for Linux
2.6. Original patch from Karsten Petersen.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3076 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-10 09:29:35 +00:00
Philip Edelbrock 97649c80b4 Tag and release 2.9.2
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3066 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 19:44:58 +00:00
Mark M. Hoffman df8e4b3895 drop eeprom display when kernel is 2.6.x - partially resolves this:
http://lists.lm-sensors.org/pipermail/lm-sensors/2005-August/013403.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3064 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-09-06 03:33:43 +00:00
Mark M. Hoffman 5845bd9cb0 Get rid of some unused global variables.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3058 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-19 02:59:52 +00:00
Mark M. Hoffman 1e5fefa045 Please use safer string handling in any code you're already touching.
http://www.gratisoft.us/todd/papers/strlcpy.html


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3057 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-16 01:16:59 +00:00
Jean Delvare 305544ae4b Limit stack usage in sensors_read_proc_chips().
Remove forgotten debug printf from previous commit.
Make getsysname static.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3053 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-14 11:42:29 +00:00
Jean Delvare 6ee626562d Support /sys/class/hwmon (Linux 2.6.14+).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3052 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-08-14 11:13:48 +00:00
Jean Delvare f98d12b4b5 Fix memory leak in sensors_get_label(). Reported by John Naylon.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3031 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-07-15 08:57:43 +00:00
Rudolf Marek b32aa3c716 Update from Huang - w83792d_driver-1.0.5.patch, alarms handling fixed
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3012 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-06-01 10:49:04 +00:00
Jean Delvare e43a9cdb4b Drop the separate defintions for DS1780, it's really similar to
the ADM9240. Original patch from Grant Coady.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3009 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-28 10:00:46 +00:00
Jean Delvare 5aed4be0e5 Fix common spelling errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3000 7894878c-1315-0410-8ee3-d5d059ff63e0
2005-05-15 10:06:15 +00:00