Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
windfarm_smu_sat.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/wait.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <asm/prom.h>
#include <asm/smu.h>
#include <asm/pmac_low_i2c.h>
#include "windfarm.h"

Go to the source code of this file.

Data Structures

struct  wf_sat
 
struct  wf_sat_sensor
 

Macros

#define VERSION   "1.0"
 
#define DEBUG
 
#define DBG(args...)   printk(args)
 
#define MAX_AGE   msecs_to_jiffies(800)
 
#define wf_to_sat(c)   container_of(c, struct wf_sat_sensor, sens)
 

Functions

struct smu_sdbp_headersmu_sat_get_sdb_partition (unsigned int sat_id, int id, unsigned int *size)
 
 EXPORT_SYMBOL_GPL (smu_sat_get_sdb_partition)
 
 MODULE_DEVICE_TABLE (i2c, wf_sat_id)
 
 module_init (sat_sensors_init)
 
 module_exit (sat_sensors_exit)
 
 MODULE_AUTHOR ("Paul Mackerras <[email protected]>")
 
 MODULE_DESCRIPTION ("SMU satellite sensors for PowerMac thermal control")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DBG (   args...)    printk(args)

Definition at line 28 of file windfarm_smu_sat.c.

#define DEBUG

Definition at line 25 of file windfarm_smu_sat.c.

#define MAX_AGE   msecs_to_jiffies(800)

Definition at line 34 of file windfarm_smu_sat.c.

#define VERSION   "1.0"

Definition at line 23 of file windfarm_smu_sat.c.

#define wf_to_sat (   c)    container_of(c, struct wf_sat_sensor, sens)

Definition at line 58 of file windfarm_smu_sat.c.

Function Documentation

EXPORT_SYMBOL_GPL ( smu_sat_get_sdb_partition  )
MODULE_AUTHOR ( "Paul Mackerras <[email protected]>"  )
MODULE_DESCRIPTION ( "SMU satellite sensors for PowerMac thermal control )
MODULE_DEVICE_TABLE ( i2c  ,
wf_sat_id   
)
module_exit ( sat_sensors_exit  )
module_init ( sat_sensors_init  )
MODULE_LICENSE ( "GPL"  )
struct smu_sdbp_header* smu_sat_get_sdb_partition ( unsigned int  sat_id,
int  id,
unsigned int size 
)
read

Definition at line 60 of file windfarm_smu_sat.c.