linux/drivers/media/platform/chips-media/coda/coda_regs.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * linux/drivers/media/platform/chips-media/coda_regs.h
 *
 * Copyright (C) 2012 Vista Silicon SL
 *    Javier Martin <[email protected]>
 *    Xavier Duret
 */

#ifndef _REGS_CODA_H_
#define _REGS_CODA_H_

/* HW registers */
#define CODA_REG_BIT_CODE_RUN
#define CODA_REG_RUN_ENABLE
#define CODA_REG_BIT_CODE_DOWN
#define CODA_DOWN_ADDRESS_SET(x)
#define CODA_DOWN_DATA_SET(x)
#define CODA_REG_BIT_HOST_IN_REQ
#define CODA_REG_BIT_INT_CLEAR
#define CODA_REG_BIT_INT_CLEAR_SET
#define CODA_REG_BIT_INT_STATUS
#define CODA_REG_BIT_CODE_RESET
#define CODA_REG_RESET_ENABLE
#define CODA_REG_BIT_CUR_PC
#define CODA9_REG_BIT_SW_RESET
#define CODA9_SW_RESET_BPU_CORE
#define CODA9_SW_RESET_BPU_BUS
#define CODA9_SW_RESET_VCE_CORE
#define CODA9_SW_RESET_VCE_BUS
#define CODA9_SW_RESET_GDI_CORE
#define CODA9_SW_RESET_GDI_BUS
#define CODA9_REG_BIT_SW_RESET_STATUS

/* Static SW registers */
#define CODA_REG_BIT_CODE_BUF_ADDR
#define CODA_REG_BIT_WORK_BUF_ADDR
#define CODA_REG_BIT_PARA_BUF_ADDR
#define CODA_REG_BIT_STREAM_CTRL
#define CODA7_STREAM_BUF_PIC_RESET
#define CODADX6_STREAM_BUF_PIC_RESET
#define CODA7_STREAM_BUF_PIC_FLUSH
#define CODADX6_STREAM_BUF_PIC_FLUSH
#define CODA7_STREAM_BUF_DYNALLOC_EN
#define CODADX6_STREAM_BUF_DYNALLOC_EN
#define CODADX6_STREAM_CHKDIS_OFFSET
#define CODA7_STREAM_SEL_64BITS_ENDIAN
#define CODA_STREAM_ENDIAN_SELECT
#define CODA_REG_BIT_FRAME_MEM_CTRL
#define CODA9_FRAME_ENABLE_BWB
#define CODA9_FRAME_TILED2LINEAR
#define CODA_FRAME_CHROMA_INTERLEAVE
#define CODA_IMAGE_ENDIAN_SELECT
#define CODA_REG_BIT_BIT_STREAM_PARAM
#define CODA_BIT_STREAM_END_FLAG
#define CODA_BIT_DEC_SEQ_INIT_ESCAPE
#define CODA_REG_BIT_TEMP_BUF_ADDR
#define CODA_REG_BIT_RD_PTR(x)
#define CODA_REG_BIT_WR_PTR(x)
#define CODA_REG_BIT_FRM_DIS_FLG(x)
#define CODADX6_REG_BIT_SEARCH_RAM_BASE_ADDR
#define CODA7_REG_BIT_AXI_SRAM_USE
#define CODA9_USE_HOST_BTP_ENABLE
#define CODA9_USE_HOST_OVL_ENABLE
#define CODA7_USE_HOST_ME_ENABLE
#define CODA9_USE_HOST_DBK_ENABLE
#define CODA7_USE_HOST_OVL_ENABLE
#define CODA7_USE_HOST_DBK_ENABLE
#define CODA9_USE_HOST_IP_ENABLE
#define CODA7_USE_HOST_IP_ENABLE
#define CODA9_USE_HOST_BIT_ENABLE
#define CODA7_USE_HOST_BIT_ENABLE
#define CODA9_USE_BTP_ENABLE
#define CODA7_USE_ME_ENABLE
#define CODA9_USE_OVL_ENABLE
#define CODA7_USE_OVL_ENABLE
#define CODA9_USE_DBK_ENABLE
#define CODA7_USE_DBK_ENABLE
#define CODA7_USE_IP_ENABLE
#define CODA7_USE_BIT_ENABLE

#define CODA_REG_BIT_BUSY
#define CODA_REG_BIT_BUSY_FLAG
#define CODA_REG_BIT_RUN_COMMAND
#define CODA_COMMAND_SEQ_INIT
#define CODA_COMMAND_SEQ_END
#define CODA_COMMAND_PIC_RUN
#define CODA_COMMAND_SET_FRAME_BUF
#define CODA_COMMAND_ENCODE_HEADER
#define CODA_COMMAND_ENC_PARA_SET
#define CODA_COMMAND_DEC_PARA_SET
#define CODA_COMMAND_DEC_BUF_FLUSH
#define CODA_COMMAND_RC_CHANGE_PARAMETER
#define CODA_COMMAND_FIRMWARE_GET
#define CODA_REG_BIT_RUN_INDEX
#define CODA_INDEX_SET(x)
#define CODA_REG_BIT_RUN_COD_STD
#define CODADX6_MODE_DECODE_MP4
#define CODADX6_MODE_ENCODE_MP4
#define CODADX6_MODE_DECODE_H264
#define CODADX6_MODE_ENCODE_H264
#define CODA7_MODE_DECODE_H264
#define CODA7_MODE_DECODE_VC1
#define CODA7_MODE_DECODE_MP2
#define CODA7_MODE_DECODE_MP4
#define CODA7_MODE_DECODE_DV3
#define CODA7_MODE_DECODE_RV
#define CODA7_MODE_DECODE_MJPG
#define CODA7_MODE_ENCODE_H264
#define CODA7_MODE_ENCODE_MP4
#define CODA7_MODE_ENCODE_MJPG
#define CODA9_MODE_DECODE_H264
#define CODA9_MODE_DECODE_VC1
#define CODA9_MODE_DECODE_MP2
#define CODA9_MODE_DECODE_MP4
#define CODA9_MODE_DECODE_DV3
#define CODA9_MODE_DECODE_RV
#define CODA9_MODE_DECODE_AVS
#define CODA9_MODE_DECODE_MJPG
#define CODA9_MODE_DECODE_VPX
#define CODA9_MODE_ENCODE_H264
#define CODA9_MODE_ENCODE_MP4
#define CODA9_MODE_ENCODE_MJPG
#define CODA_MODE_INVALID
#define CODA_REG_BIT_INT_ENABLE
#define CODA_INT_INTERRUPT_ENABLE
#define CODA_REG_BIT_INT_REASON
#define CODA7_REG_BIT_RUN_AUX_STD
#define CODA_MP4_AUX_MPEG4
#define CODA_MP4_AUX_DIVX3
#define CODA_VPX_AUX_THO
#define CODA_VPX_AUX_VP6
#define CODA_VPX_AUX_VP8
#define CODA_H264_AUX_AVC
#define CODA_H264_AUX_MVC

/*
 * Commands' mailbox:
 * registers with offsets in the range 0x180-0x1d0
 * have different meaning depending on the command being
 * issued.
 */

/* Decoder Sequence Initialization */
#define CODA_CMD_DEC_SEQ_BB_START
#define CODA_CMD_DEC_SEQ_BB_SIZE
#define CODA_CMD_DEC_SEQ_OPTION
#define CODA_NO_INT_ENABLE
#define CODA_REORDER_ENABLE
#define CODADX6_QP_REPORT
#define CODA7_MP4_DEBLK_ENABLE
#define CODA_CMD_DEC_SEQ_SRC_SIZE
#define CODA_CMD_DEC_SEQ_START_BYTE
#define CODA_CMD_DEC_SEQ_PS_BB_START
#define CODA_CMD_DEC_SEQ_PS_BB_SIZE
#define CODA_CMD_DEC_SEQ_JPG_THUMB_EN
#define CODA_CMD_DEC_SEQ_MP4_ASP_CLASS
#define CODA_MP4_CLASS_MPEG4
#define CODA_CMD_DEC_SEQ_X264_MV_EN
#define CODA_CMD_DEC_SEQ_SPP_CHUNK_SIZE

#define CODA7_RET_DEC_SEQ_ASPECT
#define CODA9_RET_DEC_SEQ_BITRATE
#define CODA_RET_DEC_SEQ_SUCCESS
#define CODA_RET_DEC_SEQ_SRC_FMT
#define CODA_RET_DEC_SEQ_SRC_SIZE
#define CODA_RET_DEC_SEQ_SRC_F_RATE
#define CODA9_RET_DEC_SEQ_ASPECT
#define CODA_RET_DEC_SEQ_FRAME_NEED
#define CODA_RET_DEC_SEQ_FRAME_DELAY
#define CODA_RET_DEC_SEQ_INFO
#define CODA_RET_DEC_SEQ_CROP_LEFT_RIGHT
#define CODA_RET_DEC_SEQ_CROP_TOP_BOTTOM
#define CODA_RET_DEC_SEQ_NEXT_FRAME_NUM
#define CODA_RET_DEC_SEQ_ERR_REASON
#define CODA_RET_DEC_SEQ_FRATE_NR
#define CODA_RET_DEC_SEQ_FRATE_DR
#define CODA_RET_DEC_SEQ_JPG_PARA
#define CODA_RET_DEC_SEQ_JPG_THUMB_IND
#define CODA7_RET_DEC_SEQ_HEADER_REPORT

/* Decoder Picture Run */
#define CODA_CMD_DEC_PIC_ROT_MODE
#define CODA_CMD_DEC_PIC_ROT_ADDR_Y
#define CODA9_CMD_DEC_PIC_ROT_INDEX
#define CODA_CMD_DEC_PIC_ROT_ADDR_CB
#define CODA9_CMD_DEC_PIC_ROT_ADDR_Y
#define CODA_CMD_DEC_PIC_ROT_ADDR_CR
#define CODA9_CMD_DEC_PIC_ROT_ADDR_CB
#define CODA_CMD_DEC_PIC_ROT_STRIDE
#define CODA9_CMD_DEC_PIC_ROT_ADDR_CR
#define CODA9_CMD_DEC_PIC_ROT_STRIDE

#define CODA_CMD_DEC_PIC_OPTION
#define CODA_PRE_SCAN_EN
#define CODA_PRE_SCAN_MODE_DECODE
#define CODA_PRE_SCAN_MODE_RETURN
#define CODA_IFRAME_SEARCH_EN
#define CODA_SKIP_FRAME_MODE
#define CODA_CMD_DEC_PIC_SKIP_NUM
#define CODA_CMD_DEC_PIC_CHUNK_SIZE
#define CODA_CMD_DEC_PIC_BB_START
#define CODA_CMD_DEC_PIC_START_BYTE
#define CODA_RET_DEC_PIC_SIZE
#define CODA_RET_DEC_PIC_FRAME_NUM
#define CODA_RET_DEC_PIC_FRAME_IDX
#define CODA_RET_DEC_PIC_ERR_MB
#define CODA_RET_DEC_PIC_TYPE
#define CODA_PIC_TYPE_MASK
#define CODA_PIC_TYPE_MASK_VC1
#define CODA9_PIC_TYPE_FIRST_MASK
#define CODA9_PIC_TYPE_IDR_MASK
#define CODA7_PIC_TYPE_H264_NPF_MASK
#define CODA7_PIC_TYPE_INTERLACED
#define CODA_RET_DEC_PIC_POST
#define CODA_RET_DEC_PIC_MVC_REPORT
#define CODA_RET_DEC_PIC_OPTION
#define CODA_RET_DEC_PIC_SUCCESS
#define CODA_RET_DEC_PIC_CUR_IDX
#define CODA_RET_DEC_PIC_CROP_LEFT_RIGHT
#define CODA_RET_DEC_PIC_CROP_TOP_BOTTOM
#define CODA_RET_DEC_PIC_FRAME_NEED

#define CODA9_RET_DEC_PIC_VP8_PIC_REPORT
#define CODA9_RET_DEC_PIC_ASPECT
#define CODA9_RET_DEC_PIC_VP8_SCALE_INFO
#define CODA9_RET_DEC_PIC_FRATE_NR
#define CODA9_RET_DEC_PIC_FRATE_DR

/* Encoder Sequence Initialization */
#define CODA_CMD_ENC_SEQ_BB_START
#define CODA_CMD_ENC_SEQ_BB_SIZE
#define CODA_CMD_ENC_SEQ_OPTION
#define CODA7_OPTION_AVCINTRA16X16ONLY_OFFSET
#define CODA9_OPTION_MVC_PREFIX_NAL_OFFSET
#define CODA7_OPTION_GAMMA_OFFSET
#define CODA9_OPTION_MVC_PARASET_REFRESH_OFFSET
#define CODA7_OPTION_RCQPMAX_OFFSET
#define CODA9_OPTION_GAMMA_OFFSET
#define CODADX6_OPTION_GAMMA_OFFSET
#define CODA7_OPTION_RCQPMIN_OFFSET
#define CODA9_OPTION_RCQPMAX_OFFSET
#define CODA_OPTION_LIMITQP_OFFSET
#define CODA_OPTION_RCINTRAQP_OFFSET
#define CODA_OPTION_FMO_OFFSET
#define CODA9_OPTION_MVC_INTERVIEW_OFFSET
#define CODA_OPTION_AVC_AUD_OFFSET
#define CODA_OPTION_SLICEREPORT_OFFSET
#define CODA_CMD_ENC_SEQ_COD_STD
#define CODA_STD_MPEG4
#define CODA9_STD_H264
#define CODA_STD_H263
#define CODA_STD_H264
#define CODA9_STD_MPEG4

#define CODA_CMD_ENC_SEQ_SRC_SIZE
#define CODA7_PICWIDTH_OFFSET
#define CODA7_PICWIDTH_MASK
#define CODADX6_PICWIDTH_OFFSET
#define CODADX6_PICWIDTH_MASK
#define CODA_PICHEIGHT_OFFSET
#define CODADX6_PICHEIGHT_MASK
#define CODA7_PICHEIGHT_MASK
#define CODA_CMD_ENC_SEQ_SRC_F_RATE
#define CODA_FRATE_RES_OFFSET
#define CODA_FRATE_RES_MASK
#define CODA_FRATE_DIV_OFFSET
#define CODA_FRATE_DIV_MASK
#define CODA_CMD_ENC_SEQ_MP4_PARA
#define CODA_MP4PARAM_VERID_OFFSET
#define CODA_MP4PARAM_VERID_MASK
#define CODA_MP4PARAM_INTRADCVLCTHR_OFFSET
#define CODA_MP4PARAM_INTRADCVLCTHR_MASK
#define CODA_MP4PARAM_REVERSIBLEVLCENABLE_OFFSET
#define CODA_MP4PARAM_REVERSIBLEVLCENABLE_MASK
#define CODA_MP4PARAM_DATAPARTITIONENABLE_OFFSET
#define CODA_MP4PARAM_DATAPARTITIONENABLE_MASK
#define CODA_CMD_ENC_SEQ_263_PARA
#define CODA_263PARAM_ANNEXJENABLE_OFFSET
#define CODA_263PARAM_ANNEXJENABLE_MASK
#define CODA_263PARAM_ANNEXKENABLE_OFFSET
#define CODA_263PARAM_ANNEXKENABLE_MASK
#define CODA_263PARAM_ANNEXTENABLE_OFFSET
#define CODA_263PARAM_ANNEXTENABLE_MASK
#define CODA_CMD_ENC_SEQ_264_PARA
#define CODA_264PARAM_DEBLKFILTEROFFSETBETA_OFFSET
#define CODA_264PARAM_DEBLKFILTEROFFSETBETA_MASK
#define CODA_264PARAM_DEBLKFILTEROFFSETALPHA_OFFSET
#define CODA_264PARAM_DEBLKFILTEROFFSETALPHA_MASK
#define CODA_264PARAM_DISABLEDEBLK_OFFSET
#define CODA_264PARAM_DISABLEDEBLK_MASK
#define CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_OFFSET
#define CODA_264PARAM_CONSTRAINEDINTRAPREDFLAG_MASK
#define CODA_264PARAM_CHROMAQPOFFSET_OFFSET
#define CODA_264PARAM_CHROMAQPOFFSET_MASK
#define CODA_CMD_ENC_SEQ_SLICE_MODE
#define CODA_SLICING_SIZE_OFFSET
#define CODA_SLICING_SIZE_MASK
#define CODA_SLICING_UNIT_OFFSET
#define CODA_SLICING_UNIT_MASK
#define CODA_SLICING_MODE_OFFSET
#define CODA_SLICING_MODE_MASK
#define CODA_CMD_ENC_SEQ_GOP_SIZE
#define CODA_GOP_SIZE_OFFSET
#define CODA_GOP_SIZE_MASK
#define CODA_CMD_ENC_SEQ_RC_PARA
#define CODA_RATECONTROL_AUTOSKIP_OFFSET
#define CODA_RATECONTROL_AUTOSKIP_MASK
#define CODA_RATECONTROL_INITIALDELAY_OFFSET
#define CODA_RATECONTROL_INITIALDELAY_MASK
#define CODA_RATECONTROL_BITRATE_OFFSET
#define CODA_RATECONTROL_BITRATE_MASK
#define CODA_RATECONTROL_ENABLE_OFFSET
#define CODA_RATECONTROL_ENABLE_MASK
#define CODA_CMD_ENC_SEQ_RC_BUF_SIZE
#define CODA_CMD_ENC_SEQ_INTRA_REFRESH
#define CODADX6_CMD_ENC_SEQ_FMO
#define CODA_FMOPARAM_TYPE_OFFSET
#define CODA_FMOPARAM_TYPE_MASK
#define CODA_FMOPARAM_SLICENUM_OFFSET
#define CODA_FMOPARAM_SLICENUM_MASK
#define CODADX6_CMD_ENC_SEQ_INTRA_QP
#define CODA7_CMD_ENC_SEQ_SEARCH_BASE
#define CODA7_CMD_ENC_SEQ_SEARCH_SIZE
#define CODA7_CMD_ENC_SEQ_INTRA_QP
#define CODA_CMD_ENC_SEQ_RC_QP_MIN_MAX
#define CODA_QPMIN_OFFSET
#define CODA_QPMIN_MASK
#define CODA_QPMAX_OFFSET
#define CODA_QPMAX_MASK
#define CODA_CMD_ENC_SEQ_RC_GAMMA
#define CODA_GAMMA_OFFSET
#define CODA_GAMMA_MASK
#define CODA_CMD_ENC_SEQ_RC_INTERVAL_MODE
#define CODA9_CMD_ENC_SEQ_INTRA_WEIGHT
#define CODA9_CMD_ENC_SEQ_ME_OPTION
#define CODA_RET_ENC_SEQ_SUCCESS

#define CODA_CMD_ENC_SEQ_JPG_PARA
#define CODA_CMD_ENC_SEQ_JPG_RST_INTERVAL
#define CODA_CMD_ENC_SEQ_JPG_THUMB_EN
#define CODA_CMD_ENC_SEQ_JPG_THUMB_SIZE
#define CODA_CMD_ENC_SEQ_JPG_THUMB_OFFSET

/* Encoder Parameter Change */
#define CODA_CMD_ENC_PARAM_CHANGE_ENABLE
#define CODA_PARAM_CHANGE_RC_GOP
#define CODA_PARAM_CHANGE_RC_INTRA_QP
#define CODA_PARAM_CHANGE_RC_BITRATE
#define CODA_PARAM_CHANGE_RC_FRAME_RATE
#define CODA_PARAM_CHANGE_INTRA_MB_NUM
#define CODA_PARAM_CHANGE_SLICE_MODE
#define CODA_PARAM_CHANGE_HEC_MODE
#define CODA_CMD_ENC_PARAM_RC_GOP
#define CODA_CMD_ENC_PARAM_RC_INTRA_QP
#define CODA_CMD_ENC_PARAM_RC_BITRATE
#define CODA_CMD_ENC_PARAM_RC_FRAME_RATE
#define CODA_CMD_ENC_PARAM_INTRA_MB_NUM
#define CODA_CMD_ENC_PARAM_SLICE_MODE
#define CODA_CMD_ENC_PARAM_HEC_MODE
#define CODA_RET_ENC_PARAM_CHANGE_SUCCESS

/* Encoder Picture Run */
#define CODA9_CMD_ENC_PIC_SRC_INDEX
#define CODA9_CMD_ENC_PIC_SRC_STRIDE
#define CODA9_CMD_ENC_PIC_SUB_FRAME_SYNC
#define CODA9_CMD_ENC_PIC_SRC_ADDR_Y
#define CODA9_CMD_ENC_PIC_SRC_ADDR_CB
#define CODA9_CMD_ENC_PIC_SRC_ADDR_CR
#define CODA_CMD_ENC_PIC_SRC_ADDR_Y
#define CODA_CMD_ENC_PIC_SRC_ADDR_CB
#define CODA_CMD_ENC_PIC_SRC_ADDR_CR
#define CODA_CMD_ENC_PIC_QS
#define CODA_CMD_ENC_PIC_ROT_MODE
#define CODA_ROT_MIR_ENABLE
#define CODA_ROT_0
#define CODA_ROT_90
#define CODA_ROT_180
#define CODA_ROT_270
#define CODA_MIR_NONE
#define CODA_MIR_VER
#define CODA_MIR_HOR
#define CODA_MIR_VER_HOR
#define CODA_CMD_ENC_PIC_OPTION
#define CODA_FORCE_IPICTURE
#define CODA_REPORT_MB_INFO
#define CODA_REPORT_MV_INFO
#define CODA_REPORT_SLICE_INFO
#define CODA_CMD_ENC_PIC_BB_START
#define CODA_CMD_ENC_PIC_BB_SIZE
#define CODA_RET_ENC_FRAME_NUM
#define CODA_RET_ENC_PIC_TYPE
#define CODA_RET_ENC_PIC_FRAME_IDX
#define CODA_RET_ENC_PIC_SLICE_NUM
#define CODA_RET_ENC_PIC_FLAG
#define CODA_RET_ENC_PIC_SUCCESS

/* Set Frame Buffer */
#define CODA_CMD_SET_FRAME_BUF_NUM
#define CODA_CMD_SET_FRAME_BUF_STRIDE
#define CODA_CMD_SET_FRAME_SLICE_BB_START
#define CODA_CMD_SET_FRAME_SLICE_BB_SIZE
#define CODA9_CMD_SET_FRAME_SUBSAMP_A
#define CODA9_CMD_SET_FRAME_SUBSAMP_B
#define CODA7_CMD_SET_FRAME_AXI_BIT_ADDR
#define CODA7_CMD_SET_FRAME_AXI_IPACDC_ADDR
#define CODA7_CMD_SET_FRAME_AXI_DBKY_ADDR
#define CODA7_CMD_SET_FRAME_AXI_DBKC_ADDR
#define CODA7_CMD_SET_FRAME_AXI_OVL_ADDR
#define CODA7_CMD_SET_FRAME_MAX_DEC_SIZE
#define CODA9_CMD_SET_FRAME_AXI_BTP_ADDR
#define CODA7_CMD_SET_FRAME_SOURCE_BUF_STRIDE
#define CODA9_CMD_SET_FRAME_CACHE_SIZE
#define CODA9_CMD_SET_FRAME_CACHE_CONFIG
#define CODA9_CACHE_BYPASS_OFFSET
#define CODA9_CACHE_DUALCONF_OFFSET
#define CODA9_CACHE_PAGEMERGE_OFFSET
#define CODA9_CACHE_LUMA_BUFFER_SIZE_OFFSET
#define CODA9_CACHE_CB_BUFFER_SIZE_OFFSET
#define CODA9_CACHE_CR_BUFFER_SIZE_OFFSET
#define CODA9_CMD_SET_FRAME_SUBSAMP_A_MVC
#define CODA9_CMD_SET_FRAME_SUBSAMP_B_MVC
#define CODA9_CMD_SET_FRAME_DP_BUF_BASE
#define CODA9_CMD_SET_FRAME_DP_BUF_SIZE
#define CODA9_CMD_SET_FRAME_MAX_DEC_SIZE
#define CODA9_CMD_SET_FRAME_DELAY

/* Encoder Header */
#define CODA_CMD_ENC_HEADER_CODE
#define CODA_GAMMA_OFFSET
#define CODA_HEADER_H264_SPS
#define CODA_HEADER_H264_PPS
#define CODA_HEADER_MP4V_VOL
#define CODA_HEADER_MP4V_VOS
#define CODA_HEADER_MP4V_VIS
#define CODA9_HEADER_FRAME_CROP
#define CODA_CMD_ENC_HEADER_BB_START
#define CODA_CMD_ENC_HEADER_BB_SIZE
#define CODA9_CMD_ENC_HEADER_FRAME_CROP_H
#define CODA9_CMD_ENC_HEADER_FRAME_CROP_V

/* Get Version */
#define CODA_CMD_FIRMWARE_VERNUM
#define CODA_FIRMWARE_PRODUCT(x)
#define CODA_FIRMWARE_MAJOR(x)
#define CODA_FIRMWARE_MINOR(x)
#define CODA_FIRMWARE_RELEASE(x)
#define CODA_FIRMWARE_VERNUM(product, major, minor, release)
#define CODA9_CMD_FIRMWARE_CODE_REV

#define CODA9_GDMA_BASE
#define CODA9_GDI_CONTROL
#define CODA9_GDI_PIC_INIT_HOST
#define CODA9_GDI_STATUS
#define CODA9_GDI_WPROT_ERR_CLR
#define CODA9_GDI_WPROT_RGN_EN

#define CODA9_GDI_BUS_CTRL
#define CODA9_GDI_BUS_STATUS

#define CODA9_GDI_INFO_CONTROL
#define CODA9_GDI_INFO_PIC_SIZE
#define CODA9_GDI_INFO_BASE_Y
#define CODA9_GDI_INFO_BASE_CB
#define CODA9_GDI_INFO_BASE_CR

#define CODA9_GDI_XY2_CAS_0
#define CODA9_GDI_XY2_CAS_F

#define CODA9_GDI_XY2_BA_0
#define CODA9_GDI_XY2_BA_1
#define CODA9_GDI_XY2_BA_2
#define CODA9_GDI_XY2_BA_3

#define CODA9_GDI_XY2_RAS_0
#define CODA9_GDI_XY2_RAS_F

#define CODA9_GDI_XY2_RBC_CONFIG
#define CODA9_XY2RBC_SEPARATE_MAP
#define CODA9_XY2RBC_TOP_BOT_SPLIT
#define CODA9_XY2RBC_TILED_MAP
#define CODA9_XY2RBC_CA_INC_HOR
#define CODA9_GDI_RBC2_AXI_0
#define CODA9_GDI_RBC2_AXI_1F
#define CODA9_GDI_TILEDBUF_BASE

#define CODA9_JPEG_BASE
#define CODA9_REG_JPEG_PIC_START
#define CODA9_REG_JPEG_PIC_STATUS
#define CODA9_JPEG_STATUS_OVERFLOW
#define CODA9_JPEG_STATUS_BBC_INT
#define CODA9_JPEG_STATUS_ERROR
#define CODA9_JPEG_STATUS_DONE
#define CODA9_REG_JPEG_PIC_ERRMB
#define CODA9_JPEG_ERRMB_RESTART_IDX_MASK
#define CODA9_JPEG_ERRMB_MCU_POS_X_MASK
#define CODA9_JPEG_ERRMB_MCU_POS_Y_MASK
#define CODA9_REG_JPEG_PIC_CTRL
#define CODA9_JPEG_PIC_CTRL_USER_HUFFMAN_EN
#define CODA9_JPEG_PIC_CTRL_TC_DIRECTION
#define CODA9_JPEG_PIC_CTRL_ENCODER_EN
#define CODA9_REG_JPEG_PIC_SIZE
#define CODA9_REG_JPEG_MCU_INFO
#define CODA9_JPEG_MCU_BLOCK_NUM_OFFSET
#define CODA9_JPEG_COMP_NUM_OFFSET
#define CODA9_JPEG_COMP0_INFO_OFFSET
#define CODA9_JPEG_COMP1_INFO_OFFSET
#define CODA9_JPEG_COMP2_INFO_OFFSET
#define CODA9_REG_JPEG_ROT_INFO
#define CODA9_JPEG_ROT_MIR_ENABLE
#define CODA9_JPEG_ROT_MIR_MODE_MASK
#define CODA9_REG_JPEG_SCL_INFO
#define CODA9_JPEG_SCL_ENABLE
#define CODA9_JPEG_SCL_HOR_MODE_MASK
#define CODA9_JPEG_SCL_VER_MODE_MASK
#define CODA9_REG_JPEG_IF_INFO
#define CODA9_JPEG_SENS_IF_CLR
#define CODA9_JPEG_DISP_IF_CLR
#define CODA9_REG_JPEG_OP_INFO
#define CODA9_JPEG_BUS_REQ_NUM_OFFSET
#define CODA9_JPEG_BUS_REQ_NUM_MASK
#define CODA9_REG_JPEG_DPB_CONFIG
#define CODA9_REG_JPEG_DPB_BASE00
#define CODA9_REG_JPEG_HUFF_CTRL
#define CODA9_REG_JPEG_HUFF_ADDR
#define CODA9_REG_JPEG_HUFF_DATA
#define CODA9_REG_JPEG_QMAT_CTRL
#define CODA9_REG_JPEG_QMAT_ADDR
#define CODA9_REG_JPEG_QMAT_DATA
#define CODA9_REG_JPEG_RST_INTVAL
#define CODA9_REG_JPEG_RST_INDEX
#define CODA9_REG_JPEG_RST_COUNT
#define CODA9_REG_JPEG_DPCM_DIFF_Y
#define CODA9_REG_JPEG_DPCM_DIFF_CB
#define CODA9_REG_JPEG_DPCM_DIFF_CR
#define CODA9_REG_JPEG_GBU_CTRL
#define CODA9_REG_JPEG_GBU_BT_PTR
#define CODA9_REG_JPEG_GBU_WD_PTR
#define CODA9_REG_JPEG_GBU_TT_CNT
#define CODA9_REG_JPEG_GBU_BBSR
#define CODA9_REG_JPEG_GBU_BBER
#define CODA9_REG_JPEG_GBU_BBIR
#define CODA9_REG_JPEG_GBU_BBHR
#define CODA9_REG_JPEG_GBU_BCNT
#define CODA9_REG_JPEG_GBU_FF_RPTR
#define CODA9_REG_JPEG_GBU_FF_WPTR
#define CODA9_REG_JPEG_BBC_END_ADDR
#define CODA9_REG_JPEG_BBC_WR_PTR
#define CODA9_REG_JPEG_BBC_RD_PTR
#define CODA9_REG_JPEG_BBC_EXT_ADDR
#define CODA9_REG_JPEG_BBC_INT_ADDR
#define CODA9_REG_JPEG_BBC_DATA_CNT
#define CODA9_REG_JPEG_BBC_COMMAND
#define CODA9_REG_JPEG_BBC_BUSY
#define CODA9_REG_JPEG_BBC_CTRL
#define CODA9_REG_JPEG_BBC_CUR_POS
#define CODA9_REG_JPEG_BBC_BAS_ADDR
#define CODA9_REG_JPEG_BBC_STRM_CTRL
#define CODA9_REG_JPEG_BBC_FLUSH_CMD

#endif