[brcm63xx] Add wps button on alice gate
[openwrt.git] / target / linux / etrax / files / arch / cris / arch-v10 / drivers / i2c_gvc.h
1 #ifndef _I2C_H
2 #define _I2C_H
3
4 int i2c_init(void);
5
6 /* High level I2C actions */
7 int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue);
8 unsigned char i2c_readreg(unsigned char theSlave, unsigned char theReg);
9
10 /* Low level I2C */
11 int i2c_start(void);
12 int i2c_stop(void);
13 int i2c_outbyte(unsigned char x);
14 unsigned char i2c_inbyte(void);
15 int i2c_getack(void);
16 void i2c_sendack(void);
17 void i2c_sendnack(void);
18
19 /**GVC**/
20 /* New low level I2C functions */
21 int i2c_read( unsigned char slave, unsigned char* rbuf, unsigned char rlen );
22 int i2c_write( unsigned char slave, unsigned char* wbuf, unsigned char wlen );
23 int i2c_writeread( unsigned char slave
24 , unsigned char* wbuf
25 , unsigned char wlen
26 , unsigned char* rbuf
27 , unsigned char rlen
28 );
29 /**END GVC**/
30 #endif /* _I2C_H */
This page took 0.053271 seconds and 5 git commands to generate.