|
XenevaOS
|
#include <drm_mipi_dsi.h>
Public Attributes | |
| int(* | attach )(struct mipi_dsi_host *host, struct mipi_dsi_device *dsi) |
| int(* | detach )(struct mipi_dsi_host *host, struct mipi_dsi_device *dsi) |
| ssize_t(* | transfer )(struct mipi_dsi_host *host, const struct mipi_dsi_msg *msg) |
struct mipi_dsi_host_ops - DSI bus operations @attach: attach DSI device to DSI host @detach: detach DSI device from DSI host @transfer: transmit a DSI packet
DSI packets transmitted by .transfer() are passed in as mipi_dsi_msg structures. This structure contains information about the type of packet being transmitted as well as the transmit and receive buffers. When an error is encountered during transmission, this function will return a negative error code. On success it shall return the number of bytes transmitted for write packets or the number of bytes received for read packets.
Note that typically DSI packet transmission is atomic, so the .transfer() function will seldomly return anything other than the number of bytes contained in the transmit buffer on success.
Also note that those callbacks can be called no matter the state the host is in. Drivers that need the underlying device to be powered to perform these operations will first need to make sure it's been properly enabled.
| int(* mipi_dsi_host_ops::attach) (struct mipi_dsi_host *host, struct mipi_dsi_device *dsi) |
| int(* mipi_dsi_host_ops::detach) (struct mipi_dsi_host *host, struct mipi_dsi_device *dsi) |
| ssize_t(* mipi_dsi_host_ops::transfer) (struct mipi_dsi_host *host, const struct mipi_dsi_msg *msg) |