Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
therm_windtunnel.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/i2c.h>
#include <linux/init.h>
#include <linux/kthread.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>

Go to the source code of this file.

Data Structures

struct  apple_thermal_info
 

Macros

#define LOG_TEMP   0 /* continuously log temperature */
 
#define T(x, y)   (((x)<<8) | (y)*0x100/10 )
 

Enumerations

enum  chip { ds1775, adm1030 }
 

Functions

 module_init (g4fan_init)
 
 module_exit (g4fan_exit)
 
 MODULE_AUTHOR ("Samuel Rydh <[email protected]>")
 
 MODULE_DESCRIPTION ("Apple G4 (windtunnel) fan controller")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LOG_TEMP   0 /* continuously log temperature */

Definition at line 47 of file therm_windtunnel.c.

#define T (   x,
  y 
)    (((x)<<8) | (y)*0x100/10 )

Definition at line 71 of file therm_windtunnel.c.

Enumeration Type Documentation

enum chip
Enumerator:
ds1775 
adm1030 

Definition at line 404 of file therm_windtunnel.c.

Function Documentation

MODULE_AUTHOR ( "Samuel Rydh <[email protected]>"  )
MODULE_DESCRIPTION ( "Apple G4 (windtunnel) fan controller )
module_exit ( g4fan_exit  )
module_init ( g4fan_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

int casetemp

Definition at line 62 of file therm_windtunnel.c.

int downind

Definition at line 65 of file therm_windtunnel.c.

Definition at line 57 of file therm_windtunnel.c.

int fan_down_setting

Definition at line 74 of file therm_windtunnel.c.

int fan_level

Definition at line 63 of file therm_windtunnel.c.

int fan_up_setting

Definition at line 76 of file therm_windtunnel.c.

struct mutex lock

Definition at line 53 of file therm_windtunnel.c.

Definition at line 54 of file therm_windtunnel.c.

int overheat_hyst

Definition at line 60 of file therm_windtunnel.c.

int overheat_temp

Definition at line 59 of file therm_windtunnel.c.

struct task_struct* poll_task

Definition at line 51 of file therm_windtunnel.c.

int r0

Definition at line 68 of file therm_windtunnel.c.

int r1

Definition at line 68 of file therm_windtunnel.c.

int r20

Definition at line 68 of file therm_windtunnel.c.

int r23

Definition at line 68 of file therm_windtunnel.c.

int r25

Definition at line 68 of file therm_windtunnel.c.

volatile int running

Definition at line 50 of file therm_windtunnel.c.

int temp

Definition at line 61 of file therm_windtunnel.c.

Definition at line 56 of file therm_windtunnel.c.

int upind

Definition at line 66 of file therm_windtunnel.c.