Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
windfarm_fcu_controls.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/wait.h>
#include <linux/i2c.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/sections.h>
#include "windfarm.h"
#include "windfarm_mpu.h"

Go to the source code of this file.

Data Structures

struct  wf_fcu_priv
 
struct  wf_fcu_fan
 

Macros

#define VERSION   "1.0"
 
#define DBG(args...)   do { } while(0)
 
#define RPM_PID_USE_ACTUAL_SPEED   0
 
#define CPU_PUMP_OUTPUT_MAX   3200
 
#define CPU_PUMP_OUTPUT_MIN   1250
 
#define FCU_FAN_RPM   0
 
#define FCU_FAN_PWM   1
 

Functions

 MODULE_DEVICE_TABLE (i2c, wf_fcu_id)
 
 module_init (wf_fcu_init)
 
 module_exit (wf_fcu_exit)
 
 MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>")
 
 MODULE_DESCRIPTION ("FCU control objects for PowerMacs thermal control")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CPU_PUMP_OUTPUT_MAX   3200

Definition at line 50 of file windfarm_fcu_controls.c.

#define CPU_PUMP_OUTPUT_MIN   1250

Definition at line 51 of file windfarm_fcu_controls.c.

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

Definition at line 31 of file windfarm_fcu_controls.c.

#define FCU_FAN_PWM   1

Definition at line 54 of file windfarm_fcu_controls.c.

#define FCU_FAN_RPM   0

Definition at line 53 of file windfarm_fcu_controls.c.

#define RPM_PID_USE_ACTUAL_SPEED   0

Definition at line 47 of file windfarm_fcu_controls.c.

#define VERSION   "1.0"

Definition at line 26 of file windfarm_fcu_controls.c.

Function Documentation

MODULE_AUTHOR ( "Benjamin Herrenschmidt <[email protected]>"  )
MODULE_DESCRIPTION ( "FCU control objects for PowerMacs thermal control )
MODULE_DEVICE_TABLE ( i2c  ,
wf_fcu_id   
)
module_exit ( wf_fcu_exit  )
module_init ( wf_fcu_init  )
MODULE_LICENSE ( "GPL"  )