Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
windfarm.h File Reference
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/device.h>

Go to the source code of this file.

Data Structures

struct  wf_control_ops
 
struct  wf_control
 
struct  wf_sensor_ops
 
struct  wf_sensor
 

Macros

#define FIX32TOPRINT(f)   (((s32)(f)) >> 16),(((((s32)(f)) & 0xffff) * 1000) >> 16)
 
#define WF_CONTROL_TYPE_GENERIC   0
 
#define WF_CONTROL_RPM_FAN   1
 
#define WF_CONTROL_PWM_FAN   2
 
#define WF_EVENT_NEW_CONTROL   0 /* param is wf_control * */
 
#define WF_EVENT_NEW_SENSOR   1 /* param is wf_sensor * */
 
#define WF_EVENT_OVERTEMP   2 /* no param */
 
#define WF_EVENT_NORMALTEMP   3 /* overtemp condition cleared */
 
#define WF_EVENT_TICK   4 /* 1 second tick */
 

Functions

int wf_register_control (struct wf_control *ct)
 
void wf_unregister_control (struct wf_control *ct)
 
struct wf_controlwf_find_control (const char *name)
 
int wf_get_control (struct wf_control *ct)
 
void wf_put_control (struct wf_control *ct)
 
int wf_register_sensor (struct wf_sensor *sr)
 
void wf_unregister_sensor (struct wf_sensor *sr)
 
struct wf_sensorwf_find_sensor (const char *name)
 
int wf_get_sensor (struct wf_sensor *sr)
 
void wf_put_sensor (struct wf_sensor *sr)
 
int wf_register_client (struct notifier_block *nb)
 
int wf_unregister_client (struct notifier_block *nb)
 
void wf_set_overtemp (void)
 
void wf_clear_overtemp (void)
 
int wf_is_overtemp (void)
 

Macro Definition Documentation

#define FIX32TOPRINT (   f)    (((s32)(f)) >> 16),(((((s32)(f)) & 0xffff) * 1000) >> 16)

Definition at line 20 of file windfarm.h.

#define WF_CONTROL_PWM_FAN   2

Definition at line 49 of file windfarm.h.

#define WF_CONTROL_RPM_FAN   1

Definition at line 48 of file windfarm.h.

#define WF_CONTROL_TYPE_GENERIC   0

Definition at line 47 of file windfarm.h.

#define WF_EVENT_NEW_CONTROL   0 /* param is wf_control * */

Definition at line 149 of file windfarm.h.

#define WF_EVENT_NEW_SENSOR   1 /* param is wf_sensor * */

Definition at line 150 of file windfarm.h.

#define WF_EVENT_NORMALTEMP   3 /* overtemp condition cleared */

Definition at line 152 of file windfarm.h.

#define WF_EVENT_OVERTEMP   2 /* no param */

Definition at line 151 of file windfarm.h.

#define WF_EVENT_TICK   4 /* 1 second tick */

Definition at line 153 of file windfarm.h.

Function Documentation

void wf_clear_overtemp ( void  )

Definition at line 460 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 ct)

Definition at line 211 of file windfarm_core.c.

int wf_register_sensor ( struct wf_sensor 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.