#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/hwmon-sysfs.h>
#include <linux/hwmon.h>
#include <linux/err.h>
#include <linux/mutex.h>
Go to the source code of this file.
#define ADM1029_REG_CHIP_ID 0x0E |
#define ADM1029_REG_CONFIG 0x01 |
#define ADM1029_REG_FAN1 0x70 |
#define ADM1029_REG_FAN1_CONFIG 0x68 |
#define ADM1029_REG_FAN1_MIN 0x78 |
#define ADM1029_REG_FAN2 0x71 |
#define ADM1029_REG_FAN2_CONFIG 0x69 |
#define ADM1029_REG_FAN2_MIN 0x79 |
#define ADM1029_REG_LOCAL_TEMP 0xA0 |
#define ADM1029_REG_LOCAL_TEMP_HIGH 0x90 |
#define ADM1029_REG_LOCAL_TEMP_LOW 0x98 |
#define ADM1029_REG_MAN_ID 0x0D |
#define ADM1029_REG_NB_FAN_SUPPORT 0x02 |
#define ADM1029_REG_REMOTE1_TEMP 0xA1 |
#define ADM1029_REG_REMOTE1_TEMP_HIGH 0x91 |
#define ADM1029_REG_REMOTE1_TEMP_LOW 0x99 |
#define ADM1029_REG_REMOTE2_TEMP 0xA2 |
#define ADM1029_REG_REMOTE2_TEMP_HIGH 0x92 |
#define ADM1029_REG_REMOTE2_TEMP_LOW 0x9A |
#define ADM1029_REG_TEMP_DEVICES_INSTALLED 0x06 |
#define DIV_FROM_REG |
( |
|
val | ) |
(1 << (((val) >> 6) - 1)) |
#define TEMP_FROM_REG |
( |
|
val | ) |
((val) * 1000) |
MODULE_DESCRIPTION |
( |
"adm1029 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
adm1029_id |
|
|
) |
| |
module_i2c_driver |
( |
adm1029_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|