mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
5800571960
-----BEGIN PGP SIGNATURE----- iQFSBAABCAA8FiEEq68RxlopcLEwq+PEeb4+QwBBGIYFAlz8fAYeHHRvcnZhbGRz QGxpbnV4LWZvdW5kYXRpb24ub3JnAAoJEHm+PkMAQRiG1asH/3ySguxqtqL1MCBa 4/SZ37PHeWKMerfX6ZyJdgEqK3B+PWlmuLiOMNK5h2bPLzeQQQAmHU/mfKmpXqgB dHwUbG9yNnyUtTfsfRqAnCA6vpuw9Yb1oIzTCVQrgJLSWD0j7scBBvmzYqguOkto ThwigLUq3AILr8EfR4rh+GM+5Dn9OTEFAxwil9fPHQo7QoczwZxpURhScT6Co9TB DqLA3fvXbBvLs/CZy/S5vKM9hKzC+p39ApFTURvFPrelUVnythAM0dPDJg3pIn5u g+/+gDxDFa+7ANxvxO2ng1sJPDqJMeY/xmjJYlYyLpA33B7zLNk2vDHhAP06VTtr XCMhQ9s= =cb80 -----END PGP SIGNATURE----- Merge tag 'v5.2-rc4' into media/master There are some conflicts due to SPDX changes. We also have more patches being merged via media tree touching them. So, let's merge back from upstream and address those. Linux 5.2-rc4 * tag 'v5.2-rc4': (767 commits) Linux 5.2-rc4 MAINTAINERS: Karthikeyan Ramasubramanian is MIA i2c: xiic: Add max_read_len quirk lockref: Limit number of cmpxchg loop retries uaccess: add noop untagged_addr definition x86/insn-eval: Fix use-after-free access to LDT entry kbuild: use more portable 'command -v' for cc-cross-prefix s390/unwind: correct stack switching during unwind block, bfq: add weight symlink to the bfq.weight cgroup parameter cgroup: let a symlink too be created with a cftype file drm/nouveau/secboot/gp10[2467]: support newer FW to fix SEC2 failures on some boards drm/nouveau/secboot: enable loading of versioned LS PMU/SEC2 ACR msgqueue FW drm/nouveau/secboot: split out FW version-specific LS function pointers drm/nouveau/secboot: pass max supported FW version to LS load funcs drm/nouveau/core: support versioned firmware loading drm/nouveau/core: pass subdev into nvkm_firmware_get, rather than device block: free sched's request pool in blk_cleanup_queue pktgen: do not sleep with the thread lock held. net: mvpp2: Use strscpy to handle stat strings net: rds: fix memory leak in rds_ib_flush_mr_pool ... Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
53 lines
1.5 KiB
C
53 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2016 MediaTek Inc.
|
|
* Author: PoChun Lin <pochun.lin@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _VENC_VPU_IF_H_
|
|
#define _VENC_VPU_IF_H_
|
|
|
|
#include "mtk_vpu.h"
|
|
#include "venc_drv_if.h"
|
|
|
|
/*
|
|
* struct venc_vpu_inst - encoder VPU driver instance
|
|
* @wq_hd: wait queue used for vpu cmd trigger then wait vpu interrupt done
|
|
* @signaled: flag used for checking vpu interrupt done
|
|
* @failure: flag to show vpu cmd succeeds or not
|
|
* @state: enum venc_ipi_msg_enc_state
|
|
* @bs_size: bitstream size for skip frame case usage
|
|
* @is_key_frm: key frame flag
|
|
* @inst_addr: VPU instance addr
|
|
* @vsi: driver structure allocated by VPU side and shared to AP side for
|
|
* control and info share
|
|
* @id: the id of inter-processor interrupt
|
|
* @ctx: context for v4l2 layer integration
|
|
* @dev: device for v4l2 layer integration
|
|
*/
|
|
struct venc_vpu_inst {
|
|
wait_queue_head_t wq_hd;
|
|
int signaled;
|
|
int failure;
|
|
int state;
|
|
int bs_size;
|
|
int is_key_frm;
|
|
unsigned int inst_addr;
|
|
void *vsi;
|
|
enum ipi_id id;
|
|
struct mtk_vcodec_ctx *ctx;
|
|
struct platform_device *dev;
|
|
};
|
|
|
|
int vpu_enc_init(struct venc_vpu_inst *vpu);
|
|
int vpu_enc_set_param(struct venc_vpu_inst *vpu,
|
|
enum venc_set_param_type id,
|
|
struct venc_enc_param *param);
|
|
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
|
|
struct venc_frm_buf *frm_buf,
|
|
struct mtk_vcodec_mem *bs_buf,
|
|
unsigned int *bs_size);
|
|
int vpu_enc_deinit(struct venc_vpu_inst *vpu);
|
|
|
|
#endif
|