Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
i2c-bfin-twi.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/mm.h>
#include <linux/timer.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <asm/blackfin.h>
#include <asm/portmux.h>
#include <asm/irq.h>
#include <asm/bfin_twi.h>

Go to the source code of this file.

Macros

#define TWI_I2C_MODE_STANDARD   1
 
#define TWI_I2C_MODE_STANDARDSUB   2
 
#define TWI_I2C_MODE_COMBINED   3
 
#define TWI_I2C_MODE_REPEAT   4
 

Functions

int bfin_twi_do_smbus_xfer (struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data)
 
int bfin_twi_smbus_xfer (struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data)
 
 subsys_initcall (i2c_bfin_twi_init)
 
 module_exit (i2c_bfin_twi_exit)
 
 MODULE_AUTHOR ("Bryan Wu, Sonic Zhang")
 
 MODULE_DESCRIPTION ("Blackfin BF5xx on-chip I2C TWI Contoller Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:i2c-bfin-twi")
 

Macro Definition Documentation

#define TWI_I2C_MODE_COMBINED   3

Definition at line 33 of file i2c-bfin-twi.c.

#define TWI_I2C_MODE_REPEAT   4

Definition at line 34 of file i2c-bfin-twi.c.

#define TWI_I2C_MODE_STANDARD   1

Definition at line 31 of file i2c-bfin-twi.c.

#define TWI_I2C_MODE_STANDARDSUB   2

Definition at line 32 of file i2c-bfin-twi.c.

Function Documentation

int bfin_twi_do_smbus_xfer ( struct i2c_adapter adap,
u16  addr,
unsigned short  flags,
char  read_write,
u8  command,
int  size,
union i2c_smbus_data data 
)

Definition at line 355 of file i2c-bfin-twi.c.

int bfin_twi_smbus_xfer ( struct i2c_adapter adap,
u16  addr,
unsigned short  flags,
char  read_write,
u8  command,
int  size,
union i2c_smbus_data data 
)

Definition at line 553 of file i2c-bfin-twi.c.

MODULE_ALIAS ( "platform:i2c-bfin-twi"  )
MODULE_AUTHOR ( "Bryan  Wu,
Sonic Zhang"   
)
MODULE_DESCRIPTION ( "Blackfin BF5xx on-chip I2C TWI Contoller Driver"  )
module_exit ( i2c_bfin_twi_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( i2c_bfin_twi_init  )