Files
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

85 lines
2.8 KiB
C

/*
* Copyright (C) 2015 MediaTek Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _VAL_API_PRIVATE_H_
#define _VAL_API_PRIVATE_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "val_types_private.h"
#include "val_api_public.h"
enum VAL_RESULT_T eValInit(unsigned long *a_phHalHandle);
enum VAL_RESULT_T eValDeInit(unsigned long *a_phHalHandle);
enum VAL_RESULT_T eVideoIntMemAlloc
(struct VAL_INTMEM_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoIntMemFree
(struct VAL_INTMEM_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoCreateEvent
(struct VAL_EVENT_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoSetEvent
(struct VAL_EVENT_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoCloseEvent
(struct VAL_EVENT_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoWaitEvent
(struct VAL_EVENT_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoCreateMutex
(struct VAL_MUTEX_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoCloseMutex
(struct VAL_MUTEX_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoWaitMutex
(struct VAL_MUTEX_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoReleaseMutex
(struct VAL_MUTEX_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoMMAP
(struct VAL_MMAP_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoUnMMAP
(struct VAL_MMAP_T *a_prParam, unsigned int a_u4ParamSize);
enum VAL_RESULT_T eVideoInitLockHW
(struct VAL_VCODEC_OAL_HW_REGISTER_T *prParam, int size);
enum VAL_RESULT_T eVideoDeInitLockHW
(struct VAL_VCODEC_OAL_HW_REGISTER_T *prParam, int size);
enum VAL_RESULT_T eVideoVCodecCoreLoading(int CPUid, int *Loading);
enum VAL_RESULT_T eVideoVCodecCoreNumber(int *CPUNums);
enum VAL_RESULT_T eVideoConfigMCIPort
(unsigned int u4PortConfig, unsigned int *pu4PortResult,
enum VAL_MEM_CODEC_T eMemCodec);
unsigned int eVideoHwM4UEnable(char bEnable);
/* for DirectLink Meta Mode + */
enum VAL_RESULT_T eVideoAllocMetaHandleList(unsigned long *a_MetaHandleList);
enum VAL_RESULT_T eVideoGetBufInfoFromMetaHandle(
unsigned long a_MetaHandleList,
void *a_pvInParam,
void *a_pvOutParam
);
enum VAL_RESULT_T eVideoFreeMetaHandleList(unsigned long a_MetaHandleList);
/* for DirectLink Meta Mode - */
#ifdef __cplusplus
}
#endif
#endif /* #ifndef _VAL_API_PRIVATE_H_ */