Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
i5k_amb.c File Reference
#include <linux/module.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/log2.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  i5k_device_attribute
 
struct  i5k_amb_data
 

Macros

#define DRVNAME   "i5k_amb"
 
#define I5K_REG_AMB_BASE_ADDR   0x48
 
#define I5K_REG_AMB_LEN_ADDR   0x50
 
#define I5K_REG_CHAN0_PRESENCE_ADDR   0x64
 
#define I5K_REG_CHAN1_PRESENCE_ADDR   0x66
 
#define AMB_REG_TEMP_MIN_ADDR   0x80
 
#define AMB_REG_TEMP_MID_ADDR   0x81
 
#define AMB_REG_TEMP_MAX_ADDR   0x82
 
#define AMB_REG_TEMP_STATUS_ADDR   0x84
 
#define AMB_REG_TEMP_ADDR   0x85
 
#define AMB_CONFIG_SIZE   2048
 
#define AMB_FUNC_3_OFFSET   768
 
#define MAX_MEM_CHANNELS   4
 
#define MAX_AMBS_PER_CHANNEL   16
 
#define MAX_AMBS
 
#define CHANNEL_SHIFT   4
 
#define DIMM_MASK   0xF
 
#define REAL_MAX_AMBS_PER_CHANNEL   15
 
#define KNOBS_PER_AMB   6
 
#define AMB_SYSFS_NAME_LEN   16
 

Functions

 MODULE_AUTHOR ("Darrick J. Wong <[email protected]>")
 
 MODULE_DESCRIPTION ("Intel 5000 chipset FB-DIMM AMB temperature sensor")
 
 MODULE_LICENSE ("GPL")
 
 module_init (i5k_amb_init)
 
 module_exit (i5k_amb_exit)
 

Macro Definition Documentation

#define AMB_CONFIG_SIZE   2048

Definition at line 46 of file i5k_amb.c.

#define AMB_FUNC_3_OFFSET   768

Definition at line 47 of file i5k_amb.c.

#define AMB_REG_TEMP_ADDR   0x85

Definition at line 44 of file i5k_amb.c.

#define AMB_REG_TEMP_MAX_ADDR   0x82

Definition at line 42 of file i5k_amb.c.

#define AMB_REG_TEMP_MID_ADDR   0x81

Definition at line 41 of file i5k_amb.c.

#define AMB_REG_TEMP_MIN_ADDR   0x80

Definition at line 40 of file i5k_amb.c.

#define AMB_REG_TEMP_STATUS_ADDR   0x84

Definition at line 43 of file i5k_amb.c.

#define AMB_SYSFS_NAME_LEN   16

Definition at line 100 of file i5k_amb.c.

#define CHANNEL_SHIFT   4

Definition at line 83 of file i5k_amb.c.

#define DIMM_MASK   0xF

Definition at line 84 of file i5k_amb.c.

#define DRVNAME   "i5k_amb"

Definition at line 33 of file i5k_amb.c.

#define I5K_REG_AMB_BASE_ADDR   0x48

Definition at line 35 of file i5k_amb.c.

#define I5K_REG_AMB_LEN_ADDR   0x50

Definition at line 36 of file i5k_amb.c.

#define I5K_REG_CHAN0_PRESENCE_ADDR   0x64

Definition at line 37 of file i5k_amb.c.

#define I5K_REG_CHAN1_PRESENCE_ADDR   0x66

Definition at line 38 of file i5k_amb.c.

#define KNOBS_PER_AMB   6

Definition at line 93 of file i5k_amb.c.

#define MAX_AMBS
Value:
MAX_AMBS_PER_CHANNEL)

Definition at line 81 of file i5k_amb.c.

#define MAX_AMBS_PER_CHANNEL   16

Definition at line 80 of file i5k_amb.c.

#define MAX_MEM_CHANNELS   4

Definition at line 79 of file i5k_amb.c.

#define REAL_MAX_AMBS_PER_CHANNEL   15

Definition at line 92 of file i5k_amb.c.

Function Documentation

MODULE_AUTHOR ( "Darrick J. Wong <[email protected]>"  )
MODULE_DESCRIPTION ( "Intel 5000 chipset FB-DIMM AMB temperature sensor"  )
module_exit ( i5k_amb_exit  )
module_init ( i5k_amb_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

unsigned long err

Definition at line 489 of file i5k_amb.c.

unsigned long fbd0

Definition at line 490 of file i5k_amb.c.