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

100 lines
2.4 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 _HAL_API_H_
#define _HAL_API_H_
#include "val_types_public.h"
#include "hal_types_private.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @par Function
* eHalInit
* @par Description
* The init hal driver function
* @param
* a_phHalHandle [IN/OUT] The hal handle
* @param
* a_eHalCodecType [IN] VDEC or VENC
* @par Returns
* VAL_RESULT_T,
* return VAL_RESULT_NO_ERROR if success,
* return VAL_RESULT_INVALID_DRIVER or VAL_RESULT_INVALID_MEMORY if failed
*/
VAL_RESULT_T eHalInit(unsigned long *a_phHalHandle,
HAL_CODEC_TYPE_T a_eHalCodecType);
/**
* @par Function
* eHalDeInit
* @par Description
* The deinit hal driver function
* @param
* a_phHalHandle [IN/OUT] The hal handle
* @par Returns
* VAL_RESULT_T, return VAL_RESULT_NO_ERROR if success, return else if failed
*/
VAL_RESULT_T eHalDeInit(unsigned long *a_phHalHandle);
/**
* @par Function
* eHalGetMMAP
* @par Description
* The get hw register memory map to vitural address function
* @param
* a_hHalHandle [IN/OUT] The hal handle
* @param
* RegAddr [IN] hw register address
* @par Returns
* unsigned int, vitural address of hw register memory mapping
*/
unsigned long eHalGetMMAP(unsigned long *a_hHalHandle, unsigned int RegAddr);
/**
* @par Function
* eHalCmdProc
* @par Description
* The hal command processing function
* @param
* a_hHalHandle [IN/OUT] The hal handle
* @param
* a_eHalCmd [IN] The hal command structure
* @param
* a_pvInParam [IN] The hal input parameter
* @param
* a_pvOutParam [OUT] The hal output parameter
* @par Returns
* VAL_RESULT_T, return VAL_RESULT_NO_ERROR if success, return else if failed
*/
VAL_RESULT_T eHalCmdProc(
unsigned long *a_hHalHandle,
HAL_CMD_T a_eHalCmd,
void *a_pvInParam,
void *a_pvOutParam
);
#ifdef __cplusplus
}
#endif
#endif /* #ifndef _HAL_API_H_ */