diff options
Diffstat (limited to 'include/linux/ulpi/interface.h')
| -rw-r--r-- | include/linux/ulpi/interface.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/ulpi/interface.h b/include/linux/ulpi/interface.h new file mode 100644 index 000000000000..4de8ab491038 --- /dev/null +++ b/include/linux/ulpi/interface.h | |||
| @@ -0,0 +1,23 @@ | |||
| 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 */ | ||
