i2c-pxa.h 399 B

1234567891011121314151617
  1. #ifndef _LINUX_I2C_ALGO_PXA_H
  2. #define _LINUX_I2C_ALGO_PXA_H
  3. typedef enum i2c_slave_event_e {
  4. I2C_SLAVE_EVENT_START_READ,
  5. I2C_SLAVE_EVENT_START_WRITE,
  6. I2C_SLAVE_EVENT_STOP
  7. } i2c_slave_event_t;
  8. struct i2c_slave_client {
  9. void *data;
  10. void (*event)(void *ptr, i2c_slave_event_t event);
  11. int (*read) (void *ptr);
  12. void (*write)(void *ptr, unsigned int val);
  13. };
  14. #endif /* _LINUX_I2C_ALGO_PXA_H */