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

Go to the source code of this file.

Data Structures

struct  g760a_data
 

Macros

#define G760A_REG_FAN_STA_RPM_OFF   0x1 /* +/-20% off */
 
#define G760A_REG_FAN_STA_RPM_LOW   0x2 /* below 1920rpm */
 
#define G760A_UPDATE_INTERVAL   (HZ)
 
#define G760A_DEFAULT_CLK   32768
 
#define G760A_DEFAULT_FAN_DIV   2
 
#define PWM_FROM_CNT(cnt)   (0xff-(cnt))
 
#define PWM_TO_CNT(pwm)   (0xff-(pwm))
 

Enumerations

enum  g760a_regs { G760A_REG_SET_CNT = 0x00, G760A_REG_ACT_CNT = 0x01, G760A_REG_FAN_STA = 0x02 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, g760a_id)
 
 module_i2c_driver (g760a_driver)
 
 MODULE_AUTHOR ("Herbert Valerio Riedel <[email protected]>")
 
 MODULE_DESCRIPTION ("GMT G760A driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define G760A_DEFAULT_CLK   32768

Definition at line 66 of file g760a.c.

#define G760A_DEFAULT_FAN_DIV   2

Definition at line 67 of file g760a.c.

#define G760A_REG_FAN_STA_RPM_LOW   0x2 /* below 1920rpm */

Definition at line 40 of file g760a.c.

#define G760A_REG_FAN_STA_RPM_OFF   0x1 /* +/-20% off */

Definition at line 39 of file g760a.c.

#define G760A_UPDATE_INTERVAL   (HZ)

Definition at line 43 of file g760a.c.

#define PWM_FROM_CNT (   cnt)    (0xff-(cnt))

Definition at line 69 of file g760a.c.

#define PWM_TO_CNT (   pwm)    (0xff-(pwm))

Definition at line 70 of file g760a.c.

Enumeration Type Documentation

enum g760a_regs
Enumerator:
G760A_REG_SET_CNT 
G760A_REG_ACT_CNT 
G760A_REG_FAN_STA 

Definition at line 33 of file g760a.c.

Function Documentation

MODULE_AUTHOR ( "Herbert Valerio Riedel <[email protected]>"  )
MODULE_DESCRIPTION ( "GMT G760A driver )
MODULE_DEVICE_TABLE ( i2c  ,
g760a_id   
)
module_i2c_driver ( g760a_driver  )
MODULE_LICENSE ( "GPL"  )