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

Go to the source code of this file.

Data Structures

struct  k8temp_data
 

Macros

#define TEMP_FROM_REG(val)   (((((val) >> 16) & 0xff) - 49) * 1000)
 
#define REG_TEMP   0xe4
 
#define SEL_PLACE   0x40
 
#define SEL_CORE   0x04
 

Functions

 MODULE_DEVICE_TABLE (pci, k8temp_ids)
 
 module_pci_driver (k8temp_driver)
 
 MODULE_AUTHOR ("Rudolf Marek <[email protected]>")
 
 MODULE_DESCRIPTION ("AMD K8 core temperature monitor")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define REG_TEMP   0xe4

Definition at line 36 of file k8temp.c.

#define SEL_CORE   0x04

Definition at line 38 of file k8temp.c.

#define SEL_PLACE   0x40

Definition at line 37 of file k8temp.c.

#define TEMP_FROM_REG (   val)    (((((val) >> 16) & 0xff) - 49) * 1000)

Definition at line 35 of file k8temp.c.

Function Documentation

MODULE_AUTHOR ( "Rudolf Marek <[email protected]>"  )
MODULE_DESCRIPTION ( "AMD K8 core temperature monitor"  )
MODULE_DEVICE_TABLE ( pci  ,
k8temp_ids   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( k8temp_driver  )