g2d_top.h 1.3 KB

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