coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
i2c.h File Reference
#include <stdint.h>
Include dependency graph for i2c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  i2c_msg
 struct i2c_msg - an I2C transaction segment beginning with START @addr: Slave address, either seven or ten bits. More...
 

Macros

#define I2C_M_RD   0x0001 /* read data, from slave to master */
 
#define I2C_M_TEN   0x0010 /* this is a ten bit chip address */
 
#define I2C_M_RECV_LEN   0x0400 /* length will be first received byte */
 
#define I2C_M_NOSTART   0x4000 /* don't send a repeated START */
 

Enumerations

enum  i2c_speed {
  I2C_SPEED_STANDARD = 100000 , I2C_SPEED_FAST = 400000 , I2C_SPEED_FAST_PLUS = 1000000 , I2C_SPEED_HIGH = 3400000 ,
  I2C_SPEED_FAST_ULTRA = 5000000
}
 
enum  i2c_address_mode { I2C_MODE_7_BIT , I2C_MODE_10_BIT }
 

Macro Definition Documentation

◆ I2C_M_NOSTART

#define I2C_M_NOSTART   0x4000 /* don't send a repeated START */

Definition at line 37 of file i2c.h.

◆ I2C_M_RD

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

Definition at line 34 of file i2c.h.

◆ I2C_M_RECV_LEN

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

Definition at line 36 of file i2c.h.

◆ I2C_M_TEN

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

Definition at line 35 of file i2c.h.

Enumeration Type Documentation

◆ i2c_address_mode

Enumerator
I2C_MODE_7_BIT 
I2C_MODE_10_BIT 

Definition at line 51 of file i2c.h.

◆ i2c_speed

enum i2c_speed
Enumerator
I2C_SPEED_STANDARD 
I2C_SPEED_FAST 
I2C_SPEED_FAST_PLUS 
I2C_SPEED_HIGH 
I2C_SPEED_FAST_ULTRA 

Definition at line 43 of file i2c.h.