1 /* drivers/video/msm_fb/mdp_scale_tables.h
2  *
3  * Copyright (C) 2007 QUALCOMM Incorporated
4  * Copyright (C) 2007 Google Incorporated
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  */
15 #ifndef _MDP_SCALE_TABLES_H_
16 #define _MDP_SCALE_TABLES_H_
17 
18 #include <linux/types.h>
19 struct mdp_table_entry {
20 	uint32_t reg;
21 	uint32_t val;
22 };
23 
24 extern struct mdp_table_entry mdp_upscale_table[64];
25 
26 enum {
27 	MDP_DOWNSCALE_PT2TOPT4,
28 	MDP_DOWNSCALE_PT4TOPT6,
29 	MDP_DOWNSCALE_PT6TOPT8,
30 	MDP_DOWNSCALE_PT8TO1,
31 	MDP_DOWNSCALE_MAX,
32 };
33 
34 extern struct mdp_table_entry *mdp_downscale_x_table[MDP_DOWNSCALE_MAX];
35 extern struct mdp_table_entry *mdp_downscale_y_table[MDP_DOWNSCALE_MAX];
36 extern struct mdp_table_entry mdp_gaussian_blur_table[];
37 
38 #endif
39