diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/drm/drm_mipi_dsi.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index f1a07e302559..6e3e3aadd2d7 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h | |||
| @@ -47,6 +47,24 @@ bool mipi_dsi_packet_format_is_short(u8 type); | |||
| 47 | bool mipi_dsi_packet_format_is_long(u8 type); | 47 | bool mipi_dsi_packet_format_is_long(u8 type); |
| 48 | 48 | ||
| 49 | /** | 49 | /** |
| 50 | * struct mipi_dsi_packet - represents a MIPI DSI packet in protocol format | ||
| 51 | * @size: size (in bytes) of the packet | ||
| 52 | * @header: the four bytes that make up the header (Data ID, Word Count or | ||
| 53 | * Packet Data, and ECC) | ||
| 54 | * @payload_length: number of bytes in the payload | ||
| 55 | * @payload: a pointer to a buffer containing the payload, if any | ||
| 56 | */ | ||
| 57 | struct mipi_dsi_packet { | ||
| 58 | size_t size; | ||
| 59 | u8 header[4]; | ||
| 60 | size_t payload_length; | ||
| 61 | const u8 *payload; | ||
| 62 | }; | ||
| 63 | |||
| 64 | int mipi_dsi_create_packet(struct mipi_dsi_packet *packet, | ||
| 65 | const struct mipi_dsi_msg *msg); | ||
| 66 | |||
| 67 | /** | ||
| 50 | * struct mipi_dsi_host_ops - DSI bus operations | 68 | * struct mipi_dsi_host_ops - DSI bus operations |
| 51 | * @attach: attach DSI device to DSI host | 69 | * @attach: attach DSI device to DSI host |
| 52 | * @detach: detach DSI device from DSI host | 70 | * @detach: detach DSI device from DSI host |
