interface.h 596 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_ULPI_INTERFACE_H
  3. #define __LINUX_ULPI_INTERFACE_H
  4. #include <linux/types.h>
  5. struct ulpi;
  6. struct device;
  7. /**
  8. * struct ulpi_ops - ULPI register access
  9. * @read: read operation for ULPI register access
  10. * @write: write operation for ULPI register access
  11. */
  12. struct ulpi_ops {
  13. int (*read)(struct device *dev, u8 addr);
  14. int (*write)(struct device *dev, u8 addr, u8 val);
  15. };
  16. struct ulpi *ulpi_register_interface(struct device *, const struct ulpi_ops *);
  17. void ulpi_unregister_interface(struct ulpi *);
  18. #endif /* __LINUX_ULPI_INTERFACE_H */