aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/v3d_drm.h4
-rw-r--r--include/uapi/linux/virtio_gpu.h18
2 files changed, 20 insertions, 2 deletions
diff --git a/include/uapi/drm/v3d_drm.h b/include/uapi/drm/v3d_drm.h
index f446656d00b1..b1e5de076b0f 100644
--- a/include/uapi/drm/v3d_drm.h
+++ b/include/uapi/drm/v3d_drm.h
@@ -66,7 +66,7 @@ struct drm_v3d_submit_cl {
66 */ 66 */
67 __u32 bcl_start; 67 __u32 bcl_start;
68 68
69 /** End address of the BCL (first byte after the BCL) */ 69 /** End address of the BCL (first byte after the BCL) */
70 __u32 bcl_end; 70 __u32 bcl_end;
71 71
72 /* Offset of the render command list. 72 /* Offset of the render command list.
@@ -82,7 +82,7 @@ struct drm_v3d_submit_cl {
82 */ 82 */
83 __u32 rcl_start; 83 __u32 rcl_start;
84 84
85 /** End address of the RCL (first byte after the RCL) */ 85 /** End address of the RCL (first byte after the RCL) */
86 __u32 rcl_end; 86 __u32 rcl_end;
87 87
88 /** An optional sync object to wait on before starting the BCL. */ 88 /** An optional sync object to wait on before starting the BCL. */
diff --git a/include/uapi/linux/virtio_gpu.h b/include/uapi/linux/virtio_gpu.h
index f43c3c6171ff..8e88eba1fa7a 100644
--- a/include/uapi/linux/virtio_gpu.h
+++ b/include/uapi/linux/virtio_gpu.h
@@ -41,6 +41,7 @@
41#include <linux/types.h> 41#include <linux/types.h>
42 42
43#define VIRTIO_GPU_F_VIRGL 0 43#define VIRTIO_GPU_F_VIRGL 0
44#define VIRTIO_GPU_F_EDID 1
44 45
45enum virtio_gpu_ctrl_type { 46enum virtio_gpu_ctrl_type {
46 VIRTIO_GPU_UNDEFINED = 0, 47 VIRTIO_GPU_UNDEFINED = 0,
@@ -56,6 +57,7 @@ enum virtio_gpu_ctrl_type {
56 VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING, 57 VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING,
57 VIRTIO_GPU_CMD_GET_CAPSET_INFO, 58 VIRTIO_GPU_CMD_GET_CAPSET_INFO,
58 VIRTIO_GPU_CMD_GET_CAPSET, 59 VIRTIO_GPU_CMD_GET_CAPSET,
60 VIRTIO_GPU_CMD_GET_EDID,
59 61
60 /* 3d commands */ 62 /* 3d commands */
61 VIRTIO_GPU_CMD_CTX_CREATE = 0x0200, 63 VIRTIO_GPU_CMD_CTX_CREATE = 0x0200,
@@ -76,6 +78,7 @@ enum virtio_gpu_ctrl_type {
76 VIRTIO_GPU_RESP_OK_DISPLAY_INFO, 78 VIRTIO_GPU_RESP_OK_DISPLAY_INFO,
77 VIRTIO_GPU_RESP_OK_CAPSET_INFO, 79 VIRTIO_GPU_RESP_OK_CAPSET_INFO,
78 VIRTIO_GPU_RESP_OK_CAPSET, 80 VIRTIO_GPU_RESP_OK_CAPSET,
81 VIRTIO_GPU_RESP_OK_EDID,
79 82
80 /* error responses */ 83 /* error responses */
81 VIRTIO_GPU_RESP_ERR_UNSPEC = 0x1200, 84 VIRTIO_GPU_RESP_ERR_UNSPEC = 0x1200,
@@ -291,6 +294,21 @@ struct virtio_gpu_resp_capset {
291 __u8 capset_data[]; 294 __u8 capset_data[];
292}; 295};
293 296
297/* VIRTIO_GPU_CMD_GET_EDID */
298struct virtio_gpu_cmd_get_edid {
299 struct virtio_gpu_ctrl_hdr hdr;
300 __le32 scanout;
301 __le32 padding;
302};
303
304/* VIRTIO_GPU_RESP_OK_EDID */
305struct virtio_gpu_resp_edid {
306 struct virtio_gpu_ctrl_hdr hdr;
307 __le32 size;
308 __le32 padding;
309 __u8 edid[1024];
310};
311
294#define VIRTIO_GPU_EVENT_DISPLAY (1 << 0) 312#define VIRTIO_GPU_EVENT_DISPLAY (1 << 0)
295 313
296struct virtio_gpu_config { 314struct virtio_gpu_config {