Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mxl111sf-i2c.c File Reference
#include "mxl111sf-i2c.h"
#include "mxl111sf.h"

Go to the source code of this file.

Macros

#define SW_I2C_ADDR   0x1a
 
#define SW_I2C_EN   0x02
 
#define SW_SCL_OUT   0x04
 
#define SW_SDA_OUT   0x08
 
#define SW_SDA_IN   0x04
 
#define SW_I2C_BUSY_ADDR   0x2f
 
#define SW_I2C_BUSY   0x02
 
#define USB_WRITE_I2C_CMD   0x99
 
#define USB_READ_I2C_CMD   0xdd
 
#define USB_END_I2C_CMD   0xfe
 
#define USB_WRITE_I2C_CMD_LEN   26
 
#define USB_READ_I2C_CMD_LEN   24
 
#define I2C_MUX_REG   0x30
 
#define I2C_CONTROL_REG   0x00
 
#define I2C_SLAVE_ADDR_REG   0x08
 
#define I2C_DATA_REG   0x0c
 
#define I2C_INT_STATUS_REG   0x10
 
#define HWI2C400   1
 

Functions

int mxl111sf_i2c_xfer (struct i2c_adapter *adap, struct i2c_msg msg[], int num)
 

Macro Definition Documentation

#define HWI2C400   1

Definition at line 439 of file mxl111sf-i2c.c.

#define I2C_CONTROL_REG   0x00

Definition at line 315 of file mxl111sf-i2c.c.

#define I2C_DATA_REG   0x0c

Definition at line 317 of file mxl111sf-i2c.c.

#define I2C_INT_STATUS_REG   0x10

Definition at line 318 of file mxl111sf-i2c.c.

#define I2C_MUX_REG   0x30

Definition at line 314 of file mxl111sf-i2c.c.

#define I2C_SLAVE_ADDR_REG   0x08

Definition at line 316 of file mxl111sf-i2c.c.

#define SW_I2C_ADDR   0x1a

Definition at line 26 of file mxl111sf-i2c.c.

#define SW_I2C_BUSY   0x02

Definition at line 33 of file mxl111sf-i2c.c.

#define SW_I2C_BUSY_ADDR   0x2f

Definition at line 32 of file mxl111sf-i2c.c.

#define SW_I2C_EN   0x02

Definition at line 27 of file mxl111sf-i2c.c.

#define SW_SCL_OUT   0x04

Definition at line 28 of file mxl111sf-i2c.c.

#define SW_SDA_IN   0x04

Definition at line 30 of file mxl111sf-i2c.c.

#define SW_SDA_OUT   0x08

Definition at line 29 of file mxl111sf-i2c.c.

#define USB_END_I2C_CMD   0xfe

Definition at line 309 of file mxl111sf-i2c.c.

#define USB_READ_I2C_CMD   0xdd

Definition at line 308 of file mxl111sf-i2c.c.

#define USB_READ_I2C_CMD_LEN   24

Definition at line 312 of file mxl111sf-i2c.c.

#define USB_WRITE_I2C_CMD   0x99

Definition at line 307 of file mxl111sf-i2c.c.

#define USB_WRITE_I2C_CMD_LEN   26

Definition at line 311 of file mxl111sf-i2c.c.

Function Documentation

int mxl111sf_i2c_xfer ( struct i2c_adapter adap,
struct i2c_msg  msg[],
int  num 
)

Definition at line 814 of file mxl111sf-i2c.c.