summaryrefslogtreecommitdiff
path: root/bsp/allwinner/libraries/sunxi-hal/hal/source/g2d_rcq/g2d_top.h
blob: bb5828f09d32e5ee034a7d16f7c6ec5e9ee84517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * g2d_top/g2d_top.h
 *
 * Copyright (c) 2007-2019 Allwinnertech Co., Ltd.
 * Author: zhengxiaobin <[email protected]>
 *
 * This software is licensed under the terms of the GNU General Public
 * License version 2, as published by the Free Software Foundation, and
 * may be copied, distributed, and modified under those terms.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */
#ifndef _G2D_TOP_H
#define _G2D_TOP_H
#include <typedef.h>


void g2d_top_set_base(unsigned long base);
__u32 g2d_top_get_rcq_frame_cnt(void);
__s32 g2d_top_rcq_cfg_irq_query(void);
__s32 g2d_top_rcq_task_irq_query(void);
__s32 g2d_bsp_reset(void);
void g2d_top_rcq_update_en(__u32 en);
void g2d_top_rcq_irq_en(__u32 en);
__s32 g2d_top_mixer_sclk_div(__u32 div);
__s32 g2d_top_rot_sclk_div(__u32 div);
__s32 g2d_top_rot_reset(void);
__s32 g2d_top_mixer_reset(void);
void g2d_top_set_rcq_head(u64 addr, __u32 len);
__s32 g2d_bsp_open(void);
__s32 g2d_bsp_close(void);
void g2d_mixer_scan_order_fun(__u32 scan_order);
__s32 g2d_mixer_irq_query(void);
void g2d_mixer_irq_en(__u32 en);
void g2d_mixer_start(__u32 start);

#endif /*End of file*/