of_graph: add of_graph_get_port_parent()
[linux-2.6/btrfs-unstable.git] / include / linux / ulpi / interface.h
bloba2011a919eb61f39a1d1be6e01159b29b0e71113
1 #ifndef __LINUX_ULPI_INTERFACE_H
2 #define __LINUX_ULPI_INTERFACE_H
4 #include <linux/types.h>
6 struct ulpi;
7 struct device;
9 /**
10 * struct ulpi_ops - ULPI register access
11 * @read: read operation for ULPI register access
12 * @write: write operation for ULPI register access
14 struct ulpi_ops {
15 int (*read)(struct device *dev, u8 addr);
16 int (*write)(struct device *dev, u8 addr, u8 val);
19 struct ulpi *ulpi_register_interface(struct device *, const struct ulpi_ops *);
20 void ulpi_unregister_interface(struct ulpi *);
22 #endif /* __LINUX_ULPI_INTERFACE_H */