blob: 74018a34c017d7906d86976529ef37a13a1cb796 [file] [log] [blame]
Gopikrishnaiah Anandan23428cd02017-01-19 12:40:29 -08001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
Benet Clarkeb1b4462016-06-27 14:43:06 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _SDE_HW_COLOR_PROCESSING_V1_7_H
14#define _SDE_HW_COLOR_PROCESSING_V1_7_H
15
16#include "sde_hw_sspp.h"
Benet Clarkc6722ee2016-11-07 14:07:40 -080017#include "sde_hw_dspp.h"
Benet Clarkeb1b4462016-06-27 14:43:06 -070018
19/**
20 * sde_setup_pipe_pa_hue_v1_7 - setup SSPP hue feature in v1.7 hardware
21 * @ctx: Pointer to pipe context
22 * @cfg: Pointer to hue data
23 */
24void sde_setup_pipe_pa_hue_v1_7(struct sde_hw_pipe *ctx, void *cfg);
25
26/**
27 * sde_setup_pipe_pa_sat_v1_7 - setup SSPP saturation feature in v1.7 hardware
28 * @ctx: Pointer to pipe context
29 * @cfg: Pointer to saturation data
30 */
31void sde_setup_pipe_pa_sat_v1_7(struct sde_hw_pipe *ctx, void *cfg);
32
33/**
34 * sde_setup_pipe_pa_val_v1_7 - setup SSPP value feature in v1.7 hardware
35 * @ctx: Pointer to pipe context
36 * @cfg: Pointer to value data
37 */
38void sde_setup_pipe_pa_val_v1_7(struct sde_hw_pipe *ctx, void *cfg);
39
40/**
41 * sde_setup_pipe_pa_cont_v1_7 - setup SSPP contrast feature in v1.7 hardware
42 * @ctx: Pointer to pipe context
43 * @cfg: Pointer to contrast data
44 */
45void sde_setup_pipe_pa_cont_v1_7(struct sde_hw_pipe *ctx, void *cfg);
46
Benet Clarkd009b1d2016-06-27 14:45:59 -070047/**
48 * sde_setup_pipe_pa_memcol_v1_7 - setup SSPP memory color in v1.7 hardware
49 * @ctx: Pointer to pipe context
50 * @type: Memory color type (Skin, sky, or foliage)
51 * @cfg: Pointer to memory color config data
52 */
53void sde_setup_pipe_pa_memcol_v1_7(struct sde_hw_pipe *ctx,
54 enum sde_memcolor_type type,
55 void *cfg);
56
Benet Clarkc6722ee2016-11-07 14:07:40 -080057/**
58 * sde_setup_dspp_pcc_v1_7 - setup DSPP PCC veature in v1.7 hardware
59 * @ctx: Pointer to dspp context
60 * @cfg: Pointer to PCC data
61 */
62void sde_setup_dspp_pcc_v1_7(struct sde_hw_dspp *ctx, void *cfg);
63
64/**
65 * sde_setup_dspp_pa_hue_v1_7 - setup DSPP hue feature in v1.7 hardware
66 * @ctx: Pointer to DSPP context
67 * @cfg: Pointer to hue data
68 */
69void sde_setup_dspp_pa_hue_v1_7(struct sde_hw_dspp *ctx, void *cfg);
70
71/**
72 * sde_setup_dspp_pa_vlut_v1_7 - setup DSPP PA vLUT feature in v1.7 hardware
73 * @ctx: Pointer to DSPP context
74 * @cfg: Pointer to vLUT data
75 */
76void sde_setup_dspp_pa_vlut_v1_7(struct sde_hw_dspp *ctx, void *cfg);
77
Gopikrishnaiah Anandan23428cd02017-01-19 12:40:29 -080078/**
Xu Yange9b20772017-08-23 11:16:04 +080079 * sde_setup_dspp_pa_vlut_v1_8 - setup DSPP PA vLUT feature in v1.8 hardware
80 * @ctx: Pointer to DSPP context
81 * @cfg: Pointer to vLUT data
82 */
83void sde_setup_dspp_pa_vlut_v1_8(struct sde_hw_dspp *ctx, void *cfg);
84
85/**
Gopikrishnaiah Anandan23428cd02017-01-19 12:40:29 -080086 * sde_setup_dspp_gc_v1_7 - setup DSPP gc feature in v1.7 hardware
87 * @ctx: Pointer to DSPP context
88 * @cfg: Pointer to gc data
89 */
90void sde_setup_dspp_gc_v1_7(struct sde_hw_dspp *ctx, void *cfg);
91
Xu Yang056d39b2017-07-11 16:34:13 +080092/**
93 * sde_setup_dspp_hist_v1_7 - setup DSPP histogram feature in v1.7 hardware
94 * @ctx: Pointer to DSPP context
95 * @cfg: Pointer to histogram control data
96 */
97void sde_setup_dspp_hist_v1_7(struct sde_hw_dspp *ctx, void *cfg);
98
99/**
100 * sde_read_dspp_hist_v1_7 - read DSPP histogram data in v1.7 hardware
101 * @ctx: Pointer to DSPP context
102 * @cfg: Pointer to histogram data
103 */
104void sde_read_dspp_hist_v1_7(struct sde_hw_dspp *ctx, void *cfg);
105
106/**
107 * sde_lock_dspp_hist_v1_7 - lock DSPP histogram buffer in v1.7 hardware
108 * @ctx: Pointer to DSPP context
109 */
110void sde_lock_dspp_hist_v1_7(struct sde_hw_dspp *ctx, void *cfg);
Benet Clarkeb1b4462016-06-27 14:43:06 -0700111#endif