summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mtk-vcodec/vdec_vpu_if.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2022-03-13 11:18:13 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-03-18 05:56:51 +0100
commit728dc4075accb2821b595f650b5a6a64f42a9abe (patch)
treec6c8498c366e7029b36177f36de1f7afd524d32b /drivers/media/platform/mtk-vcodec/vdec_vpu_if.h
parent1cb72963fa1e3667936d069333923787037e9ffb (diff)
media: platform: rename mtk-vcodec/ to mediatek/mtk-vcodec/
As the end goal is to have platform drivers split by vendor, rename mtk-vcodec/ to mediatek/mtk-vcodec/. Acked-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/vdec_vpu_if.h')
-rw-r--r--drivers/media/platform/mtk-vcodec/vdec_vpu_if.h107
1 files changed, 0 insertions, 107 deletions
diff --git a/drivers/media/platform/mtk-vcodec/vdec_vpu_if.h b/drivers/media/platform/mtk-vcodec/vdec_vpu_if.h
deleted file mode 100644
index 4cb3c7f5a3ad..000000000000
--- a/drivers/media/platform/mtk-vcodec/vdec_vpu_if.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Copyright (c) 2016 MediaTek Inc.
- * Author: PC Chen <pc.chen@mediatek.com>
- */
-
-#ifndef _VDEC_VPU_IF_H_
-#define _VDEC_VPU_IF_H_
-
-#include "mtk_vcodec_fw.h"
-
-struct mtk_vcodec_ctx;
-
-/**
- * struct vdec_vpu_inst - VPU instance for video codec
- * @id : ipi msg id for each decoder
- * @core_id : core id used to separate different hardware
- * @vsi : driver structure allocated by VPU side and shared to AP side
- * for control and info share
- * @failure : VPU execution result status, 0: success, others: fail
- * @inst_addr : VPU decoder instance address
- * @fw_abi_version : ABI version of the firmware.
- * @inst_id : if fw_abi_version >= 2, contains the instance ID to be given
- * in place of inst_addr in messages.
- * @signaled : 1 - Host has received ack message from VPU, 0 - not received
- * @ctx : context for v4l2 layer integration
- * @dev : platform device of VPU
- * @wq : wait queue to wait VPU message ack
- * @handler : ipi handler for each decoder
- * @codec_type : use codec type to separate different codecs
- */
-struct vdec_vpu_inst {
- int id;
- int core_id;
- void *vsi;
- int32_t failure;
- uint32_t inst_addr;
- uint32_t fw_abi_version;
- uint32_t inst_id;
- unsigned int signaled;
- struct mtk_vcodec_ctx *ctx;
- wait_queue_head_t wq;
- mtk_vcodec_ipi_handler handler;
- unsigned int codec_type;
-};
-
-/**
- * vpu_dec_init - init decoder instance and allocate required resource in VPU.
- *
- * @vpu: instance for vdec_vpu_inst
- */
-int vpu_dec_init(struct vdec_vpu_inst *vpu);
-
-/**
- * vpu_dec_start - start decoding, basically the function will be invoked once
- * every frame.
- *
- * @vpu : instance for vdec_vpu_inst
- * @data: meta data to pass bitstream info to VPU decoder
- * @len : meta data length
- */
-int vpu_dec_start(struct vdec_vpu_inst *vpu, uint32_t *data, unsigned int len);
-
-/**
- * vpu_dec_end - end decoding, basically the function will be invoked once
- * when HW decoding done interrupt received successfully. The
- * decoder in VPU will continue to do reference frame management
- * and check if there is a new decoded frame available to display.
- *
- * @vpu : instance for vdec_vpu_inst
- */
-int vpu_dec_end(struct vdec_vpu_inst *vpu);
-
-/**
- * vpu_dec_deinit - deinit decoder instance and resource freed in VPU.
- *
- * @vpu: instance for vdec_vpu_inst
- */
-int vpu_dec_deinit(struct vdec_vpu_inst *vpu);
-
-/**
- * vpu_dec_reset - reset decoder, use for flush decoder when end of stream or
- * seek. Remainig non displayed frame will be pushed to display.
- *
- * @vpu: instance for vdec_vpu_inst
- */
-int vpu_dec_reset(struct vdec_vpu_inst *vpu);
-
-/**
- * vpu_dec_core - core start decoding, basically the function will be invoked once
- * every frame.
- *
- * @vpu : instance for vdec_vpu_inst
- */
-int vpu_dec_core(struct vdec_vpu_inst *vpu);
-
-/**
- * vpu_dec_core_end - core end decoding, basically the function will be invoked once
- * when core HW decoding done and receive interrupt successfully. The
- * decoder in VPU will updata hardware information and deinit hardware
- * and check if there is a new decoded frame available to display.
- *
- * @vpu : instance for vdec_vpu_inst
- */
-int vpu_dec_core_end(struct vdec_vpu_inst *vpu);
-
-#endif