Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/hwmon-vid.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/acpi.h>
#include <linux/io.h>
Go to the source code of this file.
Data Structures | |
struct | dme1737_data |
Macros | |
#define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
#define | DME1737_REG_IN(ix) |
#define | DME1737_REG_IN_MIN(ix) |
#define | DME1737_REG_IN_MAX(ix) |
#define | DME1737_REG_TEMP(ix) (0x25 + (ix)) |
#define | DME1737_REG_TEMP_MIN(ix) (0x4e + (ix) * 2) |
#define | DME1737_REG_TEMP_MAX(ix) (0x4f + (ix) * 2) |
#define | DME1737_REG_TEMP_OFFSET(ix) |
#define | DME1737_REG_IN_TEMP_LSB(ix) (0x84 + (ix)) |
#define | DME1737_REG_FAN(ix) |
#define | DME1737_REG_FAN_MIN(ix) |
#define | DME1737_REG_FAN_OPT(ix) |
#define | DME1737_REG_FAN_MAX(ix) (0xb4 + (ix)) /* only for fan[4-5] */ |
#define | DME1737_REG_PWM(ix) |
#define | DME1737_REG_PWM_CONFIG(ix) (0x5c + (ix)) /* only for pwm[0-2] */ |
#define | DME1737_REG_PWM_MIN(ix) (0x64 + (ix)) /* only for pwm[0-2] */ |
#define | DME1737_REG_PWM_FREQ(ix) |
#define | DME1737_REG_PWM_RR(ix) (0x62 + (ix)) /* only for pwm[0-2] */ |
#define | DME1737_REG_ZONE_LOW(ix) (0x67 + (ix)) |
#define | DME1737_REG_ZONE_ABS(ix) (0x6a + (ix)) |
#define | DME1737_REG_ZONE_HYST(ix) (0x6d + (ix)) |
#define | DME1737_REG_ALARM1 0x41 |
#define | DME1737_REG_ALARM2 0x42 |
#define | DME1737_REG_ALARM3 0x83 |
#define | DME1737_REG_DEVICE 0x3d |
#define | DME1737_REG_COMPANY 0x3e |
#define | DME1737_REG_VERSTEP 0x3f |
#define | DME1737_REG_CONFIG 0x40 |
#define | DME1737_REG_CONFIG2 0x7f |
#define | DME1737_REG_VID 0x43 |
#define | DME1737_REG_TACH_PWM 0x81 |
#define | DME1737_COMPANY_SMSC 0x5c |
#define | DME1737_VERSTEP 0x88 |
#define | DME1737_VERSTEP_MASK 0xf8 |
#define | SCH311X_DEVICE 0x8c |
#define | SCH5027_VERSTEP 0x69 |
#define | SCH5127_DEVICE 0x8e |
#define | DME1737_ID_1 0x77 |
#define | DME1737_ID_2 0x78 |
#define | SCH3112_ID 0x7c |
#define | SCH3114_ID 0x7d |
#define | SCH3116_ID 0x7f |
#define | SCH5027_ID 0x89 |
#define | SCH5127_ID 0x86 |
#define | DME1737_EXTENT 2 |
#define | HAS_TEMP_OFFSET (1 << 0) /* bit 0 */ |
#define | HAS_VID (1 << 1) /* bit 1 */ |
#define | HAS_ZONE3 (1 << 2) /* bit 2 */ |
#define | HAS_ZONE_HYST (1 << 3) /* bit 3 */ |
#define | HAS_PWM_MIN (1 << 4) /* bit 4 */ |
#define | HAS_FAN(ix) (1 << ((ix) + 5)) /* bits 5-10 */ |
#define | HAS_PWM(ix) (1 << ((ix) + 11)) /* bits 11-16 */ |
#define | HAS_IN7 (1 << 17) /* bit 17 */ |
#define | IN_NOMINAL(type) |
#define | SYS_IN_INPUT 0 |
#define | SYS_IN_MIN 1 |
#define | SYS_IN_MAX 2 |
#define | SYS_IN_ALARM 3 |
#define | SYS_TEMP_INPUT 0 |
#define | SYS_TEMP_MIN 1 |
#define | SYS_TEMP_MAX 2 |
#define | SYS_TEMP_OFFSET 3 |
#define | SYS_TEMP_ALARM 4 |
#define | SYS_TEMP_FAULT 5 |
#define | SYS_ZONE_AUTO_CHANNELS_TEMP 0 |
#define | SYS_ZONE_AUTO_POINT1_TEMP_HYST 1 |
#define | SYS_ZONE_AUTO_POINT1_TEMP 2 |
#define | SYS_ZONE_AUTO_POINT2_TEMP 3 |
#define | SYS_ZONE_AUTO_POINT3_TEMP 4 |
#define | SYS_FAN_INPUT 0 |
#define | SYS_FAN_MIN 1 |
#define | SYS_FAN_MAX 2 |
#define | SYS_FAN_ALARM 3 |
#define | SYS_FAN_TYPE 4 |
#define | SYS_PWM 0 |
#define | SYS_PWM_FREQ 1 |
#define | SYS_PWM_ENABLE 2 |
#define | SYS_PWM_RAMP_RATE 3 |
#define | SYS_PWM_AUTO_CHANNELS_ZONE 4 |
#define | SYS_PWM_AUTO_PWM_MIN 5 |
#define | SYS_PWM_AUTO_POINT1_PWM 6 |
#define | SYS_PWM_AUTO_POINT2_PWM 7 |
#define | SENSOR_DEVICE_ATTR_IN(ix) |
#define | SENSOR_DEVICE_ATTR_TEMP(ix) |
#define | SENSOR_DEVICE_ATTR_ZONE(ix) |
#define | SENSOR_DEVICE_ATTR_FAN_1TO4(ix) |
#define | SENSOR_DEVICE_ATTR_FAN_5TO6(ix) |
#define | SENSOR_DEVICE_ATTR_PWM_1TO3(ix) |
#define | SENSOR_DEVICE_ATTR_PWM_5TO6(ix) |
#define DME1737_REG_FAN | ( | ix | ) |
#define DME1737_REG_FAN_MAX | ( | ix | ) | (0xb4 + (ix)) /* only for fan[4-5] */ |
#define DME1737_REG_FAN_MIN | ( | ix | ) |
#define DME1737_REG_FAN_OPT | ( | ix | ) |
#define DME1737_REG_IN | ( | ix | ) |
#define DME1737_REG_IN_MAX | ( | ix | ) |
#define DME1737_REG_IN_MIN | ( | ix | ) |
#define DME1737_REG_PWM | ( | ix | ) |
#define DME1737_REG_PWM_CONFIG | ( | ix | ) | (0x5c + (ix)) /* only for pwm[0-2] */ |
#define DME1737_REG_PWM_FREQ | ( | ix | ) |
#define DME1737_REG_PWM_MIN | ( | ix | ) | (0x64 + (ix)) /* only for pwm[0-2] */ |
#define DME1737_REG_PWM_RR | ( | ix | ) | (0x62 + (ix)) /* only for pwm[0-2] */ |
#define DME1737_REG_TEMP_OFFSET | ( | ix | ) |
#define IN_NOMINAL | ( | type | ) |
#define SENSOR_DEVICE_ATTR_FAN_1TO4 | ( | ix | ) |
#define SENSOR_DEVICE_ATTR_FAN_5TO6 | ( | ix | ) |
#define SENSOR_DEVICE_ATTR_IN | ( | ix | ) |
#define SENSOR_DEVICE_ATTR_PWM_1TO3 | ( | ix | ) |
#define SENSOR_DEVICE_ATTR_PWM_5TO6 | ( | ix | ) |
#define SENSOR_DEVICE_ATTR_TEMP | ( | ix | ) |
#define SENSOR_DEVICE_ATTR_ZONE | ( | ix | ) |
enum chips |
MODULE_AUTHOR | ( | "Juerg Haefliger <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "DME1737 sensors" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
dme1737_id | |||
) |
module_exit | ( | dme1737_exit | ) |
module_init | ( | dme1737_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | force_start | , |
bool | , | ||
0 | |||
) |
module_param | ( | force_id | , |
ushort | , | ||
0 | |||
) |
module_param | ( | probe_all_addr | , |
bool | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | probe_all_addr | , |
"Include probing of non-standard LPC ""addresses" | |||
) |
SENSOR_DEVICE_ATTR_FAN_1TO4 | ( | 1 | ) |
SENSOR_DEVICE_ATTR_FAN_1TO4 | ( | 2 | ) |
SENSOR_DEVICE_ATTR_FAN_1TO4 | ( | 3 | ) |
SENSOR_DEVICE_ATTR_FAN_1TO4 | ( | 4 | ) |
SENSOR_DEVICE_ATTR_FAN_5TO6 | ( | 5 | ) |
SENSOR_DEVICE_ATTR_FAN_5TO6 | ( | 6 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 0 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 1 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 2 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 3 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 4 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 5 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 6 | ) |
SENSOR_DEVICE_ATTR_IN | ( | 7 | ) |
SENSOR_DEVICE_ATTR_PWM_1TO3 | ( | 1 | ) |
SENSOR_DEVICE_ATTR_PWM_1TO3 | ( | 2 | ) |
SENSOR_DEVICE_ATTR_PWM_1TO3 | ( | 3 | ) |
SENSOR_DEVICE_ATTR_PWM_5TO6 | ( | 5 | ) |
SENSOR_DEVICE_ATTR_PWM_5TO6 | ( | 6 | ) |
SENSOR_DEVICE_ATTR_TEMP | ( | 1 | ) |
SENSOR_DEVICE_ATTR_TEMP | ( | 2 | ) |
SENSOR_DEVICE_ATTR_TEMP | ( | 3 | ) |
SENSOR_DEVICE_ATTR_ZONE | ( | 1 | ) |
SENSOR_DEVICE_ATTR_ZONE | ( | 2 | ) |
SENSOR_DEVICE_ATTR_ZONE | ( | 3 | ) |