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 <linux/types.h> 20 21 void g2d_top_set_base(unsigned long base); 22 __u32 g2d_top_get_rcq_frame_cnt(void); 23 __s32 g2d_top_rcq_cfg_irq_query(void); 24 __s32 g2d_top_rcq_task_irq_query(void); 25 __s32 g2d_bsp_reset(void); 26 void g2d_top_rcq_update_en(__u32 en); 27 void g2d_top_rcq_irq_en(__u32 en); 28 __s32 g2d_top_mixer_sclk_div(__u32 div); 29 __s32 g2d_top_rot_sclk_div(__u32 div); 30 __s32 g2d_top_rot_reset(void); 31 __s32 g2d_top_mixer_reset(void); 32 void g2d_top_set_rcq_head(u64 addr, __u32 len); 33 __s32 g2d_bsp_open(void); 34 __s32 g2d_bsp_close(void); 35 void g2d_mixer_scan_order_fun(__u32 scan_order); 36 __s32 g2d_mixer_irq_query(void); 37 void g2d_mixer_irq_en(__u32 en); 38 void g2d_mixer_start(__u32 start); 39 40 #endif /*End of file*/ 41