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

Go to the source code of this file.

Macros

#define CPUID_PKGTYPE_MASK   0xf0000000
 
#define CPUID_PKGTYPE_F   0x00000000
 
#define CPUID_PKGTYPE_AM2R2_AM3   0x10000000
 
#define REG_DCT0_CONFIG_HIGH   0x094
 
#define DDR3_MODE   0x00000100
 
#define REG_HARDWARE_THERMAL_CONTROL   0x64
 
#define HTC_ENABLE   0x00000001
 
#define REG_REPORTED_TEMPERATURE   0xa4
 
#define REG_NORTHBRIDGE_CAPABILITIES   0xe8
 
#define NB_CAP_HTC   0x00000400
 

Functions

 MODULE_DESCRIPTION ("AMD Family 10h+ CPU core temperature monitor")
 
 MODULE_AUTHOR ("Clemens Ladisch <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_param (force, bool, 0444)
 
 MODULE_PARM_DESC (force,"force loading on processors with erratum 319")
 
 MODULE_DEVICE_TABLE (pci, k10temp_id_table)
 
 module_pci_driver (k10temp_driver)
 

Macro Definition Documentation

#define CPUID_PKGTYPE_AM2R2_AM3   0x10000000

Definition at line 39 of file k10temp.c.

#define CPUID_PKGTYPE_F   0x00000000

Definition at line 38 of file k10temp.c.

#define CPUID_PKGTYPE_MASK   0xf0000000

Definition at line 37 of file k10temp.c.

#define DDR3_MODE   0x00000100

Definition at line 43 of file k10temp.c.

#define HTC_ENABLE   0x00000001

Definition at line 47 of file k10temp.c.

#define NB_CAP_HTC   0x00000400

Definition at line 52 of file k10temp.c.

#define REG_DCT0_CONFIG_HIGH   0x094

Definition at line 42 of file k10temp.c.

#define REG_HARDWARE_THERMAL_CONTROL   0x64

Definition at line 46 of file k10temp.c.

#define REG_NORTHBRIDGE_CAPABILITIES   0xe8

Definition at line 51 of file k10temp.c.

#define REG_REPORTED_TEMPERATURE   0xa4

Definition at line 49 of file k10temp.c.

Function Documentation

MODULE_AUTHOR ( "Clemens Ladisch <[email protected]>"  )
MODULE_DESCRIPTION ( "AMD Family 10h+ CPU core temperature monitor"  )
MODULE_DEVICE_TABLE ( pci  ,
k10temp_id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( force  ,
bool  ,
0444   
)
MODULE_PARM_DESC ( force  ,
"force loading on processors with erratum 319"   
)
module_pci_driver ( k10temp_driver  )