1228753Smm/*
2232153Smm * Copyright 2016 Advanced Micro Devices, Inc.
3228753Smm *
4228753Smm * Permission is hereby granted, free of charge, to any person obtaining a
5228753Smm * copy of this software and associated documentation files (the "Software"),
6228753Smm * to deal in the Software without restriction, including without limitation
7228753Smm * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8228753Smm * and/or sell copies of the Software, and to permit persons to whom the
9228753Smm * Software is furnished to do so, subject to the following conditions:
10228753Smm *
11228753Smm * The above copyright notice and this permission notice shall be included in
12228753Smm * all copies or substantial portions of the Software.
13228753Smm *
14228753Smm * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15228753Smm * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16228753Smm * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17228753Smm * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18228753Smm * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19228753Smm * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20228753Smm * OTHER DEALINGS IN THE SOFTWARE.
21228753Smm *
22228753Smm * Authors: AMD
23228753Smm *
24228753Smm */
25228763Smm
26228753Smm
27228753Smm#ifndef COLOR_MOD_COLOR_TABLE_H_
28228753Smm#define COLOR_MOD_COLOR_TABLE_H_
29228753Smm
30232153Smm#include "dc_types.h"
31228753Smm
32228753Smm#define NUM_PTS_IN_REGION 16
33232153Smm#define NUM_REGIONS 32
34228753Smm#define MAX_HW_POINTS (NUM_PTS_IN_REGION*NUM_REGIONS)
35228753Smm
36228753Smmenum table_type {
37228753Smm	type_pq_table,
38228753Smm	type_de_pq_table
39228753Smm};
40228753Smm
41228753Smmbool mod_color_is_table_init(enum table_type type);
42228753Smm
43228753Smmstruct fixed31_32 *mod_color_get_table(enum table_type type);
44228753Smm
45228753Smmvoid mod_color_set_table_init_state(enum table_type type, bool state);
46228753Smm
47228753Smm#endif /* COLOR_MOD_COLOR_TABLE_H_ */
48228753Smm