coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
smbus.c File Reference
#include <soc/iomap.h>
#include <soc/pci_devs.h>
#include <device/pci_def.h>
#include <device/pci_type.h>
#include <device/pci_ops.h>
#include <device/smbus_host.h>
#include <soc/smbus.h>
Include dependency graph for smbus.c:

Go to the source code of this file.

Macros

#define __SIMPLE_DEVICE__
 

Functions

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

Macro Definition Documentation

◆ __SIMPLE_DEVICE__

#define __SIMPLE_DEVICE__

Definition at line 3 of file smbus.c.

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: