| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2016 MediaTek Inc. |
|---|
| 3 | 4 | * 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. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #ifndef _VDEC_DRV_BASE_ |
|---|
| 16 | 8 | #define _VDEC_DRV_BASE_ |
|---|
| 17 | | - |
|---|
| 18 | | -#include "mtk_vcodec_drv.h" |
|---|
| 19 | 9 | |
|---|
| 20 | 10 | #include "vdec_drv_if.h" |
|---|
| 21 | 11 | |
|---|
| .. | .. |
|---|
| 25 | 15 | * @ctx : [in] mtk v4l2 context |
|---|
| 26 | 16 | * @h_vdec : [out] driver handle |
|---|
| 27 | 17 | */ |
|---|
| 28 | | - int (*init)(struct mtk_vcodec_ctx *ctx, unsigned long *h_vdec); |
|---|
| 18 | + int (*init)(struct mtk_vcodec_ctx *ctx); |
|---|
| 29 | 19 | |
|---|
| 30 | 20 | /** |
|---|
| 31 | 21 | * (*decode)() - trigger decode |
|---|
| .. | .. |
|---|
| 34 | 24 | * @fb : [in] frame buffer to store decoded frame |
|---|
| 35 | 25 | * @res_chg : [out] resolution change happen |
|---|
| 36 | 26 | */ |
|---|
| 37 | | - int (*decode)(unsigned long h_vdec, struct mtk_vcodec_mem *bs, |
|---|
| 27 | + int (*decode)(void *h_vdec, struct mtk_vcodec_mem *bs, |
|---|
| 38 | 28 | struct vdec_fb *fb, bool *res_chg); |
|---|
| 39 | 29 | |
|---|
| 40 | 30 | /** |
|---|
| .. | .. |
|---|
| 43 | 33 | * @type : [in] input parameter type |
|---|
| 44 | 34 | * @out : [out] buffer to store query result |
|---|
| 45 | 35 | */ |
|---|
| 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, |
|---|
| 47 | 37 | void *out); |
|---|
| 48 | 38 | |
|---|
| 49 | 39 | /** |
|---|
| 50 | 40 | * (*deinit)() - deinitialize driver. |
|---|
| 51 | 41 | * @h_vdec : [in] driver handle to be deinit |
|---|
| 52 | 42 | */ |
|---|
| 53 | | - void (*deinit)(unsigned long h_vdec); |
|---|
| 43 | + void (*deinit)(void *h_vdec); |
|---|
| 54 | 44 | }; |
|---|
| 55 | 45 | |
|---|
| 56 | 46 | #endif |
|---|