.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | | -#ifndef __RGA_API_H__
|
---|
3 | | -#define __RGA_API_H__
|
---|
4 | | -
|
---|
5 | | -#include "rga_reg_info.h"
|
---|
6 | | -#include "rga.h"
|
---|
7 | | -
|
---|
8 | | -#define ENABLE 1
|
---|
9 | | -#define DISABLE 0
|
---|
10 | | -
|
---|
11 | | -int32_t RGA_gen_two_pro(struct rga_req *msg, struct rga_req *msg1);
|
---|
12 | | -
|
---|
13 | | -
|
---|
14 | | -
|
---|
15 | | -
|
---|
16 | | -
|
---|
17 | | -#endif
|
---|
| 2 | +#ifndef __RGA_API_H__ |
---|
| 3 | +#define __RGA_API_H__ |
---|
| 4 | + |
---|
| 5 | +#include <linux/miscdevice.h> |
---|
| 6 | +#include <linux/wakelock.h> |
---|
| 7 | + |
---|
| 8 | +#include "rga_reg_info.h" |
---|
| 9 | +#include "rga.h" |
---|
| 10 | + |
---|
| 11 | +#define ENABLE 1 |
---|
| 12 | +#define DISABLE 0 |
---|
| 13 | + |
---|
| 14 | +struct rga_drvdata { |
---|
| 15 | + struct miscdevice miscdev; |
---|
| 16 | + struct device *dev; |
---|
| 17 | + void *rga_base; |
---|
| 18 | + int irq; |
---|
| 19 | + |
---|
| 20 | + struct delayed_work power_off_work; |
---|
| 21 | + void (*rga_irq_callback)(int rga_retval); //callback function used by aync call |
---|
| 22 | + struct wake_lock wake_lock; |
---|
| 23 | + |
---|
| 24 | + struct clk *pd_rga; |
---|
| 25 | + struct clk *aclk_rga; |
---|
| 26 | + struct clk *hclk_rga; |
---|
| 27 | + |
---|
| 28 | + //#if defined(CONFIG_ION_ROCKCHIP) |
---|
| 29 | + struct ion_client *ion_client; |
---|
| 30 | + //#endif |
---|
| 31 | + char *version; |
---|
| 32 | +}; |
---|
| 33 | + |
---|
| 34 | +int32_t RGA_gen_two_pro(struct rga_req *msg, struct rga_req *msg1); |
---|
| 35 | + |
---|
| 36 | + |
---|
| 37 | + |
---|
| 38 | + |
---|
| 39 | + |
---|
| 40 | +#endif |
---|