diff options
Diffstat (limited to 'drivers/mxc/vpu-malone/Malone_Firmware/DecKLib/KernelIF/DecKernelLibPrivate.h')
-rwxr-xr-x | drivers/mxc/vpu-malone/Malone_Firmware/DecKLib/KernelIF/DecKernelLibPrivate.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/drivers/mxc/vpu-malone/Malone_Firmware/DecKLib/KernelIF/DecKernelLibPrivate.h b/drivers/mxc/vpu-malone/Malone_Firmware/DecKLib/KernelIF/DecKernelLibPrivate.h new file mode 100755 index 000000000000..a3dd00f62272 --- /dev/null +++ b/drivers/mxc/vpu-malone/Malone_Firmware/DecKLib/KernelIF/DecKernelLibPrivate.h @@ -0,0 +1,69 @@ +/*************************************************** + Copyright (c) 2015 Amphion Semiconductor Ltd + All rights reserved. + *************************************************** + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + **************************************************** + + Filename: DecKernelPrivate.h + Description: Decoder Library Private header file - not + for inclusion by code outside of decoder lib. + Author: Media IP FW team (Belfast & Shanghai) + + *******************************************************/ + +///////////////////////////////////////////////////////////////////////////////// +// Header files +///////////////////////////////////////////////////////////////////////////////// + +#include "DecKernelLib.h" + +/* Include NO other files here */ + +#ifndef _DECODER_KERN_LIB_PRIV_H_ +#define _DECODER_KERN_LIB_PRIV_H_ + + +///////////////////////////////////////////////////////////////////////////////// +// Global Macros +///////////////////////////////////////////////////////////////////////////////// + +///////////////////////////////////////////////////////////////////////////////// +// Global Structures +///////////////////////////////////////////////////////////////////////////////// + +////////////////////////////////////////////////////////////// +// DecoderLib Context structure + +typedef struct decoderlib_inst +{ + bool bInit; + u_int32 uNumMalones; + /* One per Malone, kernel lib only has concept of Malone hardware, not */ + /* the individual streams running on it! */ + DecKernelLib_Isr_Callback_t pfCallback[DECODERLIB_MAX_MALONES]; + +} DEC_KERNEL_LIB; + +///////////////////////////////////////////////////////////////////////////////// +// Function Prototypes +///////////////////////////////////////////////////////////////////////////////// + +MEDIAIP_FW_STATUS internal_decoder_kernel_lib_init ( DECODERLIB_KERNEL_CFG * pCfg ); + +void internal_decoder_kernel_lib_register_isr_callback ( u_int32 uMalIdx, + DecKernelLib_Isr_Callback_t pfCallback + ); + + void internal_decoder_kernel_lib_parse_cfg ( DECODERLIB_KERNEL_CFG * pCfg, + bool bCheck + ); + +#endif /* _DECODER_KERN_LIB_PRIV_H_ */ + +/* End of File */ |