Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
emc6w201.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  emc6w201_data
 

Macros

#define EMC6W201_REG_IN(nr)   (0x20 + (nr))
 
#define EMC6W201_REG_TEMP(nr)   (0x26 + (nr))
 
#define EMC6W201_REG_FAN(nr)   (0x2C + (nr) * 2)
 
#define EMC6W201_REG_COMPANY   0x3E
 
#define EMC6W201_REG_VERSTEP   0x3F
 
#define EMC6W201_REG_CONFIG   0x40
 
#define EMC6W201_REG_IN_LOW(nr)   (0x4A + (nr) * 2)
 
#define EMC6W201_REG_IN_HIGH(nr)   (0x4B + (nr) * 2)
 
#define EMC6W201_REG_TEMP_LOW(nr)   (0x56 + (nr) * 2)
 
#define EMC6W201_REG_TEMP_HIGH(nr)   (0x57 + (nr) * 2)
 
#define EMC6W201_REG_FAN_MIN(nr)   (0x62 + (nr) * 2)
 

Enumerations

enum  { input, min, max }
 

Functions

 MODULE_DEVICE_TABLE (i2c, emc6w201_id)
 
 module_i2c_driver (emc6w201_driver)
 
 MODULE_AUTHOR ("Jean Delvare <[email protected]>")
 
 MODULE_DESCRIPTION ("SMSC EMC6W201 hardware monitoring driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

enum { ... }  subfeature
 

Macro Definition Documentation

#define EMC6W201_REG_COMPANY   0x3E

Definition at line 43 of file emc6w201.c.

#define EMC6W201_REG_CONFIG   0x40

Definition at line 45 of file emc6w201.c.

#define EMC6W201_REG_FAN (   nr)    (0x2C + (nr) * 2)

Definition at line 42 of file emc6w201.c.

#define EMC6W201_REG_FAN_MIN (   nr)    (0x62 + (nr) * 2)

Definition at line 50 of file emc6w201.c.

#define EMC6W201_REG_IN (   nr)    (0x20 + (nr))

Definition at line 40 of file emc6w201.c.

#define EMC6W201_REG_IN_HIGH (   nr)    (0x4B + (nr) * 2)

Definition at line 47 of file emc6w201.c.

#define EMC6W201_REG_IN_LOW (   nr)    (0x4A + (nr) * 2)

Definition at line 46 of file emc6w201.c.

#define EMC6W201_REG_TEMP (   nr)    (0x26 + (nr))

Definition at line 41 of file emc6w201.c.

#define EMC6W201_REG_TEMP_HIGH (   nr)    (0x57 + (nr) * 2)

Definition at line 49 of file emc6w201.c.

#define EMC6W201_REG_TEMP_LOW (   nr)    (0x56 + (nr) * 2)

Definition at line 48 of file emc6w201.c.

#define EMC6W201_REG_VERSTEP   0x3F

Definition at line 44 of file emc6w201.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
input 
min 
max 

Definition at line 52 of file emc6w201.c.

Function Documentation

MODULE_AUTHOR ( "Jean Delvare <[email protected]>"  )
MODULE_DESCRIPTION ( "SMSC EMC6W201 hardware monitoring driver )
MODULE_DEVICE_TABLE ( i2c  ,
emc6w201_id   
)
module_i2c_driver ( emc6w201_driver  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

enum { ... } subfeature