hc
2023-12-06 d38611ca164021d018c1b23eee65bbebc09c63e0
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
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __RGA_API_H__
#define __RGA_API_H__
 
#include <linux/miscdevice.h>
#include <linux/wakelock.h>
 
#include "rga_reg_info.h"
#include "rga.h"
 
#define ENABLE      1
#define DISABLE     0
 
struct rga_drvdata {
   struct miscdevice miscdev;
   struct device *dev;
   void *rga_base;
   int irq;
 
   struct delayed_work power_off_work;
   void (*rga_irq_callback)(int rga_retval);   //callback function used by aync call
   struct wake_lock wake_lock;
 
   struct clk *pd_rga;
   struct clk *aclk_rga;
   struct clk *hclk_rga;
 
   //#if defined(CONFIG_ION_ROCKCHIP)
   struct ion_client *ion_client;
   //#endif
   char *version;
};
 
int32_t RGA_gen_two_pro(struct rga_req *msg, struct rga_req *msg1);
 
 
 
 
 
#endif