hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/platform/mtk-vcodec/vdec_drv_base.h
....@@ -1,21 +1,11 @@
1
+/* SPDX-License-Identifier: GPL-2.0 */
12 /*
23 * Copyright (c) 2016 MediaTek Inc.
34 * Author: PC Chen <pc.chen@mediatek.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #ifndef _VDEC_DRV_BASE_
168 #define _VDEC_DRV_BASE_
17
-
18
-#include "mtk_vcodec_drv.h"
199
2010 #include "vdec_drv_if.h"
2111
....@@ -25,7 +15,7 @@
2515 * @ctx : [in] mtk v4l2 context
2616 * @h_vdec : [out] driver handle
2717 */
28
- int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec);
18
+ int (*init)(struct mtk_vcodec_ctx *ctx);
2919
3020 /**
3121 * (*decode)() - trigger decode
....@@ -34,7 +24,7 @@
3424 * @fb : [in] frame buffer to store decoded frame
3525 * @res_chg : [out] resolution change happen
3626 */
37
- int (*decode)(unsigned long h_vdec, struct mtk_vcodec_mem *bs,
27
+ int (*decode)(void *h_vdec, struct mtk_vcodec_mem *bs,
3828 struct vdec_fb *fb, bool *res_chg);
3929
4030 /**
....@@ -43,14 +33,14 @@
4333 * @type : [in] input parameter type
4434 * @out : [out] buffer to store query result
4535 */
46
- int (*get_param)(unsigned long h_vdec, enum vdec_get_param_type type,
36
+ int (*get_param)(void *h_vdec, enum vdec_get_param_type type,
4737 void *out);
4838
4939 /**
5040 * (*deinit)() - deinitialize driver.
5141 * @h_vdec : [in] driver handle to be deinit
5242 */
53
- void (*deinit)(unsigned long h_vdec);
43
+ void (*deinit)(void *h_vdec);
5444 };
5545
5646 #endif