mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
Add these two new api callbacks to struct ulpi_ops. These are different than read, write in that they pass the parent device directly instead of via the ops argument. They are intended to replace the old api functions. If the new api callbacks are missing, revert to calling the old ones as before. Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Tal Shorer <tal.shorer@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
26 lines
696 B
C
26 lines
696 B
C
#ifndef __LINUX_ULPI_INTERFACE_H
|
|
#define __LINUX_ULPI_INTERFACE_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct ulpi;
|
|
|
|
/**
|
|
* struct ulpi_ops - ULPI register access
|
|
* @dev: the interface provider
|
|
* @read: read operation for ULPI register access
|
|
* @write: write operation for ULPI register access
|
|
*/
|
|
struct ulpi_ops {
|
|
struct device *dev;
|
|
int (*read)(struct ulpi_ops *ops, u8 addr);
|
|
int (*write)(struct ulpi_ops *ops, u8 addr, u8 val);
|
|
int (*read_dev)(struct device *dev, u8 addr);
|
|
int (*write_dev)(struct device *dev, u8 addr, u8 val);
|
|
};
|
|
|
|
struct ulpi *ulpi_register_interface(struct device *, struct ulpi_ops *);
|
|
void ulpi_unregister_interface(struct ulpi *);
|
|
|
|
#endif /* __LINUX_ULPI_INTERFACE_H */
|