mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
(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
This commit is contained in:
1 parent
3cf3a85b3c
commit
cd9e3adc9d
6 files changed
+1806
-2
No files matched your search
@@ -85,6 +85,7 @@ extern void sensors_deregister_entry(int id);
|
||||
#define I2C_DRIVERID_LM75 1003
|
||||
#define I2C_DRIVERID_GL518 1004
|
||||
#define I2C_DRIVERID_EEPROM 1005
|
||||
#define I2C_DRIVERID_W83781D 1006
|
||||
|
||||
/* Sysctl IDs */
|
||||
#ifdef DEV_HWMON
|
||||
@@ -131,6 +132,37 @@ struct sensors_chips_data {
|
||||
#define LM78_ALARM_FIFO 0x2000
|
||||
#define LM78_ALARM_SMI_IN 0x4000
|
||||
|
||||
#define W83781D_SYSCTL_IN0 1000 /* Volts * 100 */
|
||||
#define W83781D_SYSCTL_IN1 1001
|
||||
#define W83781D_SYSCTL_IN2 1002
|
||||
#define W83781D_SYSCTL_IN3 1003
|
||||
#define W83781D_SYSCTL_IN4 1004
|
||||
#define W83781D_SYSCTL_IN5 1005
|
||||
#define W83781D_SYSCTL_IN6 1006
|
||||
#define W83781D_SYSCTL_FAN1 1101 /* Rotations/min */
|
||||
#define W83781D_SYSCTL_FAN2 1102
|
||||
#define W83781D_SYSCTL_FAN3 1103
|
||||
#define W83781D_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */
|
||||
#define W83781D_SYSCTL_VID 1300 /* Volts * 100 */
|
||||
#define W83781D_SYSCTL_FAN_DIV 2000 /* 1, 2, 4 or 8 */
|
||||
#define W83781D_SYSCTL_ALARMS 2001 /* bitvector */
|
||||
|
||||
#define W83781D_ALARM_IN0 0x0001
|
||||
#define W83781D_ALARM_IN1 0x0002
|
||||
#define W83781D_ALARM_IN2 0x0004
|
||||
#define W83781D_ALARM_IN3 0x0008
|
||||
#define W83781D_ALARM_IN4 0x0100
|
||||
#define W83781D_ALARM_IN5 0x0200
|
||||
#define W83781D_ALARM_IN6 0x0400
|
||||
#define W83781D_ALARM_FAN1 0x0040
|
||||
#define W83781D_ALARM_FAN2 0x0080
|
||||
#define W83781D_ALARM_FAN3 0x0800
|
||||
#define W83781D_ALARM_TEMP 0x0010
|
||||
#define W83781D_ALARM_BTI 0x0020
|
||||
#define W83781D_ALARM_CHAS 0x1000
|
||||
#define W83781D_ALARM_FIFO 0x2000
|
||||
#define W83781D_ALARM_SMI_IN 0x4000
|
||||
|
||||
#define LM75_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */
|
||||
|
||||
#define GL518_SYSCTL_VDD 1000 /* Volts * 100 */
|
||||
|
||||
Reference in new issue
Block a user