historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/roms/skiboot/external/opal-prd/i2c.h

15 lines
399 B
C
Raw Normal View History

2024-01-16 11:20:27 -06:00
#ifndef __I2C_H
#define __I2C_H
int i2c_read(uint32_t chip_id, uint8_t engine, uint8_t port,
uint16_t device, uint32_t offset_size, uint32_t offset,
uint32_t length, void* data);
int i2c_write(uint32_t chip_id, uint8_t engine, uint8_t port,
uint16_t device, uint32_t offset_size, uint32_t offset,
uint32_t length, void* data);
void i2c_init(void);
#endif /* __I2c_H */