#include <linux/module.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/mutex.h>
#include <linux/sysfs.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
#define DIV_FROM_REG |
( |
|
val | ) |
(1 << (val)) |
#define IN_FROM_REG |
( |
|
val | ) |
((val) * 16) |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
#define show_fan_offset |
( |
|
offset | ) |
|
Value:
show_fan_min, set_fan_min,
offset - 1); \
show_fan_div, set_fan_div,
offset - 1);
Definition at line 481 of file sis5595.c.
#define show_in_offset |
( |
|
offset | ) |
|
#define SIS5595_ADDR_REG_OFFSET 5 |
#define SIS5595_BASE_REG 0x68 |
#define SIS5595_DATA_REG_OFFSET 6 |
#define SIS5595_ENABLE_REG 0x7B |
#define SIS5595_PIN_REG 0x7A |
#define SIS5595_REG_ALARM1 0x41 |
#define SIS5595_REG_ALARM2 0x42 |
#define SIS5595_REG_CONFIG 0x40 |
#define SIS5595_REG_FAN |
( |
|
nr | ) |
(0x28 + (nr)) |
#define SIS5595_REG_FAN_MIN |
( |
|
nr | ) |
(0x3b + (nr)) |
#define SIS5595_REG_FANDIV 0x47 |
#define SIS5595_REG_IN |
( |
|
nr | ) |
(0x20 + (nr)) |
#define SIS5595_REG_IN_MAX |
( |
|
nr | ) |
(0x2b + (nr) * 2) |
#define SIS5595_REG_IN_MIN |
( |
|
nr | ) |
(0x2c + (nr) * 2) |
Value:
SIS5595_REG_IN(4) : 0x27)
Definition at line 112 of file sis5595.c.
#define SIS5595_REG_TEMP_HYST |
Value:
SIS5595_REG_IN_MIN(4) : 0x3a)
Definition at line 116 of file sis5595.c.
#define SIS5595_REG_TEMP_OVER |
Value:
SIS5595_REG_IN_MAX(4) : 0x39)
Definition at line 114 of file sis5595.c.
MODULE_DESCRIPTION |
( |
"SiS 5595 Sensor device" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
sis5595_pci_ids |
|
|
) |
| |
module_exit |
( |
sm_sis5595_exit |
| ) |
|
module_init |
( |
sm_sis5595_init |
| ) |
|
module_param |
( |
force_addr |
, |
|
|
ushort |
, |
|
|
0 |
|
|
) |
| |