Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
via_i2c.c File Reference
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/via-core.h>
#include <linux/via_i2c.h>

Go to the source code of this file.

Macros

#define VIAFB_NUM_I2C   5
 

Functions

int viafb_i2c_readbyte (u8 adap, u8 slave_addr, u8 index, u8 *pdata)
 
int viafb_i2c_writebyte (u8 adap, u8 slave_addr, u8 index, u8 data)
 
int viafb_i2c_readbytes (u8 adap, u8 slave_addr, u8 index, u8 *buff, int buff_len)
 
struct i2c_adapterviafb_find_i2c_adapter (enum viafb_i2c_adap which)
 
 EXPORT_SYMBOL_GPL (viafb_find_i2c_adapter)
 
int viafb_i2c_init (void)
 
void viafb_i2c_exit (void)
 

Macro Definition Documentation

#define VIAFB_NUM_I2C   5

Definition at line 33 of file via_i2c.c.

Function Documentation

EXPORT_SYMBOL_GPL ( viafb_find_i2c_adapter  )
struct i2c_adapter* viafb_find_i2c_adapter ( enum viafb_i2c_adap  which)
read

Definition at line 193 of file via_i2c.c.

void viafb_i2c_exit ( void  )

Definition at line 292 of file via_i2c.c.

int viafb_i2c_init ( void  )

Definition at line 287 of file via_i2c.c.

int viafb_i2c_readbyte ( u8  adap,
u8  slave_addr,
u8  index,
u8 pdata 
)

Definition at line 121 of file via_i2c.c.

int viafb_i2c_readbytes ( u8  adap,
u8  slave_addr,
u8  index,
u8 buff,
int  buff_len 
)

Definition at line 166 of file via_i2c.c.

int viafb_i2c_writebyte ( u8  adap,
u8  slave_addr,
u8  index,
u8  data 
)

Definition at line 145 of file via_i2c.c.