interface.h 593 B

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