mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-03 13:38:25 +00:00
Major SIS5595 overhaul
* sis5595.c now understand insmod parameters
* sis5595.c now uses sis5595_ prefix instead of lm78_ prefix
* sis5595.c now supports the correct subset of the LM78 features
(it only knows about 4 voltages, 2 fans and no vid)
* added SIS5595 defines to sensors.h
* fixed a small problem in compat.h
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@379 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
f808a95c20
commit
cb3131905c
3 files changed
+383
-417
No files matched your search
@@ -63,22 +63,22 @@
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,54))
|
||||
#define pci_present pcibios_present
|
||||
#define pci_read_config_byte_united(device,bus,dev,com,res) \
|
||||
pcibios_read_config_byte(bus,dev,com,res);
|
||||
pcibios_read_config_byte(bus,dev,com,res)
|
||||
#define pci_read_config_word_united(device,bus,dev,com,res) \
|
||||
pcibios_read_config_word(bus,dev,com,res);
|
||||
pcibios_read_config_word(bus,dev,com,res)
|
||||
#define pci_write_config_byte_united(device,bus,dev,com,res) \
|
||||
pcibios_write_config_byte(bus,dev,com,res);
|
||||
pcibios_write_config_byte(bus,dev,com,res)
|
||||
#define pci_write_config_word_united(device,bus,dev,com,res) \
|
||||
pcibios_write_config_word(bus,dev,com,res);
|
||||
pcibios_write_config_word(bus,dev,com,res)
|
||||
#else
|
||||
#define pci_read_config_byte_united(device,bus,dev,com,res) \
|
||||
pci_read_config_byte(device,com,res);
|
||||
pci_read_config_byte(device,com,res)
|
||||
#define pci_read_config_word_united(device,bus,dev,com,res) \
|
||||
pci_read_config_word(device,com,res);
|
||||
pci_read_config_word(device,com,res)
|
||||
#define pci_write_config_byte_united(device,bus,dev,com,res) \
|
||||
pci_write_config_byte(device,com,res);
|
||||
pci_write_config_byte(device,com,res)
|
||||
#define pci_write_config_word_united(device,bus,dev,com,res) \
|
||||
pci_write_config_byte(device,com,res);
|
||||
pci_write_config_byte(device,com,res)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -501,6 +501,24 @@ struct sensors_chips_data {
|
||||
#define MAXI_ALARM_FAN2 0x2000
|
||||
#define MAXI_ALARM_FAN3 0x4000
|
||||
|
||||
#define SIS5595_SYSCTL_IN0 1000 /* Volts * 100 */
|
||||
#define SIS5595_SYSCTL_IN1 1001
|
||||
#define SIS5595_SYSCTL_IN2 1002
|
||||
#define SIS5595_SYSCTL_IN3 1003
|
||||
#define SIS5595_SYSCTL_FAN1 1101 /* Rotations/min */
|
||||
#define SIS5595_SYSCTL_FAN2 1102
|
||||
#define SIS5595_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */
|
||||
#define SIS5595_SYSCTL_FAN_DIV 2000 /* 1, 2, 4 or 8 */
|
||||
#define SIS5595_SYSCTL_ALARMS 2001 /* bitvector */
|
||||
|
||||
#define SIS5595_ALARM_IN0 0x01
|
||||
#define SIS5595_ALARM_IN1 0x02
|
||||
#define SIS5595_ALARM_IN2 0x04
|
||||
#define SIS5595_ALARM_IN3 0x08
|
||||
#define SIS5595_ALARM_TEMP 0x10
|
||||
#define SIS5595_ALARM_BTI 0x20
|
||||
#define SIS5595_ALARM_FAN1 0x40
|
||||
#define SIS5595_ALARM_FAN2 0x80
|
||||
|
||||
#define ICSPLL_SYSCTL1 1000
|
||||
#endif /* def SENSORS_SENSORS_H */
|
||||
Reference in new issue
Block a user