forked from Minki/linux
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>
51 lines
1.5 KiB
C
51 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2016 MediaTek Inc.
|
|
* Author: PC Chen <pc.chen@mediatek.com>
|
|
* Tiffany Lin <tiffany.lin@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _MTK_VCODEC_ENC_H_
|
|
#define _MTK_VCODEC_ENC_H_
|
|
|
|
#include <media/videobuf2-core.h>
|
|
#include <media/videobuf2-v4l2.h>
|
|
|
|
#define MTK_VENC_IRQ_STATUS_SPS 0x1
|
|
#define MTK_VENC_IRQ_STATUS_PPS 0x2
|
|
#define MTK_VENC_IRQ_STATUS_FRM 0x4
|
|
#define MTK_VENC_IRQ_STATUS_DRAM 0x8
|
|
#define MTK_VENC_IRQ_STATUS_PAUSE 0x10
|
|
#define MTK_VENC_IRQ_STATUS_SWITCH 0x20
|
|
|
|
#define MTK_VENC_IRQ_STATUS_OFFSET 0x05C
|
|
#define MTK_VENC_IRQ_ACK_OFFSET 0x060
|
|
|
|
/**
|
|
* struct mtk_video_enc_buf - Private data related to each VB2 buffer.
|
|
* @vb: Pointer to related VB2 buffer.
|
|
* @list: list that buffer link to
|
|
* @param_change: Types of encode parameter change before encoding this
|
|
* buffer
|
|
* @enc_params: Encode parameters changed before encode this buffer
|
|
*/
|
|
struct mtk_video_enc_buf {
|
|
struct vb2_v4l2_buffer vb;
|
|
struct list_head list;
|
|
u32 param_change;
|
|
struct mtk_enc_params enc_params;
|
|
};
|
|
|
|
extern const struct v4l2_ioctl_ops mtk_venc_ioctl_ops;
|
|
extern const struct v4l2_m2m_ops mtk_venc_m2m_ops;
|
|
|
|
int mtk_venc_unlock(struct mtk_vcodec_ctx *ctx);
|
|
int mtk_venc_lock(struct mtk_vcodec_ctx *ctx);
|
|
int mtk_vcodec_enc_queue_init(void *priv, struct vb2_queue *src_vq,
|
|
struct vb2_queue *dst_vq);
|
|
void mtk_vcodec_enc_release(struct mtk_vcodec_ctx *ctx);
|
|
int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx);
|
|
void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_ctx *ctx);
|
|
|
|
#endif /* _MTK_VCODEC_ENC_H_ */
|