interface.h 557 B

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