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

Go to the source code of this file.

Data Structures

struct  adt7410_data
 

Macros

#define ADT7410_TEMPERATURE   0
 
#define ADT7410_STATUS   2
 
#define ADT7410_CONFIG   3
 
#define ADT7410_T_ALARM_HIGH   4
 
#define ADT7410_T_ALARM_LOW   6
 
#define ADT7410_T_CRIT   8
 
#define ADT7410_T_HYST   0xA
 
#define ADT7410_STAT_T_LOW   (1 << 4)
 
#define ADT7410_STAT_T_HIGH   (1 << 5)
 
#define ADT7410_STAT_T_CRIT   (1 << 6)
 
#define ADT7410_STAT_NOT_RDY   (1 << 7)
 
#define ADT7410_FAULT_QUEUE_MASK   (1 << 0 | 1 << 1)
 
#define ADT7410_CT_POLARITY   (1 << 2)
 
#define ADT7410_INT_POLARITY   (1 << 3)
 
#define ADT7410_EVENT_MODE   (1 << 4)
 
#define ADT7410_MODE_MASK   (1 << 5 | 1 << 6)
 
#define ADT7410_FULL   (0 << 5 | 0 << 6)
 
#define ADT7410_PD   (1 << 5 | 1 << 6)
 
#define ADT7410_RESOLUTION   (1 << 7)
 
#define ADT7410_T13_VALUE_MASK   0xFFF8
 
#define ADT7410_T_HYST_MASK   0xF
 
#define ADT7410_TEMP_MIN   (-55000)
 
#define ADT7410_TEMP_MAX   150000
 
#define ADT7410_DEV_PM_OPS   NULL
 

Enumerations

enum  adt7410_type { adt7410 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, adt7410_ids)
 
 module_i2c_driver (adt7410_driver)
 
 MODULE_AUTHOR ("Hartmut Knaack")
 
 MODULE_DESCRIPTION ("ADT7410 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADT7410_CONFIG   3

Definition at line 41 of file adt7410.c.

#define ADT7410_CT_POLARITY   (1 << 2)

Definition at line 59 of file adt7410.c.

#define ADT7410_DEV_PM_OPS   NULL

Definition at line 445 of file adt7410.c.

#define ADT7410_EVENT_MODE   (1 << 4)

Definition at line 61 of file adt7410.c.

#define ADT7410_FAULT_QUEUE_MASK   (1 << 0 | 1 << 1)

Definition at line 58 of file adt7410.c.

#define ADT7410_FULL   (0 << 5 | 0 << 6)

Definition at line 63 of file adt7410.c.

#define ADT7410_INT_POLARITY   (1 << 3)

Definition at line 60 of file adt7410.c.

#define ADT7410_MODE_MASK   (1 << 5 | 1 << 6)

Definition at line 62 of file adt7410.c.

#define ADT7410_PD   (1 << 5 | 1 << 6)

Definition at line 64 of file adt7410.c.

#define ADT7410_RESOLUTION   (1 << 7)

Definition at line 65 of file adt7410.c.

#define ADT7410_STAT_NOT_RDY   (1 << 7)

Definition at line 53 of file adt7410.c.

#define ADT7410_STAT_T_CRIT   (1 << 6)

Definition at line 52 of file adt7410.c.

#define ADT7410_STAT_T_HIGH   (1 << 5)

Definition at line 51 of file adt7410.c.

#define ADT7410_STAT_T_LOW   (1 << 4)

Definition at line 50 of file adt7410.c.

#define ADT7410_STATUS   2

Definition at line 40 of file adt7410.c.

#define ADT7410_T13_VALUE_MASK   0xFFF8

Definition at line 70 of file adt7410.c.

#define ADT7410_T_ALARM_HIGH   4

Definition at line 42 of file adt7410.c.

#define ADT7410_T_ALARM_LOW   6

Definition at line 43 of file adt7410.c.

#define ADT7410_T_CRIT   8

Definition at line 44 of file adt7410.c.

#define ADT7410_T_HYST   0xA

Definition at line 45 of file adt7410.c.

#define ADT7410_T_HYST_MASK   0xF

Definition at line 71 of file adt7410.c.

#define ADT7410_TEMP_MAX   150000

Definition at line 75 of file adt7410.c.

#define ADT7410_TEMP_MIN   (-55000)

Definition at line 74 of file adt7410.c.

#define ADT7410_TEMPERATURE   0

Definition at line 39 of file adt7410.c.

Enumeration Type Documentation

Enumerator:
adt7410 

Definition at line 77 of file adt7410.c.

Function Documentation

MODULE_AUTHOR ( "Hartmut Knaack"  )
MODULE_DESCRIPTION ( "ADT7410 driver )
MODULE_DEVICE_TABLE ( i2c  ,
adt7410_ids   
)
module_i2c_driver ( adt7410_driver  )
MODULE_LICENSE ( "GPL"  )