Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Russell King | b652b43 | 2005-06-15 12:38:14 +0100 | [diff] [blame] | 2 | #ifndef _LINUX_I2C_ALGO_PXA_H |
| 3 | #define _LINUX_I2C_ALGO_PXA_H |
| 4 | |
Russell King | b652b43 | 2005-06-15 12:38:14 +0100 | [diff] [blame] | 5 | typedef enum i2c_slave_event_e { |
| 6 | I2C_SLAVE_EVENT_START_READ, |
| 7 | I2C_SLAVE_EVENT_START_WRITE, |
| 8 | I2C_SLAVE_EVENT_STOP |
| 9 | } i2c_slave_event_t; |
| 10 | |
| 11 | struct i2c_slave_client { |
| 12 | void *data; |
| 13 | void (*event)(void *ptr, i2c_slave_event_t event); |
| 14 | int (*read) (void *ptr); |
| 15 | void (*write)(void *ptr, unsigned int val); |
| 16 | }; |
| 17 | |
Russell King | b652b43 | 2005-06-15 12:38:14 +0100 | [diff] [blame] | 18 | #endif /* _LINUX_I2C_ALGO_PXA_H */ |