dt-bindings: mtd: ingenic: Use standard ecc-engine property
[linux/fpc-iii.git] / drivers / gpu / drm / sti / sti_mixer.h
blob4cb3cfddc03a1483b7eb5a1d1bb334d00251d499
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) STMicroelectronics SA 2014
4 * Authors: Benjamin Gaignard <benjamin.gaignard@st.com>
5 * Fabien Dessenne <fabien.dessenne@st.com>
6 * for STMicroelectronics.
7 */
9 #ifndef _STI_MIXER_H_
10 #define _STI_MIXER_H_
12 #include <drm/drmP.h>
14 #include "sti_plane.h"
16 #define to_sti_mixer(x) container_of(x, struct sti_mixer, drm_crtc)
18 enum sti_mixer_status {
19 STI_MIXER_READY,
20 STI_MIXER_DISABLING,
21 STI_MIXER_DISABLED,
24 /**
25 * STI Mixer subdevice structure
27 * @dev: driver device
28 * @regs: mixer registers
29 * @id: id of the mixer
30 * @drm_crtc: crtc object link to the mixer
31 * @status: to know the status of the mixer
33 struct sti_mixer {
34 struct device *dev;
35 void __iomem *regs;
36 int id;
37 struct drm_crtc drm_crtc;
38 enum sti_mixer_status status;
41 const char *sti_mixer_to_str(struct sti_mixer *mixer);
43 struct sti_mixer *sti_mixer_create(struct device *dev,
44 struct drm_device *drm_dev,
45 int id,
46 void __iomem *baseaddr);
48 int sti_mixer_set_plane_status(struct sti_mixer *mixer,
49 struct sti_plane *plane, bool status);
50 int sti_mixer_set_plane_depth(struct sti_mixer *mixer, struct sti_plane *plane);
51 int sti_mixer_active_video_area(struct sti_mixer *mixer,
52 struct drm_display_mode *mode);
54 void sti_mixer_set_background_status(struct sti_mixer *mixer, bool enable);
56 int sti_mixer_debugfs_init(struct sti_mixer *mixer, struct drm_minor *minor);
58 /* depth in Cross-bar control = z order */
59 #define GAM_MIXER_NB_DEPTH_LEVEL 6
61 #define STI_MIXER_MAIN 0
62 #define STI_MIXER_AUX 1
64 #endif