diff options
| author | Gopikrishnaiah Anandan <agopik@codeaurora.org> | 2015-10-29 18:41:38 -0700 |
|---|---|---|
| committer | Ping Li <pingli@codeaurora.org> | 2016-09-29 16:06:16 -0700 |
| commit | d076f1df2de1643590fc1bdc3abd019a7d8e4910 (patch) | |
| tree | 96fe8eec537a6c5bbb1cfc8bd793d4554ea0e550 /include/uapi | |
| parent | 861e42e106de8ef4bad4d219e553f6d24a2cdbd3 (diff) | |
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: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/Kbuild | 1 | ||||
| -rw-r--r-- | include/uapi/drm/msm_drm_pp.h | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/include/uapi/drm/Kbuild b/include/uapi/drm/Kbuild index 186b4cb37d5c..c3c78a0d0052 100644 --- a/include/uapi/drm/Kbuild +++ b/include/uapi/drm/Kbuild @@ -19,3 +19,4 @@ header-y += vmwgfx_drm.h header-y += msm_drm.h header-y += virtgpu_drm.h header-y += sde_drm.h +header-y += msm_drm_pp.h diff --git a/include/uapi/drm/msm_drm_pp.h b/include/uapi/drm/msm_drm_pp.h new file mode 100644 index 000000000000..efe83a3ae38d --- /dev/null +++ b/include/uapi/drm/msm_drm_pp.h @@ -0,0 +1,45 @@ +#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_ */ |
