coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smbus.h File Reference

Go to the source code of this file.

Macros

#define HOSTC   0x40
 
#define HOSTC_I2C_EN   (1 << 2)
 

Functions

int smbus_i2c_block_write (u8 addr, u8 bytes, u8 *buf)
 

Macro Definition Documentation

◆ HOSTC

#define HOSTC   0x40

Definition at line 7 of file smbus.h.

◆ HOSTC_I2C_EN

#define HOSTC_I2C_EN   (1 << 2)

Definition at line 8 of file smbus.h.

Function Documentation

◆ smbus_i2c_block_write()

int smbus_i2c_block_write ( u8  addr,
u8  bytes,
u8 buf 
)

Definition at line 13 of file smbus.c.

References addr, buf, do_i2c_block_write(), HOSTC, HOSTC_I2C_EN, PCI_BASE_ADDRESS_4, PCI_DEV, pci_read_config32(), pci_write_config32(), SMBUS_DEV, and SMBUS_FUNC.

Referenced by mainboard_configure_edp_bridge().

Here is the call graph for this function:
Here is the caller graph for this function: