Server IP : 172.67.216.182 / Your IP : 172.70.189.35 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-143/include/linux/ulpi/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_ULPI_DRIVER_H #define __LINUX_ULPI_DRIVER_H #include <linux/mod_devicetable.h> #include <linux/device.h> struct ulpi_ops; /** * struct ulpi - describes ULPI PHY device * @id: vendor and product ids for ULPI device * @ops: I/O access * @dev: device interface */ struct ulpi { struct ulpi_device_id id; const struct ulpi_ops *ops; struct device dev; }; #define to_ulpi_dev(d) container_of(d, struct ulpi, dev) static inline void ulpi_set_drvdata(struct ulpi *ulpi, void *data) { dev_set_drvdata(&ulpi->dev, data); } static inline void *ulpi_get_drvdata(struct ulpi *ulpi) { return dev_get_drvdata(&ulpi->dev); } /** * struct ulpi_driver - describes a ULPI PHY driver * @id_table: array of device identifiers supported by this driver * @probe: binds this driver to ULPI device * @remove: unbinds this driver from ULPI device * @driver: the name and owner members must be initialized by the drivers */ struct ulpi_driver { const struct ulpi_device_id *id_table; int (*probe)(struct ulpi *ulpi); void (*remove)(struct ulpi *ulpi); struct device_driver driver; }; #define to_ulpi_driver(d) container_of(d, struct ulpi_driver, driver) /* * use a macro to avoid include chaining to get THIS_MODULE */ #define ulpi_register_driver(drv) __ulpi_register_driver(drv, THIS_MODULE) int __ulpi_register_driver(struct ulpi_driver *drv, struct module *module); void ulpi_unregister_driver(struct ulpi_driver *drv); #define module_ulpi_driver(__ulpi_driver) \ module_driver(__ulpi_driver, ulpi_register_driver, \ ulpi_unregister_driver) int ulpi_read(struct ulpi *ulpi, u8 addr); int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val); #endif /* __LINUX_ULPI_DRIVER_H */