Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
windfarm_core.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/kthread.h>
#include <linux/jiffies.h>
#include <linux/reboot.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <linux/freezer.h>
#include <asm/prom.h>
#include "windfarm.h"

Go to the source code of this file.

Macros

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

Functions

int wf_critical_overtemp (void)
 
 EXPORT_SYMBOL_GPL (wf_critical_overtemp)
 
int wf_register_control (struct wf_control *new_ct)
 
 EXPORT_SYMBOL_GPL (wf_register_control)
 
void wf_unregister_control (struct wf_control *ct)
 
 EXPORT_SYMBOL_GPL (wf_unregister_control)
 
struct wf_controlwf_find_control (const char *name)
 
 EXPORT_SYMBOL_GPL (wf_find_control)
 
int wf_get_control (struct wf_control *ct)
 
 EXPORT_SYMBOL_GPL (wf_get_control)
 
void wf_put_control (struct wf_control *ct)
 
 EXPORT_SYMBOL_GPL (wf_put_control)
 
int wf_register_sensor (struct wf_sensor *new_sr)
 
 EXPORT_SYMBOL_GPL (wf_register_sensor)
 
void wf_unregister_sensor (struct wf_sensor *sr)
 
 EXPORT_SYMBOL_GPL (wf_unregister_sensor)
 
struct wf_sensorwf_find_sensor (const char *name)
 
 EXPORT_SYMBOL_GPL (wf_find_sensor)
 
int wf_get_sensor (struct wf_sensor *sr)
 
 EXPORT_SYMBOL_GPL (wf_get_sensor)
 
void wf_put_sensor (struct wf_sensor *sr)
 
 EXPORT_SYMBOL_GPL (wf_put_sensor)
 
int wf_register_client (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (wf_register_client)
 
int wf_unregister_client (struct notifier_block *nb)
 
 EXPORT_SYMBOL_GPL (wf_unregister_client)
 
void wf_set_overtemp (void)
 
 EXPORT_SYMBOL_GPL (wf_set_overtemp)
 
void wf_clear_overtemp (void)
 
 EXPORT_SYMBOL_GPL (wf_clear_overtemp)
 
int wf_is_overtemp (void)
 
 EXPORT_SYMBOL_GPL (wf_is_overtemp)
 
 module_init (windfarm_core_init)
 
 module_exit (windfarm_core_exit)
 
 MODULE_AUTHOR ("Benjamin Herrenschmidt <[email protected]>")
 
 MODULE_DESCRIPTION ("Core component of PowerMac thermal control")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct task_structwf_thread
 

Macro Definition Documentation

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

Definition at line 50 of file windfarm_core.c.

#define VERSION   "0.2"

Definition at line 43 of file windfarm_core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( wf_critical_overtemp  )
EXPORT_SYMBOL_GPL ( wf_register_control  )
EXPORT_SYMBOL_GPL ( wf_unregister_control  )
EXPORT_SYMBOL_GPL ( wf_find_control  )
EXPORT_SYMBOL_GPL ( wf_get_control  )
EXPORT_SYMBOL_GPL ( wf_put_control  )
EXPORT_SYMBOL_GPL ( wf_register_sensor  )
EXPORT_SYMBOL_GPL ( wf_unregister_sensor  )
EXPORT_SYMBOL_GPL ( wf_find_sensor  )
EXPORT_SYMBOL_GPL ( wf_get_sensor  )
EXPORT_SYMBOL_GPL ( wf_put_sensor  )
EXPORT_SYMBOL_GPL ( wf_register_client  )
EXPORT_SYMBOL_GPL ( wf_unregister_client  )
EXPORT_SYMBOL_GPL ( wf_set_overtemp  )
EXPORT_SYMBOL_GPL ( wf_clear_overtemp  )
EXPORT_SYMBOL_GPL ( wf_is_overtemp  )
MODULE_AUTHOR ( "Benjamin Herrenschmidt <[email protected]>"  )
MODULE_DESCRIPTION ( "Core component of PowerMac thermal control )
module_exit ( windfarm_core_exit  )
module_init ( windfarm_core_init  )
MODULE_LICENSE ( "GPL"  )
void wf_clear_overtemp ( void  )

Definition at line 460 of file windfarm_core.c.

int wf_critical_overtemp ( void  )

Definition at line 75 of file windfarm_core.c.

struct wf_control* wf_find_control ( const char name)
read

Definition at line 258 of file windfarm_core.c.

struct wf_sensor* wf_find_sensor ( const char name)
read

Definition at line 371 of file windfarm_core.c.

int wf_get_control ( struct wf_control ct)

Definition at line 276 of file windfarm_core.c.

int wf_get_sensor ( struct wf_sensor sr)

Definition at line 389 of file windfarm_core.c.

int wf_is_overtemp ( void  )

Definition at line 477 of file windfarm_core.c.

void wf_put_control ( struct wf_control ct)

Definition at line 285 of file windfarm_core.c.

void wf_put_sensor ( struct wf_sensor sr)

Definition at line 398 of file windfarm_core.c.

int wf_register_client ( struct notifier_block nb)

Definition at line 411 of file windfarm_core.c.

int wf_register_control ( struct wf_control new_ct)

Definition at line 211 of file windfarm_core.c.

int wf_register_sensor ( struct wf_sensor new_sr)

Definition at line 324 of file windfarm_core.c.

void wf_set_overtemp ( void  )

Definition at line 447 of file windfarm_core.c.

int wf_unregister_client ( struct notifier_block nb)

Definition at line 434 of file windfarm_core.c.

void wf_unregister_control ( struct wf_control ct)

Definition at line 246 of file windfarm_core.c.

void wf_unregister_sensor ( struct wf_sensor sr)

Definition at line 359 of file windfarm_core.c.

Variable Documentation

struct task_struct* wf_thread

Definition at line 60 of file windfarm_core.c.