Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/delay.h>
#include <linux/jiffies.h>
Go to the source code of this file.
Data Structures | |
struct | smm665_data |
#define smm665_is_critical | ( | lim | ) |
#define SMM665_TEMP_ADC_TO_CELSIUS | ( | adc | ) |
enum chips |
MODULE_AUTHOR | ( | "Guenter Roeck" | ) |
MODULE_DESCRIPTION | ( | "SMM665 driver" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
smm665_id | |||
) |
module_i2c_driver | ( | smm665_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | vref | , |
int | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | vref | , |
"Reference voltage in mV" | |||
) |
SMM665_ATTR | ( | in1 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_12V | |||
) |
SMM665_ATTR | ( | in2 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_VDD | |||
) |
SMM665_ATTR | ( | in3 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_A | |||
) |
SMM665_ATTR | ( | in4 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_B | |||
) |
SMM665_ATTR | ( | in5 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_C | |||
) |
SMM665_ATTR | ( | in6 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_D | |||
) |
SMM665_ATTR | ( | in7 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_E | |||
) |
SMM665_ATTR | ( | in8 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_F | |||
) |
SMM665_ATTR | ( | in9 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_AIN1 | |||
) |
SMM665_ATTR | ( | in10 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_AIN2 | |||
) |
SMM665_ATTR | ( | in1 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_12V | |||
) |
SMM665_ATTR | ( | in2 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_VDD | |||
) |
SMM665_ATTR | ( | in3 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_A | |||
) |
SMM665_ATTR | ( | in4 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_B | |||
) |
SMM665_ATTR | ( | in5 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_C | |||
) |
SMM665_ATTR | ( | in6 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_D | |||
) |
SMM665_ATTR | ( | in7 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_E | |||
) |
SMM665_ATTR | ( | in8 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_F | |||
) |
SMM665_ATTR | ( | in9 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_AIN1 | |||
) |
SMM665_ATTR | ( | in10 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_AIN2 | |||
) |
SMM665_ATTR | ( | in1 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_12V | |||
) |
SMM665_ATTR | ( | in2 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_VDD | |||
) |
SMM665_ATTR | ( | in3 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_A | |||
) |
SMM665_ATTR | ( | in4 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_B | |||
) |
SMM665_ATTR | ( | in5 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_C | |||
) |
SMM665_ATTR | ( | in6 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_D | |||
) |
SMM665_ATTR | ( | in7 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_E | |||
) |
SMM665_ATTR | ( | in8 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_F | |||
) |
SMM665_ATTR | ( | in9 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_AIN1 | |||
) |
SMM665_ATTR | ( | in10 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_AIN2 | |||
) |
SMM665_ATTR | ( | in1 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_12V | |||
) |
SMM665_ATTR | ( | in2 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_VDD | |||
) |
SMM665_ATTR | ( | in3 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_A | |||
) |
SMM665_ATTR | ( | in4 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_B | |||
) |
SMM665_ATTR | ( | in5 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_C | |||
) |
SMM665_ATTR | ( | in6 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_D | |||
) |
SMM665_ATTR | ( | in7 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_E | |||
) |
SMM665_ATTR | ( | in8 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_F | |||
) |
SMM665_ATTR | ( | in9 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_AIN1 | |||
) |
SMM665_ATTR | ( | in10 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_AIN2 | |||
) |
SMM665_ATTR | ( | in1 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_12V | |||
) |
SMM665_ATTR | ( | in2 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_VDD | |||
) |
SMM665_ATTR | ( | in3 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_A | |||
) |
SMM665_ATTR | ( | in4 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_B | |||
) |
SMM665_ATTR | ( | in5 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_C | |||
) |
SMM665_ATTR | ( | in6 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_D | |||
) |
SMM665_ATTR | ( | in7 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_E | |||
) |
SMM665_ATTR | ( | in8 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_F | |||
) |
SMM665_ATTR | ( | in9 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_AIN1 | |||
) |
SMM665_ATTR | ( | in10 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_AIN2 | |||
) |
SMM665_ATTR | ( | in1 | , |
crit_alarm | , | ||
SMM665_FAULT_12V | |||
) |
SMM665_ATTR | ( | in2 | , |
crit_alarm | , | ||
SMM665_FAULT_VDD | |||
) |
SMM665_ATTR | ( | in3 | , |
crit_alarm | , | ||
SMM665_FAULT_A | |||
) |
SMM665_ATTR | ( | in4 | , |
crit_alarm | , | ||
SMM665_FAULT_B | |||
) |
SMM665_ATTR | ( | in5 | , |
crit_alarm | , | ||
SMM665_FAULT_C | |||
) |
SMM665_ATTR | ( | in6 | , |
crit_alarm | , | ||
SMM665_FAULT_D | |||
) |
SMM665_ATTR | ( | in7 | , |
crit_alarm | , | ||
SMM665_FAULT_E | |||
) |
SMM665_ATTR | ( | in8 | , |
crit_alarm | , | ||
SMM665_FAULT_F | |||
) |
SMM665_ATTR | ( | in9 | , |
crit_alarm | , | ||
SMM665_FAULT_AIN1 | |||
) |
SMM665_ATTR | ( | in10 | , |
crit_alarm | , | ||
SMM665_FAULT_AIN2 | |||
) |
SMM665_ATTR | ( | temp1 | , |
input | , | ||
SMM665_MISC16_ADC_DATA_INT_TEMP | |||
) |
SMM665_ATTR | ( | temp1 | , |
min | , | ||
SMM665_MISC16_ADC_DATA_INT_TEMP | |||
) |
SMM665_ATTR | ( | temp1 | , |
max | , | ||
SMM665_MISC16_ADC_DATA_INT_TEMP | |||
) |
SMM665_ATTR | ( | temp1 | , |
lcrit | , | ||
SMM665_MISC16_ADC_DATA_INT_TEMP | |||
) |
SMM665_ATTR | ( | temp1 | , |
crit | , | ||
SMM665_MISC16_ADC_DATA_INT_TEMP | |||
) |
SMM665_ATTR | ( | temp1 | , |
crit_alarm | , | ||
SMM665_FAULT_TEMP | |||
) |
SMM665_SHOW | ( | min | ) |
SMM665_SHOW | ( | max | ) |
SMM665_SHOW | ( | lcrit | ) |
SMM665_SHOW | ( | crit | ) |