Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
windfarm_pm81.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/spinlock.h>
#include <linux/wait.h>
#include <linux/kmod.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/io.h>
#include <asm/sections.h>
#include <asm/smu.h>
#include "windfarm.h"
#include "windfarm_pid.h"

Go to the source code of this file.

Data Structures

struct  wf_smu_sys_fans_param
 
struct  wf_smu_sys_fans_state
 
struct  wf_smu_cpu_fans_state
 

Macros

#define VERSION   "0.4"
 
#define DBG(args...)   do { } while(0)
 
#define FAILURE_FAN   0x01
 
#define FAILURE_SENSOR   0x02
 
#define FAILURE_OVERTEMP   0x04
 
#define WF_SMU_SYS_FANS_INTERVAL   5
 
#define WF_SMU_SYS_FANS_HISTORY_SIZE   2
 
#define WF_SMU_SYS_FANS_NUM_CONFIGS   ARRAY_SIZE(wf_smu_sys_all_params)
 
#define WF_SMU_CPU_FANS_INTERVAL   1
 
#define WF_SMU_CPU_FANS_MAX_HISTORY   16
 
#define WF_SMU_CPU_FANS_SIBLING_SCALE   0x00001000
 
#define WF_SMU_CPU_FANS_SIBLING_OFFSET   0xfffffb50
 

Functions

 module_init (wf_smu_init)
 
 module_exit (wf_smu_exit)
 
 MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>")
 
 MODULE_DESCRIPTION ("Thermal control logic for iMac G5")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:windfarm")
 

Macro Definition Documentation

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

Definition at line 123 of file windfarm_pm81.c.

#define FAILURE_FAN   0x01

Definition at line 146 of file windfarm_pm81.c.

#define FAILURE_OVERTEMP   0x04

Definition at line 148 of file windfarm_pm81.c.

#define FAILURE_SENSOR   0x02

Definition at line 147 of file windfarm_pm81.c.

#define VERSION   "0.4"

Definition at line 116 of file windfarm_pm81.c.

#define WF_SMU_CPU_FANS_INTERVAL   1

Definition at line 240 of file windfarm_pm81.c.

#define WF_SMU_CPU_FANS_MAX_HISTORY   16

Definition at line 241 of file windfarm_pm81.c.

#define WF_SMU_CPU_FANS_SIBLING_OFFSET   0xfffffb50

Definition at line 243 of file windfarm_pm81.c.

#define WF_SMU_CPU_FANS_SIBLING_SCALE   0x00001000

Definition at line 242 of file windfarm_pm81.c.

#define WF_SMU_SYS_FANS_HISTORY_SIZE   2

Definition at line 174 of file windfarm_pm81.c.

#define WF_SMU_SYS_FANS_INTERVAL   5

Definition at line 173 of file windfarm_pm81.c.

#define WF_SMU_SYS_FANS_NUM_CONFIGS   ARRAY_SIZE(wf_smu_sys_all_params)

Definition at line 230 of file windfarm_pm81.c.

Function Documentation

MODULE_ALIAS ( "platform:windfarm"  )
MODULE_AUTHOR ( "Benjamin Herrenschmidt <[email protected]>"  )
MODULE_DESCRIPTION ( "Thermal control logic for iMac G5"  )
module_exit ( wf_smu_exit  )
module_init ( wf_smu_init  )
MODULE_LICENSE ( "GPL"  )