Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
bbc_i2c.h File Reference
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/list.h>

Go to the source code of this file.

Data Structures

struct  bbc_i2c_client
 
struct  bbc_cpu_temperature
 
struct  bbc_fan_control
 
struct  bbc_i2c_bus
 

Macros

#define FAN_AMBIENT   0
 
#define FAN_CPU   1
 
#define NUM_CHILDREN   8
 

Enumerations

enum  fan_action {
  FAN_SLOWER, FAN_SAME, FAN_FASTER, FAN_FULLBLAST,
  FAN_STATE_MAX
}
 

Functions

struct platform_devicebbc_i2c_getdev (struct bbc_i2c_bus *, int)
 
struct bbc_i2c_clientbbc_i2c_attach (struct bbc_i2c_bus *bp, struct platform_device *)
 
void bbc_i2c_detach (struct bbc_i2c_client *)
 
int bbc_i2c_writeb (struct bbc_i2c_client *, unsigned char val, int off)
 
int bbc_i2c_readb (struct bbc_i2c_client *, unsigned char *byte, int off)
 
int bbc_i2c_write_buf (struct bbc_i2c_client *, char *buf, int len, int off)
 
int bbc_i2c_read_buf (struct bbc_i2c_client *, char *buf, int len, int off)
 

Macro Definition Documentation

#define FAN_AMBIENT   0

Definition at line 35 of file bbc_i2c.h.

#define FAN_CPU   1

Definition at line 36 of file bbc_i2c.h.

#define NUM_CHILDREN   8

Definition at line 51 of file bbc_i2c.h.

Enumeration Type Documentation

enum fan_action
Enumerator:
FAN_SLOWER 
FAN_SAME 
FAN_FASTER 
FAN_FULLBLAST 
FAN_STATE_MAX 

Definition at line 15 of file bbc_i2c.h.

Function Documentation

struct bbc_i2c_client* bbc_i2c_attach ( struct bbc_i2c_bus bp,
struct platform_device  
)
read

Definition at line 89 of file bbc_i2c.c.

void bbc_i2c_detach ( struct bbc_i2c_client )

Definition at line 114 of file bbc_i2c.c.

struct platform_device* bbc_i2c_getdev ( struct bbc_i2c_bus ,
int   
)
read

Definition at line 69 of file bbc_i2c.c.

int bbc_i2c_read_buf ( struct bbc_i2c_client ,
char buf,
int  len,
int  off 
)

Definition at line 246 of file bbc_i2c.c.

int bbc_i2c_readb ( struct bbc_i2c_client ,
unsigned char byte,
int  off 
)

Definition at line 181 of file bbc_i2c.c.

int bbc_i2c_write_buf ( struct bbc_i2c_client ,
char buf,
int  len,
int  off 
)

Definition at line 230 of file bbc_i2c.c.

int bbc_i2c_writeb ( struct bbc_i2c_client ,
unsigned char  val,
int  off 
)

Definition at line 150 of file bbc_i2c.c.