#include "mtk_vcodec_dec_drv.h"
#include "vdec_drv_if.h"
#include "vdec_ipi_msg.h"
#include "vdec_vpu_if.h"
static void handle_init_ack_msg(const struct vdec_vpu_ipi_init_ack *msg)
{ … }
static void handle_get_param_msg_ack(const struct vdec_vpu_ipi_get_param_ack *msg)
{ … }
static bool vpu_dec_check_ap_inst(struct mtk_vcodec_dec_dev *dec_dev, struct vdec_vpu_inst *vpu)
{ … }
static void vpu_dec_ipi_handler(void *data, unsigned int len, void *priv)
{ … }
static int vcodec_vpu_send_msg(struct vdec_vpu_inst *vpu, void *msg, int len)
{ … }
static int vcodec_send_ap_ipi(struct vdec_vpu_inst *vpu, unsigned int msg_id)
{ … }
int vpu_dec_init(struct vdec_vpu_inst *vpu)
{ … }
int vpu_dec_start(struct vdec_vpu_inst *vpu, uint32_t *data, unsigned int len)
{ … }
int vpu_dec_get_param(struct vdec_vpu_inst *vpu, uint32_t *data,
unsigned int len, unsigned int param_type)
{ … }
int vpu_dec_core(struct vdec_vpu_inst *vpu)
{ … }
int vpu_dec_end(struct vdec_vpu_inst *vpu)
{ … }
int vpu_dec_core_end(struct vdec_vpu_inst *vpu)
{ … }
int vpu_dec_deinit(struct vdec_vpu_inst *vpu)
{ … }
int vpu_dec_reset(struct vdec_vpu_inst *vpu)
{ … }