drm/meson: Add AFBCD module driver
[platform/kernel/linux-starfive.git] / drivers / gpu / drm / meson / meson_drv.h
index ea39be9..f151538 100644 (file)
@@ -16,6 +16,7 @@ struct drm_crtc;
 struct drm_device;
 struct drm_plane;
 struct meson_drm;
+struct meson_afbcd_ops;
 
 enum vpu_compatible {
        VPU_COMPATIBLE_GXBB = 0,
@@ -24,6 +25,11 @@ enum vpu_compatible {
        VPU_COMPATIBLE_G12A = 3,
 };
 
+struct meson_drm_match_data {
+       enum vpu_compatible compat;
+       struct meson_afbcd_ops *afbcd_ops;
+};
+
 struct meson_drm {
        struct device *dev;
        enum vpu_compatible compat;
@@ -129,6 +135,12 @@ struct meson_drm {
                uint32_t *addr;
                unsigned int offset;
        } rdma;
+
+       struct {
+               struct meson_afbcd_ops *ops;
+               u64 modifier;
+               u32 format;
+       } afbcd;
 };
 
 static inline int meson_vpu_is_compatible(struct meson_drm *priv,