| .. | .. |
|---|
| 1 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | | -#ifndef __RGA_MMU_INFO_H__
|
|---|
| 3 | | -#define __RGA_MMU_INFO_H__
|
|---|
| 4 | | -
|
|---|
| 5 | | -#include "rga.h"
|
|---|
| 6 | | -
|
|---|
| 7 | | -#ifndef MIN
|
|---|
| 8 | | -#define MIN(X, Y) ((X)<(Y)?(X):(Y))
|
|---|
| 9 | | -#endif
|
|---|
| 10 | | -
|
|---|
| 11 | | -#ifndef MAX
|
|---|
| 12 | | -#define MAX(X, Y) ((X)>(Y)?(X):(Y))
|
|---|
| 13 | | -#endif
|
|---|
| 14 | | -
|
|---|
| 15 | | -
|
|---|
| 16 | | -int rga_set_mmu_info(struct rga_reg *reg, struct rga_req *req);
|
|---|
| 17 | | -
|
|---|
| 18 | | -
|
|---|
| 19 | | -#endif
|
|---|
| 20 | | -
|
|---|
| 21 | | -
|
|---|
| 2 | +#ifndef __RGA_MMU_INFO_H__ |
|---|
| 3 | +#define __RGA_MMU_INFO_H__ |
|---|
| 4 | + |
|---|
| 5 | +#include "rga.h" |
|---|
| 6 | +#include "RGA_API.h" |
|---|
| 7 | + |
|---|
| 8 | +#ifndef MIN |
|---|
| 9 | +#define MIN(X, Y) ((X)<(Y)?(X):(Y)) |
|---|
| 10 | +#endif |
|---|
| 11 | + |
|---|
| 12 | +#ifndef MAX |
|---|
| 13 | +#define MAX(X, Y) ((X)>(Y)?(X):(Y)) |
|---|
| 14 | +#endif |
|---|
| 15 | + |
|---|
| 16 | +extern struct rga_drvdata *rga_drvdata; |
|---|
| 17 | + |
|---|
| 18 | +void rga_dma_flush_range(void *pstart, void *pend); |
|---|
| 19 | +int rga_set_mmu_info(struct rga_reg *reg, struct rga_req *req); |
|---|
| 20 | + |
|---|
| 21 | + |
|---|
| 22 | +#endif |
|---|
| 23 | + |
|---|
| 24 | + |
|---|