Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
therm_pm72.c File Reference
#include <linux/types.h>
#include <linux/module.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
#include <linux/reboot.h>
#include <linux/kmod.h>
#include <linux/i2c.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/sections.h>
#include <asm/macio.h>
#include "therm_pm72.h"

Go to the source code of this file.

Data Structures

struct  fcu_fan_table
 

Macros

#define VERSION   "1.3"
 
#define DBG(args...)   do { } while(0)
 
#define CPU_PID_TYPE_SPLIT   0
 
#define CPU_PID_TYPE_COMBINED   1
 
#define CPU_PID_TYPE_RACKMAC   2
 
#define FCU_FAN_RPM   0
 
#define FCU_FAN_PWM   1
 
#define FCU_FAN_ABSENT_ID   -1
 
#define FCU_FAN_COUNT   ARRAY_SIZE(fcu_fans)
 
#define BUILD_SHOW_FUNC_FIX(name, data)
 
#define BUILD_SHOW_FUNC_INT(name, data)
 

Functions

 MODULE_DEVICE_TABLE (of, fcu_match)
 
 module_init (therm_pm72_init)
 
 module_exit (therm_pm72_exit)
 
 MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Apple's PowerMac G5 thermal control")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct fcu_fan_table fcu_fans []
 

Macro Definition Documentation

#define BUILD_SHOW_FUNC_FIX (   name,
  data 
)
Value:
static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \
{ \
mutex_lock(&driver_lock); \
r = sprintf(buf, "%d.%03d", FIX32TOPRINT(data)); \
mutex_unlock(&driver_lock); \
return r; \
}

Definition at line 704 of file therm_pm72.c.

#define BUILD_SHOW_FUNC_INT (   name,
  data 
)
Value:
static ssize_t show_##name(struct device *dev, struct device_attribute *attr, char *buf) \
{ \
return sprintf(buf, "%d", data); \
}

Definition at line 713 of file therm_pm72.c.

#define CPU_PID_TYPE_COMBINED   1

Definition at line 183 of file therm_pm72.c.

#define CPU_PID_TYPE_RACKMAC   2

Definition at line 184 of file therm_pm72.c.

#define CPU_PID_TYPE_SPLIT   0

Definition at line 182 of file therm_pm72.c.

#define DBG (   args...)    do { } while(0)

Definition at line 142 of file therm_pm72.c.

#define FCU_FAN_ABSENT_ID   -1

Definition at line 201 of file therm_pm72.c.

#define FCU_FAN_COUNT   ARRAY_SIZE(fcu_fans)

Definition at line 203 of file therm_pm72.c.

#define FCU_FAN_PWM   1

Definition at line 199 of file therm_pm72.c.

#define FCU_FAN_RPM   0

Definition at line 198 of file therm_pm72.c.

#define VERSION   "1.3"

Definition at line 135 of file therm_pm72.c.

Function Documentation

MODULE_AUTHOR ( "Benjamin Herrenschmidt <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Apple's PowerMac G5 thermal control )
MODULE_DEVICE_TABLE ( of  ,
fcu_match   
)
module_exit ( therm_pm72_exit  )
module_init ( therm_pm72_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct fcu_fan_table fcu_fans[]

Definition at line 205 of file therm_pm72.c.