Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
windfarm_pm121.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  pm121_correction
 
struct  pm121_connection
 
struct  pm121_sys_param
 
struct  pm121_sys_state
 
struct  pm121_cpu_state
 

Macros

#define VERSION   "0.3"
 
#define PM121_NUM_CONFIGS   2
 
#define PM121_SYS_GD   0x00000000
 
#define PM121_SYS_GR   0x00019999
 
#define PM121_SYS_HISTORY_SIZE   2
 
#define PM121_SYS_INTERVAL   5
 
#define PM121_CPU_INTERVAL   1
 

Enumerations

enum  {
  FAN_CPU, FAN_HD, FAN_OD, CPUFREQ,
  N_CONTROLS
}
 
enum  { FAILURE_FAN = 1 << 0, FAILURE_SENSOR = 1 << 1, FAILURE_OVERTEMP = 1 << 2 }
 
enum  {
  LOOP_GPU, LOOP_HD, LOOP_KODIAK, LOOP_OD,
  N_LOOPS
}
 

Functions

 module_init (pm121_init)
 
 module_exit (pm121_exit)
 
 MODULE_AUTHOR ("Étienne Bersac <[email protected]>")
 
 MODULE_DESCRIPTION ("Thermal control logic for iMac G5 (iSight)")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct pm121_sys_statepm121_sys_state [N_LOOPS] = {}
 

Macro Definition Documentation

#define PM121_CPU_INTERVAL   1

Definition at line 452 of file windfarm_pm121.c.

#define PM121_NUM_CONFIGS   2

Definition at line 275 of file windfarm_pm121.c.

#define PM121_SYS_GD   0x00000000

Definition at line 432 of file windfarm_pm121.c.

#define PM121_SYS_GR   0x00019999

Definition at line 433 of file windfarm_pm121.c.

#define PM121_SYS_HISTORY_SIZE   2

Definition at line 434 of file windfarm_pm121.c.

#define PM121_SYS_INTERVAL   5

Definition at line 435 of file windfarm_pm121.c.

#define VERSION   "0.3"

Definition at line 224 of file windfarm_pm121.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
FAN_CPU 
FAN_HD 
FAN_OD 
CPUFREQ 
N_CONTROLS 

Definition at line 239 of file windfarm_pm121.c.

anonymous enum
Enumerator:
FAILURE_FAN 
FAILURE_SENSOR 
FAILURE_OVERTEMP 

Definition at line 251 of file windfarm_pm121.c.

anonymous enum
Enumerator:
LOOP_GPU 
LOOP_HD 
LOOP_KODIAK 
LOOP_OD 
N_LOOPS 

Definition at line 259 of file windfarm_pm121.c.

Function Documentation

MODULE_AUTHOR ( "Étienne Bersac <[email protected]>"  )
MODULE_DESCRIPTION ( "Thermal control logic for iMac G5 (iSight)"  )
module_exit ( pm121_exit  )
module_init ( pm121_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

Definition at line 445 of file windfarm_pm121.c.