Gopikrishnaiah Anandan | 23428cd0 | 2017-01-19 12:40:29 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved. |
Benet Clark | eb1b446 | 2016-06-27 14:43:06 -0700 | [diff] [blame] | 2 | * |
| 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 Clark | c6722ee | 2016-11-07 14:07:40 -0800 | [diff] [blame] | 17 | #include "sde_hw_dspp.h" |
Benet Clark | eb1b446 | 2016-06-27 14:43:06 -0700 | [diff] [blame] | 18 | |
| 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 | */ |
| 24 | void 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 | */ |
| 31 | void 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 | */ |
| 38 | void 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 | */ |
| 45 | void sde_setup_pipe_pa_cont_v1_7(struct sde_hw_pipe *ctx, void *cfg); |
| 46 | |
Benet Clark | d009b1d | 2016-06-27 14:45:59 -0700 | [diff] [blame] | 47 | /** |
| 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 | */ |
| 53 | void sde_setup_pipe_pa_memcol_v1_7(struct sde_hw_pipe *ctx, |
| 54 | enum sde_memcolor_type type, |
| 55 | void *cfg); |
| 56 | |
Benet Clark | c6722ee | 2016-11-07 14:07:40 -0800 | [diff] [blame] | 57 | /** |
| 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 | */ |
| 62 | void 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 | */ |
| 69 | void 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 | */ |
| 76 | void sde_setup_dspp_pa_vlut_v1_7(struct sde_hw_dspp *ctx, void *cfg); |
| 77 | |
Gopikrishnaiah Anandan | 23428cd0 | 2017-01-19 12:40:29 -0800 | [diff] [blame] | 78 | /** |
Xu Yang | e9b2077 | 2017-08-23 11:16:04 +0800 | [diff] [blame] | 79 | * 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 | */ |
| 83 | void sde_setup_dspp_pa_vlut_v1_8(struct sde_hw_dspp *ctx, void *cfg); |
| 84 | |
| 85 | /** |
Gopikrishnaiah Anandan | 23428cd0 | 2017-01-19 12:40:29 -0800 | [diff] [blame] | 86 | * 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 | */ |
| 90 | void sde_setup_dspp_gc_v1_7(struct sde_hw_dspp *ctx, void *cfg); |
| 91 | |
Xu Yang | 056d39b | 2017-07-11 16:34:13 +0800 | [diff] [blame] | 92 | /** |
| 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 | */ |
| 97 | void 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 | */ |
| 104 | void 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 | */ |
| 110 | void sde_lock_dspp_hist_v1_7(struct sde_hw_dspp *ctx, void *cfg); |
Benet Clark | eb1b446 | 2016-06-27 14:43:06 -0700 | [diff] [blame] | 111 | #endif |