#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
Go to the source code of this file.
#define DIV_FROM_REG |
( |
|
reg | ) |
(1 << (reg & 7)) |
#define FAN_RPM_MAX 30000 |
#define MAX6650_ALRM_GPIO1 0x08 |
#define MAX6650_ALRM_GPIO2 0x10 |
#define MAX6650_ALRM_MAX 0x01 |
#define MAX6650_ALRM_MIN 0x02 |
#define MAX6650_ALRM_TACH 0x04 |
#define MAX6650_CFG_MODE_CLOSED_LOOP 0x20 |
#define MAX6650_CFG_MODE_MASK 0x30 |
#define MAX6650_CFG_MODE_OFF 0x10 |
#define MAX6650_CFG_MODE_ON 0x00 |
#define MAX6650_CFG_MODE_OPEN_LOOP 0x30 |
#define MAX6650_CFG_PRESCALER_16 0x04 |
#define MAX6650_CFG_PRESCALER_2 0x01 |
#define MAX6650_CFG_PRESCALER_4 0x02 |
#define MAX6650_CFG_PRESCALER_8 0x03 |
#define MAX6650_CFG_PRESCALER_MASK 0x07 |
#define MAX6650_CFG_V12 0x08 |
#define MAX6650_COUNT_MASK 0x03 |
#define MAX6650_REG_ALARM 0x0A |
#define MAX6650_REG_ALARM_EN 0x08 |
#define MAX6650_REG_CONFIG 0x02 |
#define MAX6650_REG_COUNT 0x16 |
#define MAX6650_REG_DAC 0x06 |
#define MAX6650_REG_GPIO_DEF 0x04 |
#define MAX6650_REG_GPIO_STAT 0x14 |
#define MAX6650_REG_SPEED 0x00 |
#define MAX6650_REG_TACH0 0x0C |
#define MAX6650_REG_TACH1 0x0E |
#define MAX6650_REG_TACH2 0x10 |
#define MAX6650_REG_TACH3 0x12 |
MODULE_AUTHOR |
( |
"Hans J. Koch" |
| ) |
|
MODULE_DESCRIPTION |
( |
"MAX6650 sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
max6650_id |
|
|
) |
| |
module_i2c_driver |
( |
max6650_driver |
| ) |
|