1/* Copyright 2012-15 Advanced Micro Devices, Inc.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a
4 * copy of this software and associated documentation files (the "Software"),
5 * to deal in the Software without restriction, including without limitation
6 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 * and/or sell copies of the Software, and to permit persons to whom the
8 * Software is furnished to do so, subject to the following conditions:
9 *
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
17 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19 * OTHER DEALINGS IN THE SOFTWARE.
20 *
21 * Authors: AMD
22 *
23 */
24
25#ifndef __DAL_TRANSFORM_V_DCE110_H__
26#define __DAL_TRANSFORM_V_DCE110_H__
27
28#include "../dce/dce_transform.h"
29
30#define LB_TOTAL_NUMBER_OF_ENTRIES 1712
31#define LB_BITS_PER_ENTRY 144
32
33bool dce110_transform_v_construct(
34 struct dce_transform *xfm110,
35 struct dc_context *ctx);
36
37void dce110_opp_v_set_csc_default(
38 struct transform *xfm,
39 const struct default_adjustment *default_adjust);
40
41void dce110_opp_v_set_csc_adjustment(
42 struct transform *xfm,
43 const struct out_csc_color_matrix *tbl_entry);
44
45
46void dce110_opp_program_regamma_pwl_v(
47 struct transform *xfm,
48 const struct pwl_params *params);
49
50void dce110_opp_power_on_regamma_lut_v(
51 struct transform *xfm,
52 bool power_on);
53
54void dce110_opp_set_regamma_mode_v(
55 struct transform *xfm,
56 enum opp_regamma mode);
57
58#endif
59

source code of linux/drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h