blob: 41dcdfe7f625d7e45aedbb1efa7f2259214bc19a [file] [log] [blame]
Russell Kingb652b432005-06-15 12:38:14 +01001#ifndef _LINUX_I2C_ALGO_PXA_H
2#define _LINUX_I2C_ALGO_PXA_H
3
Russell Kingb652b432005-06-15 12:38:14 +01004typedef enum i2c_slave_event_e {
5 I2C_SLAVE_EVENT_START_READ,
6 I2C_SLAVE_EVENT_START_WRITE,
7 I2C_SLAVE_EVENT_STOP
8} i2c_slave_event_t;
9
10struct i2c_slave_client {
11 void *data;
12 void (*event)(void *ptr, i2c_slave_event_t event);
13 int (*read) (void *ptr);
14 void (*write)(void *ptr, unsigned int val);
15};
16
Russell Kingb652b432005-06-15 12:38:14 +010017#endif /* _LINUX_I2C_ALGO_PXA_H */