MCPcopy Create free account
hub / github.com/coreboot/coreboot / i2c_read_raw

Function i2c_read_raw

src/include/device/i2c_simple.h:57–65  ·  view source on GitHub ↗

* Read a raw chunk of data in one segment and one frame. * * [start][slave addr][r][data][stop] */

Source from the content-addressed store, hash-verified

55 * [start][slave addr][r][data][stop]
56 */
57static inline int i2c_read_raw(unsigned int bus, uint8_t slave, uint8_t *data,
58 int len)
59{
60 struct i2c_msg seg = {
61 .flags = I2C_M_RD, .slave = slave, .buf = data, .len = len
62 };
63
64 return i2c_transfer(bus, &seg, 1);
65}
66
67/*
68 * Write a raw chunk of data in one segment and one frame.

Callers 5

starlabs_touchpad_wakeFunction · 0.85
iic_tpm_readFunction · 0.85
i2c_tis_sendrecvFunction · 0.85
cr50_i2c_readFunction · 0.85
google_chromeec_commandFunction · 0.85

Calls 1

i2c_transferFunction · 0.85

Tested by

no test coverage detected