Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_ULPI_INTERFACE_H
0003 #define __LINUX_ULPI_INTERFACE_H
0004 
0005 #include <linux/types.h>
0006 
0007 struct ulpi;
0008 struct device;
0009 
0010 /**
0011  * struct ulpi_ops - ULPI register access
0012  * @read: read operation for ULPI register access
0013  * @write: write operation for ULPI register access
0014  */
0015 struct ulpi_ops {
0016     int (*read)(struct device *dev, u8 addr);
0017     int (*write)(struct device *dev, u8 addr, u8 val);
0018 };
0019 
0020 struct ulpi *ulpi_register_interface(struct device *, const struct ulpi_ops *);
0021 void ulpi_unregister_interface(struct ulpi *);
0022 
0023 #endif /* __LINUX_ULPI_INTERFACE_H */