xref: /rockchip-linux_mpp/mpp/base/inc/mpp_dec_cb_param.h (revision 437bfbeb9567cca9cd9080e3f6954aa9d6a94f18)
1*437bfbebSnyanmisaka /*
2*437bfbebSnyanmisaka  * Copyright 2020 Rockchip Electronics Co. LTD
3*437bfbebSnyanmisaka  *
4*437bfbebSnyanmisaka  * Licensed under the Apache License, Version 2.0 (the "License");
5*437bfbebSnyanmisaka  * you may not use this file except in compliance with the License.
6*437bfbebSnyanmisaka  * You may obtain a copy of the License at
7*437bfbebSnyanmisaka  *
8*437bfbebSnyanmisaka  *      http://www.apache.org/licenses/LICENSE-2.0
9*437bfbebSnyanmisaka  *
10*437bfbebSnyanmisaka  * Unless required by applicable law or agreed to in writing, software
11*437bfbebSnyanmisaka  * distributed under the License is distributed on an "AS IS" BASIS,
12*437bfbebSnyanmisaka  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*437bfbebSnyanmisaka  * See the License for the specific language governing permissions and
14*437bfbebSnyanmisaka  * limitations under the License.
15*437bfbebSnyanmisaka  */
16*437bfbebSnyanmisaka 
17*437bfbebSnyanmisaka #ifndef __MPP_DEC_CB_PARAM_H__
18*437bfbebSnyanmisaka #define __MPP_DEC_CB_PARAM_H__
19*437bfbebSnyanmisaka 
20*437bfbebSnyanmisaka #include "rk_type.h"
21*437bfbebSnyanmisaka 
22*437bfbebSnyanmisaka typedef enum MppDecCbCmd_e {
23*437bfbebSnyanmisaka     DEC_CALLBACK_NONE       = 0,
24*437bfbebSnyanmisaka 
25*437bfbebSnyanmisaka     DEC_CALLBACK_BASE       = 0x100,
26*437bfbebSnyanmisaka     DEC_PARSER_CALLBACK     = (DEC_CALLBACK_BASE + 1),
27*437bfbebSnyanmisaka     DEC_CALLBACK_CMD_BUTT,
28*437bfbebSnyanmisaka } MppDecCbCmd;
29*437bfbebSnyanmisaka 
30*437bfbebSnyanmisaka /* DEC_PARSER_CALLBACK */
31*437bfbebSnyanmisaka typedef struct DecCallBackParam_t {
32*437bfbebSnyanmisaka     void    *task;
33*437bfbebSnyanmisaka     RK_U32  *regs;
34*437bfbebSnyanmisaka     RK_U32  hard_err;
35*437bfbebSnyanmisaka } DecCbHalDone;
36*437bfbebSnyanmisaka 
37*437bfbebSnyanmisaka #endif /* __MPP_DEC_CB_PARAM_H__ */
38