1 /*
2  * g2d_top/g2d_top.h
3  *
4  * Copyright (c) 2007-2019 Allwinnertech Co., Ltd.
5  * Author: zhengxiaobin <zhengxiaobin@allwinnertech.com>
6  *
7  * This software is licensed under the terms of the GNU General Public
8  * License version 2, as published by the Free Software Foundation, and
9  * may be copied, distributed, and modified under those terms.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  */
17 #ifndef _G2D_TOP_H
18 #define _G2D_TOP_H
19 #include <typedef.h>
20 
21 
22 void g2d_top_set_base(unsigned long base);
23 __u32 g2d_top_get_rcq_frame_cnt(void);
24 __s32 g2d_top_rcq_cfg_irq_query(void);
25 __s32 g2d_top_rcq_task_irq_query(void);
26 __s32 g2d_bsp_reset(void);
27 void g2d_top_rcq_update_en(__u32 en);
28 void g2d_top_rcq_irq_en(__u32 en);
29 __s32 g2d_top_mixer_sclk_div(__u32 div);
30 __s32 g2d_top_rot_sclk_div(__u32 div);
31 __s32 g2d_top_rot_reset(void);
32 __s32 g2d_top_mixer_reset(void);
33 void g2d_top_set_rcq_head(u64 addr, __u32 len);
34 __s32 g2d_bsp_open(void);
35 __s32 g2d_bsp_close(void);
36 void g2d_mixer_scan_order_fun(__u32 scan_order);
37 __s32 g2d_mixer_irq_query(void);
38 void g2d_mixer_irq_en(__u32 en);
39 void g2d_mixer_start(__u32 start);
40 
41 #endif /*End of file*/
42