summaryrefslogtreecommitdiffstats
path: root/external/opal-prd/i2c.h
blob: d31bc0e9ed7deff59da5861b6f42107ee52fa19f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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 */
OpenPOWER on IntegriCloud