Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / cris / arch-v10 / drivers / i2c.h
blobde45c1ffbd7b7ac8bab12ce8aa43397ecd9f48e9
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* i2c.h */
3 int i2c_init(void);
5 /* High level I2C actions */
6 int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue);
7 unsigned char i2c_readreg(unsigned char theSlave, unsigned char theReg);
9 /* Low level I2C */
10 void i2c_start(void);
11 void i2c_stop(void);
12 void i2c_outbyte(unsigned char x);
13 unsigned char i2c_inbyte(void);
14 int i2c_getack(void);
15 void i2c_sendack(void);