MLK-18045-1 drm/imx: dcss: define 'struct dma_metadata' for dec400d config
authorFancy Fang <chen.fang@nxp.com>
Tue, 17 Apr 2018 02:56:07 +0000 (10:56 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
Define a new struct 'dma_metadata' to hold the config parameters
for DEC400D. This struct data should be passed in from the fb's
first gem_obj's 'dma_buf' field.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
include/video/imx-dcss.h

index 253dff8..2b63cbc 100644 (file)
@@ -25,6 +25,21 @@ struct dcss_client_platformdata {
        struct device_node *of_node;
 };
 
+#define VIV_VIDMEM_METADATA_MAGIC fourcc_code('v', 'i', 'v', 'm')
+
+struct dma_metadata {
+       uint32_t magic;
+       int32_t  ts_buf_fd;
+       void *ts_dma_buf;
+
+       uint32_t fc_enabled;
+       uint32_t fc_value;
+       uint32_t fc_value_upper;
+
+       uint32_t compressed;
+       uint32_t compressed_format;
+};
+
 /* COMMON */
 int dcss_vblank_irq_get(struct dcss_soc *dcss);
 void dcss_vblank_irq_enable(struct dcss_soc *dcss, bool en);