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
This commit is contained in:
Frodo Looijaard committed 1998-12-26 01:18:58 +00:00
1 parent 1654f21fc5
commit 9248881396
5 files changed
+631 -415

No files matched your search

+3 -5
View File
@@ -144,7 +144,7 @@ struct sensors_chips_data {
#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_TEMP1 1200 /* Degrees Celcius * 10 */
#define W83781D_SYSCTL_TEMP2 1201 /* Degrees Celcius * 10 */
#define W83781D_SYSCTL_TEMP3 1202 /* Degrees Celcius * 10 */
#define W83781D_SYSCTL_VID 1300 /* Volts * 100 */
@@ -162,11 +162,9 @@ struct sensors_chips_data {
#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_TEMP1 0x0010
#define W83781D_ALARM_TEMP23 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 */