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

Go to the source code of this file.

Data Structures

struct  i2c_msg
 
union  i2c_smbus_data
 

Macros

#define I2C_M_TEN   0x0010 /* this is a ten bit chip address */
 
#define I2C_M_RD   0x0001 /* read data, from slave to master */
 
#define I2C_M_STOP   0x8000 /* if I2C_FUNC_PROTOCOL_MANGLING */
 
#define I2C_M_NOSTART   0x4000 /* if I2C_FUNC_NOSTART */
 
#define I2C_M_REV_DIR_ADDR   0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */
 
#define I2C_M_IGNORE_NAK   0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */
 
#define I2C_M_NO_RD_ACK   0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */
 
#define I2C_M_RECV_LEN   0x0400 /* length will be first received byte */
 
#define I2C_FUNC_I2C   0x00000001
 
#define I2C_FUNC_10BIT_ADDR   0x00000002
 
#define I2C_FUNC_PROTOCOL_MANGLING   0x00000004 /* I2C_M_IGNORE_NAK etc. */
 
#define I2C_FUNC_SMBUS_PEC   0x00000008
 
#define I2C_FUNC_NOSTART   0x00000010 /* I2C_M_NOSTART */
 
#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL   0x00008000 /* SMBus 2.0 */
 
#define I2C_FUNC_SMBUS_QUICK   0x00010000
 
#define I2C_FUNC_SMBUS_READ_BYTE   0x00020000
 
#define I2C_FUNC_SMBUS_WRITE_BYTE   0x00040000
 
#define I2C_FUNC_SMBUS_READ_BYTE_DATA   0x00080000
 
#define I2C_FUNC_SMBUS_WRITE_BYTE_DATA   0x00100000
 
#define I2C_FUNC_SMBUS_READ_WORD_DATA   0x00200000
 
#define I2C_FUNC_SMBUS_WRITE_WORD_DATA   0x00400000
 
#define I2C_FUNC_SMBUS_PROC_CALL   0x00800000
 
#define I2C_FUNC_SMBUS_READ_BLOCK_DATA   0x01000000
 
#define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA   0x02000000
 
#define I2C_FUNC_SMBUS_READ_I2C_BLOCK   0x04000000 /* I2C-like block xfer */
 
#define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK   0x08000000 /* w/ 1-byte reg. addr. */
 
#define I2C_FUNC_SMBUS_BYTE
 
#define I2C_FUNC_SMBUS_BYTE_DATA
 
#define I2C_FUNC_SMBUS_WORD_DATA
 
#define I2C_FUNC_SMBUS_BLOCK_DATA
 
#define I2C_FUNC_SMBUS_I2C_BLOCK
 
#define I2C_FUNC_SMBUS_EMUL
 
#define I2C_SMBUS_BLOCK_MAX   32 /* As specified in SMBus standard */
 
#define I2C_SMBUS_READ   1
 
#define I2C_SMBUS_WRITE   0
 
#define I2C_SMBUS_QUICK   0
 
#define I2C_SMBUS_BYTE   1
 
#define I2C_SMBUS_BYTE_DATA   2
 
#define I2C_SMBUS_WORD_DATA   3
 
#define I2C_SMBUS_PROC_CALL   4
 
#define I2C_SMBUS_BLOCK_DATA   5
 
#define I2C_SMBUS_I2C_BLOCK_BROKEN   6
 
#define I2C_SMBUS_BLOCK_PROC_CALL   7 /* SMBus 2.0 */
 
#define I2C_SMBUS_I2C_BLOCK_DATA   8
 

Macro Definition Documentation

#define I2C_FUNC_10BIT_ADDR   0x00000002

Definition at line 86 of file i2c.h.

#define I2C_FUNC_I2C   0x00000001

Definition at line 85 of file i2c.h.

#define I2C_FUNC_NOSTART   0x00000010 /* I2C_M_NOSTART */

Definition at line 89 of file i2c.h.

#define I2C_FUNC_PROTOCOL_MANGLING   0x00000004 /* I2C_M_IGNORE_NAK etc. */

Definition at line 87 of file i2c.h.

#define I2C_FUNC_SMBUS_BLOCK_DATA
Value:
I2C_FUNC_SMBUS_WRITE_BLOCK_DATA)

Definition at line 110 of file i2c.h.

#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL   0x00008000 /* SMBus 2.0 */

Definition at line 90 of file i2c.h.

#define I2C_FUNC_SMBUS_BYTE
Value:
I2C_FUNC_SMBUS_WRITE_BYTE)

Definition at line 104 of file i2c.h.

#define I2C_FUNC_SMBUS_BYTE_DATA
Value:
I2C_FUNC_SMBUS_WRITE_BYTE_DATA)

Definition at line 106 of file i2c.h.

#define I2C_FUNC_SMBUS_EMUL
Value:
I2C_FUNC_SMBUS_BYTE | \
I2C_FUNC_SMBUS_BYTE_DATA | \
I2C_FUNC_SMBUS_WORD_DATA | \
I2C_FUNC_SMBUS_PROC_CALL | \
I2C_FUNC_SMBUS_WRITE_BLOCK_DATA | \
I2C_FUNC_SMBUS_I2C_BLOCK | \
I2C_FUNC_SMBUS_PEC)

Definition at line 115 of file i2c.h.

#define I2C_FUNC_SMBUS_I2C_BLOCK
Value:
I2C_FUNC_SMBUS_WRITE_I2C_BLOCK)

Definition at line 112 of file i2c.h.

#define I2C_FUNC_SMBUS_PEC   0x00000008

Definition at line 88 of file i2c.h.

#define I2C_FUNC_SMBUS_PROC_CALL   0x00800000

Definition at line 98 of file i2c.h.

#define I2C_FUNC_SMBUS_QUICK   0x00010000

Definition at line 91 of file i2c.h.

#define I2C_FUNC_SMBUS_READ_BLOCK_DATA   0x01000000

Definition at line 99 of file i2c.h.

#define I2C_FUNC_SMBUS_READ_BYTE   0x00020000

Definition at line 92 of file i2c.h.

#define I2C_FUNC_SMBUS_READ_BYTE_DATA   0x00080000

Definition at line 94 of file i2c.h.

#define I2C_FUNC_SMBUS_READ_I2C_BLOCK   0x04000000 /* I2C-like block xfer */

Definition at line 101 of file i2c.h.

#define I2C_FUNC_SMBUS_READ_WORD_DATA   0x00200000

Definition at line 96 of file i2c.h.

#define I2C_FUNC_SMBUS_WORD_DATA
Value:
I2C_FUNC_SMBUS_WRITE_WORD_DATA)

Definition at line 108 of file i2c.h.

#define I2C_FUNC_SMBUS_WRITE_BLOCK_DATA   0x02000000

Definition at line 100 of file i2c.h.

#define I2C_FUNC_SMBUS_WRITE_BYTE   0x00040000

Definition at line 93 of file i2c.h.

#define I2C_FUNC_SMBUS_WRITE_BYTE_DATA   0x00100000

Definition at line 95 of file i2c.h.

#define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK   0x08000000 /* w/ 1-byte reg. addr. */

Definition at line 102 of file i2c.h.

#define I2C_FUNC_SMBUS_WRITE_WORD_DATA   0x00400000

Definition at line 97 of file i2c.h.

#define I2C_M_IGNORE_NAK   0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 76 of file i2c.h.

#define I2C_M_NO_RD_ACK   0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 77 of file i2c.h.

#define I2C_M_NOSTART   0x4000 /* if I2C_FUNC_NOSTART */

Definition at line 74 of file i2c.h.

#define I2C_M_RD   0x0001 /* read data, from slave to master */

Definition at line 72 of file i2c.h.

#define I2C_M_RECV_LEN   0x0400 /* length will be first received byte */

Definition at line 78 of file i2c.h.

#define I2C_M_REV_DIR_ADDR   0x2000 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 75 of file i2c.h.

#define I2C_M_STOP   0x8000 /* if I2C_FUNC_PROTOCOL_MANGLING */

Definition at line 73 of file i2c.h.

#define I2C_M_TEN   0x0010 /* this is a ten bit chip address */

Definition at line 71 of file i2c.h.

#define I2C_SMBUS_BLOCK_DATA   5

Definition at line 146 of file i2c.h.

#define I2C_SMBUS_BLOCK_MAX   32 /* As specified in SMBus standard */

Definition at line 127 of file i2c.h.

#define I2C_SMBUS_BLOCK_PROC_CALL   7 /* SMBus 2.0 */

Definition at line 148 of file i2c.h.

#define I2C_SMBUS_BYTE   1

Definition at line 142 of file i2c.h.

#define I2C_SMBUS_BYTE_DATA   2

Definition at line 143 of file i2c.h.

#define I2C_SMBUS_I2C_BLOCK_BROKEN   6

Definition at line 147 of file i2c.h.

#define I2C_SMBUS_I2C_BLOCK_DATA   8

Definition at line 149 of file i2c.h.

#define I2C_SMBUS_PROC_CALL   4

Definition at line 145 of file i2c.h.

#define I2C_SMBUS_QUICK   0

Definition at line 141 of file i2c.h.

#define I2C_SMBUS_READ   1

Definition at line 136 of file i2c.h.

#define I2C_SMBUS_WORD_DATA   3

Definition at line 144 of file i2c.h.

#define I2C_SMBUS_WRITE   0

Definition at line 137 of file i2c.h.