Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
emc2103.c File Reference
#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>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  temperature
 
struct  emc2103_data
 

Macros

#define REG_CONF1   0x20
 
#define REG_TEMP_MAX_ALARM   0x24
 
#define REG_TEMP_MIN_ALARM   0x25
 
#define REG_FAN_CONF1   0x42
 
#define REG_FAN_TARGET_LO   0x4c
 
#define REG_FAN_TARGET_HI   0x4d
 
#define REG_FAN_TACH_HI   0x4e
 
#define REG_FAN_TACH_LO   0x4f
 
#define REG_PRODUCT_ID   0xfd
 
#define REG_MFG_ID   0xfe
 
#define FAN_RPM_FACTOR   3932160
 

Functions

 module_param (apd, bint, 0)
 
 MODULE_PARM_DESC (init,"Set to zero to disable anti-parallel diode mode")
 
 MODULE_DEVICE_TABLE (i2c, emc2103_ids)
 
 module_i2c_driver (emc2103_driver)
 
 MODULE_AUTHOR ("Steve Glendinning <[email protected]>")
 
 MODULE_DESCRIPTION ("SMSC EMC2103 hwmon driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define FAN_RPM_FACTOR   3932160

Definition at line 49 of file emc2103.c.

#define REG_CONF1   0x20

Definition at line 37 of file emc2103.c.

#define REG_FAN_CONF1   0x42

Definition at line 40 of file emc2103.c.

#define REG_FAN_TACH_HI   0x4e

Definition at line 43 of file emc2103.c.

#define REG_FAN_TACH_LO   0x4f

Definition at line 44 of file emc2103.c.

#define REG_FAN_TARGET_HI   0x4d

Definition at line 42 of file emc2103.c.

#define REG_FAN_TARGET_LO   0x4c

Definition at line 41 of file emc2103.c.

#define REG_MFG_ID   0xfe

Definition at line 46 of file emc2103.c.

#define REG_PRODUCT_ID   0xfd

Definition at line 45 of file emc2103.c.

#define REG_TEMP_MAX_ALARM   0x24

Definition at line 38 of file emc2103.c.

#define REG_TEMP_MIN_ALARM   0x25

Definition at line 39 of file emc2103.c.

Function Documentation

MODULE_AUTHOR ( "Steve Glendinning <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC EMC2103 hwmon driver )
MODULE_DEVICE_TABLE ( i2c  ,
emc2103_ids   
)
module_i2c_driver ( emc2103_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( apd  ,
bint  ,
 
)
MODULE_PARM_DESC ( init  ,
"Set to zero to disable anti-parallel diode mode  
)