#include <linux/pm_runtime.h>
#include "rga-hw.h"
#include "rga.h"
enum e_rga_start_pos { … };
struct rga_corners_addr_offset { … };
static unsigned int rga_get_scaling(unsigned int src, unsigned int dst)
{ … }
static struct rga_corners_addr_offset
rga_get_addr_offset(struct rga_frame *frm, struct rga_addr_offset *offset,
unsigned int x, unsigned int y, unsigned int w, unsigned int h)
{ … }
static struct rga_addr_offset *rga_lookup_draw_pos(struct
rga_corners_addr_offset
* offsets, u32 rotate_mode,
u32 mirr_mode)
{ … }
static void rga_cmd_set_src_addr(struct rga_ctx *ctx, dma_addr_t dma_addr)
{ … }
static void rga_cmd_set_src1_addr(struct rga_ctx *ctx, dma_addr_t dma_addr)
{ … }
static void rga_cmd_set_dst_addr(struct rga_ctx *ctx, dma_addr_t dma_addr)
{ … }
static void rga_cmd_set_trans_info(struct rga_ctx *ctx)
{ … }
static void rga_cmd_set_src_info(struct rga_ctx *ctx,
struct rga_addr_offset *offset)
{ … }
static void rga_cmd_set_dst_info(struct rga_ctx *ctx,
struct rga_addr_offset *offset)
{ … }
static void rga_cmd_set_mode(struct rga_ctx *ctx)
{ … }
static void rga_cmd_set(struct rga_ctx *ctx,
struct rga_vb_buffer *src, struct rga_vb_buffer *dst)
{ … }
void rga_hw_start(struct rockchip_rga *rga,
struct rga_vb_buffer *src, struct rga_vb_buffer *dst)
{ … }