linux/drivers/media/platform/mediatek/vcodec/decoder/vdec_vpu_if.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2016 MediaTek Inc.
 * Author: PC Chen <[email protected]>
 */

#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)
{}

/*
 * vpu_dec_ipi_handler - Handler for VPU ipi message.
 *
 * @data: ipi message
 * @len : length of ipi message
 * @priv: callback private data which is passed by decoder when register.
 *
 * This function runs in interrupt context and it means there's an IPI MSG
 * from 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)
{}