linux/drivers/media/platform/samsung/s5p-mfc/regs-mfc-v7.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Register definition file for Samsung MFC V7.x Interface (FIMV) driver
 *
 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com/
 */

#ifndef _REGS_MFC_V7_H
#define _REGS_MFC_V7_H

#include "regs-mfc-v6.h"

/* Additional features of v7 */
#define S5P_FIMV_CODEC_VP8_ENC_V7

/* Additional registers for v7 */
#define S5P_FIMV_E_SOURCE_FIRST_ADDR_V7
#define S5P_FIMV_E_SOURCE_SECOND_ADDR_V7
#define S5P_FIMV_E_SOURCE_THIRD_ADDR_V7
#define S5P_FIMV_E_SOURCE_FIRST_STRIDE_V7
#define S5P_FIMV_E_SOURCE_SECOND_STRIDE_V7
#define S5P_FIMV_E_SOURCE_THIRD_STRIDE_V7

#define S5P_FIMV_E_ENCODED_SOURCE_FIRST_ADDR_V7
#define S5P_FIMV_E_ENCODED_SOURCE_SECOND_ADDR_V7
#define S5P_FIMV_E_ENCODED_SOURCE_THIRD_ADDR_V7

#define S5P_FIMV_E_VP8_OPTIONS_V7
#define S5P_FIMV_E_VP8_FILTER_OPTIONS_V7
#define S5P_FIMV_E_VP8_GOLDEN_FRAME_OPTION_V7
#define S5P_FIMV_E_VP8_NUM_T_LAYER_V7

/* MFCv7 variant defines */
#define MAX_FW_SIZE_V7
#define MAX_CPB_SIZE_V7
#define MFC_VERSION_V7
#define MFC_NUM_PORTS_V7

#define MFC_LUMA_PAD_BYTES_V7
#define MFC_CHROMA_PAD_BYTES_V7

/* MFCv7 Context buffer sizes */
#define MFC_CTX_BUF_SIZE_V7
#define MFC_H264_DEC_CTX_BUF_SIZE_V7
#define MFC_OTHER_DEC_CTX_BUF_SIZE_V7
#define MFC_H264_ENC_CTX_BUF_SIZE_V7
#define MFC_OTHER_ENC_CTX_BUF_SIZE_V7

/* Buffer size defines */
#define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V7(w, h)

#define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V7(w, h)

#endif /*_REGS_MFC_V7_H*/