aboutsummaryrefslogtreecommitdiff
path: root/arch/cris/arch-v32/drivers/i2c.h
diff options
context:
space:
mode:
authorJesper Nilsson <jesper.nilsson@axis.com>2007-11-30 15:54:01 +0100
committerJesper Nilsson <jesper.nilsson@axis.com>2008-02-08 11:06:25 +0100
commit201ca54aa039eb1e5143a98311e7ea25afc57ebb (patch)
tree977d6c2baecf92f7a9fb2099494b042ea09cb7e9 /arch/cris/arch-v32/drivers/i2c.h
parent0f229504f804da9c601aeb4690995904d9553b79 (diff)
CRIS v32: New version of I2C driver.
- Add i2c_write and i2c_read as functions. - Use spinlocks for critical regions. - Add config item to set I2C data and clock port. - Put unneeded testcode inside #if 0. - Remove CVS id tag.
Diffstat (limited to 'arch/cris/arch-v32/drivers/i2c.h')
-rw-r--r--arch/cris/arch-v32/drivers/i2c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/cris/arch-v32/drivers/i2c.h b/arch/cris/arch-v32/drivers/i2c.h
index bfe1a13f9f3..c073cf4ba01 100644
--- a/arch/cris/arch-v32/drivers/i2c.h
+++ b/arch/cris/arch-v32/drivers/i2c.h
@@ -3,6 +3,8 @@
/* 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);