Heikki Krogerus | 289fcff | 2015-05-13 15:26:42 +0300 | [diff] [blame] | 1 | #ifndef __LINUX_ULPI_INTERFACE_H |
| 2 | #define __LINUX_ULPI_INTERFACE_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | |
| 6 | struct ulpi; |
| 7 | |
| 8 | /** |
| 9 | * struct ulpi_ops - ULPI register access |
| 10 | * @dev: the interface provider |
| 11 | * @read: read operation for ULPI register access |
| 12 | * @write: write operation for ULPI register access |
| 13 | */ |
| 14 | struct ulpi_ops { |
| 15 | struct device *dev; |
| 16 | int (*read)(struct ulpi_ops *ops, u8 addr); |
| 17 | int (*write)(struct ulpi_ops *ops, u8 addr, u8 val); |
| 18 | }; |
| 19 | |
| 20 | struct ulpi *ulpi_register_interface(struct device *, struct ulpi_ops *); |
| 21 | void ulpi_unregister_interface(struct ulpi *); |
| 22 | |
| 23 | #endif /* __LINUX_ULPI_INTERFACE_H */ |