summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti/sti_vid.h
diff options
context:
space:
mode:
authorVincent Abriou2015-07-31 11:32:13 +0200
committerBenjamin Gaignard2015-08-03 14:25:01 +0200
commit871bcdfea68560991bd650406e47a801ab9d635d (patch)
tree8a760b230480bb3227e916b157b3b4ff628cd603 /drivers/gpu/drm/sti/sti_vid.h
parentdrm/sti: fix dynamic z-ordering (diff)
downloadkernel-qcow2-linux-871bcdfea68560991bd650406e47a801ab9d635d.tar.gz
kernel-qcow2-linux-871bcdfea68560991bd650406e47a801ab9d635d.tar.xz
kernel-qcow2-linux-871bcdfea68560991bd650406e47a801ab9d635d.zip
drm/sti: code clean up
Purpose is to simplify the STI driver: - remove layer structure - consider video subdev as part of the compositor (like mixer subdev) - remove useless STI_VID0 and STI_VID1 enum Signed-off-by: Vincent Abriou <vincent.abriou@st.com> Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/sti/sti_vid.h')
-rw-r--r--drivers/gpu/drm/sti/sti_vid.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/drm/sti/sti_vid.h b/drivers/gpu/drm/sti/sti_vid.h
index 2c0aecd63294..cc680a23cc5d 100644
--- a/drivers/gpu/drm/sti/sti_vid.h
+++ b/drivers/gpu/drm/sti/sti_vid.h
@@ -7,6 +7,22 @@
#ifndef _STI_VID_H_
#define _STI_VID_H_
-struct sti_layer *sti_vid_create(struct device *dev);
+/**
+ * STI VID structure
+ *
+ * @dev: driver device
+ * @regs: vid registers
+ * @id: id of the vid
+ */
+struct sti_vid {
+ struct device *dev;
+ void __iomem *regs;
+ int id;
+};
+
+int sti_vid_commit(struct sti_vid *vid, struct sti_plane *plane);
+int sti_vid_disable(struct sti_vid *vid);
+struct sti_vid *sti_vid_create(struct device *dev, int id,
+ void __iomem *baseaddr);
#endif