summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h
diff options
context:
space:
mode:
authorKevin2014-11-15 09:58:27 +0800
committerKevin2014-11-15 09:58:27 +0800
commit392e8802486cb573b916e746010e141a75f507e6 (patch)
tree50029aca02c81f087b90336e670b44e510782330 /ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h
downloadFOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.tar.gz
FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.tar.bz2
FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.zip
init android origin source code
Diffstat (limited to 'ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h')
-rw-r--r--ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h b/ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h
new file mode 100644
index 00000000..c073cf4b
--- /dev/null
+++ b/ANDROID_3.4.5/arch/cris/arch-v32/drivers/i2c.h
@@ -0,0 +1,17 @@
+
+#include <linux/init.h>
+
+/* High level I2C actions */
+int __init i2c_init(void);
+int i2c_write(unsigned char theSlave, void *data, size_t nbytes);
+int i2c_read(unsigned char theSlave, void *data, size_t nbytes);
+int i2c_writereg(unsigned char theSlave, unsigned char theReg, unsigned char theValue);
+unsigned char i2c_readreg(unsigned char theSlave, unsigned char theReg);
+
+/* Low level I2C */
+void i2c_start(void);
+void i2c_stop(void);
+void i2c_outbyte(unsigned char x);
+unsigned char i2c_inbyte(void);
+int i2c_getack(void);
+void i2c_sendack(void);