Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8cc073fa authored by Gopikrishnaiah Anandan's avatar Gopikrishnaiah Anandan Committed by Narendra Muppalla
Browse files

drm/msm: Initial version post processing header



Define the interface for driver clients to program the post processing
blocks of SDE. DRM driver clients will query the supported feature info by
querying the properties of planes/crtc. Feature info will provide the
major number info for a feature which will let the driver clients to
program the post processing blocks.

Change-Id: I5a33fe089288b576b2b51bc44f13081013308c4e
Signed-off-by: default avatarGopikrishnaiah Anandan <agopik@codeaurora.org>
parent aac9f33a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,3 +21,4 @@ header-y += msm_drm.h
header-y += vc4_drm.h
header-y += virtgpu_drm.h
header-y += sde_drm.h
header-y += msm_drm_pp.h
+45 −0
Original line number Diff line number Diff line
#ifndef _MSM_DRM_PP_H_
#define _MSM_DRM_PP_H_

#include <drm/drm.h>

/**
 * struct drm_msm_pcc_coeff - PCC coefficient structure for each color
 *                            component.
 * @c: constant coefficient.
 * @r: red coefficient.
 * @g: green coefficient.
 * @b: blue coefficient.
 * @rg: red green coefficient.
 * @gb: green blue coefficient.
 * @rb: red blue coefficient.
 * @rgb: red blue green coefficient.
 */

struct drm_msm_pcc_coeff {
	__u32 c;
	__u32 r;
	__u32 g;
	__u32 b;
	__u32 rg;
	__u32 gb;
	__u32 rb;
	__u32 rgb;
};

/**
 * struct drm_msm_pcc - pcc feature structure
 * flags: for enable/disable, read/write or customize operations
 * r: red coefficients.
 * g: green coefficients.
 * b: blue coefficients.
 */

struct drm_msm_pcc {
	__u64 flags;
	struct drm_msm_pcc_coeff r;
	struct drm_msm_pcc_coeff g;
	struct drm_msm_pcc_coeff b;
};

#endif /* _MSM_DRM_PP_H_ */