linux/drivers/staging/media/rkvdec/rkvdec-regs.h

/* SPDX-License-Identifier: GPL-2.0 */

#ifndef RKVDEC_REGS_H_
#define RKVDEC_REGS_H_

/* rkvcodec registers */
#define RKVDEC_REG_INTERRUPT
#define RKVDEC_INTERRUPT_DEC_E
#define RKVDEC_CONFIG_DEC_CLK_GATE_E
#define RKVDEC_E_STRMD_CLKGATE_DIS
#define RKVDEC_TIMEOUT_MODE
#define RKVDEC_IRQ_DIS
#define RKVDEC_TIMEOUT_E
#define RKVDEC_BUF_EMPTY_E
#define RKVDEC_STRM_E_WAITDECFIFO_EMPTY
#define RKVDEC_IRQ
#define RKVDEC_IRQ_RAW
#define RKVDEC_E_REWRITE_VALID
#define RKVDEC_COMMONIRQ_MODE
#define RKVDEC_RDY_STA
#define RKVDEC_BUS_STA
#define RKVDEC_ERR_STA
#define RKVDEC_TIMEOUT_STA
#define RKVDEC_BUF_EMPTY_STA
#define RKVDEC_COLMV_REF_ERR_STA
#define RKVDEC_CABU_END_STA
#define RKVDEC_H264ORVP9_ERR_MODE
#define RKVDEC_SOFTRST_EN_P
#define RKVDEC_FORCE_SOFTRESET_VALID
#define RKVDEC_SOFTRESET_RDY

#define RKVDEC_REG_SYSCTRL
#define RKVDEC_IN_ENDIAN
#define RKVDEC_IN_SWAP32_E
#define RKVDEC_IN_SWAP64_E
#define RKVDEC_STR_ENDIAN
#define RKVDEC_STR_SWAP32_E
#define RKVDEC_STR_SWAP64_E
#define RKVDEC_OUT_ENDIAN
#define RKVDEC_OUT_SWAP32_E
#define RKVDEC_OUT_CBCR_SWAP
#define RKVDEC_RLC_MODE_DIRECT_WRITE
#define RKVDEC_RLC_MODE
#define RKVDEC_STRM_START_BIT(x)
#define RKVDEC_MODE(x)
#define RKVDEC_MODE_H264
#define RKVDEC_MODE_VP9
#define RKVDEC_RPS_MODE
#define RKVDEC_STRM_MODE
#define RKVDEC_H264_STRM_LASTPKT
#define RKVDEC_H264_FIRSTSLICE_FLAG
#define RKVDEC_H264_FRAME_ORSLICE
#define RKVDEC_BUSPR_SLOT_DIS

#define RKVDEC_REG_PICPAR
#define RKVDEC_Y_HOR_VIRSTRIDE(x)
#define RKVDEC_SLICE_NUM_HIGHBIT
#define RKVDEC_UV_HOR_VIRSTRIDE(x)
#define RKVDEC_SLICE_NUM_LOWBITS(x)

#define RKVDEC_REG_STRM_RLC_BASE

#define RKVDEC_REG_STRM_LEN
#define RKVDEC_STRM_LEN(x)

#define RKVDEC_REG_CABACTBL_PROB_BASE
#define RKVDEC_REG_DECOUT_BASE

#define RKVDEC_REG_Y_VIRSTRIDE
#define RKVDEC_Y_VIRSTRIDE(x)

#define RKVDEC_REG_YUV_VIRSTRIDE
#define RKVDEC_YUV_VIRSTRIDE(x)
#define RKVDEC_REG_H264_BASE_REFER(i)

#define RKVDEC_REG_H264_BASE_REFER15
#define RKVDEC_FIELD_REF
#define RKVDEC_TOPFIELD_USED_REF
#define RKVDEC_BOTFIELD_USED_REF
#define RKVDEC_COLMV_USED_FLAG_REF

#define RKVDEC_REG_VP9_LAST_FRAME_BASE
#define RKVDEC_REG_VP9_GOLDEN_FRAME_BASE
#define RKVDEC_REG_VP9_ALTREF_FRAME_BASE

#define RKVDEC_REG_VP9_CPRHEADER_OFFSET
#define RKVDEC_VP9_CPRHEADER_OFFSET(x)

#define RKVDEC_REG_VP9_REFERLAST_BASE
#define RKVDEC_REG_VP9_REFERGOLDEN_BASE
#define RKVDEC_REG_VP9_REFERALFTER_BASE

#define RKVDEC_REG_VP9COUNT_BASE
#define RKVDEC_VP9COUNT_UPDATE_EN

#define RKVDEC_REG_VP9_SEGIDLAST_BASE
#define RKVDEC_REG_VP9_SEGIDCUR_BASE
#define RKVDEC_REG_VP9_FRAME_SIZE(i)
#define RKVDEC_VP9_FRAMEWIDTH(x)
#define RKVDEC_VP9_FRAMEHEIGHT(x)

#define RKVDEC_VP9_SEGID_GRP(i)
#define RKVDEC_SEGID_ABS_DELTA(x)
#define RKVDEC_SEGID_FRAME_QP_DELTA_EN(x)
#define RKVDEC_SEGID_FRAME_QP_DELTA(x)
#define RKVDEC_SEGID_FRAME_LOOPFILTER_VALUE_EN(x)
#define RKVDEC_SEGID_FRAME_LOOPFILTER_VALUE(x)
#define RKVDEC_SEGID_REFERINFO_EN(x)
#define RKVDEC_SEGID_REFERINFO(x)
#define RKVDEC_SEGID_FRAME_SKIP_EN(x)

#define RKVDEC_VP9_CPRHEADER_CONFIG
#define RKVDEC_VP9_TX_MODE(x)
#define RKVDEC_VP9_FRAME_REF_MODE(x)

#define RKVDEC_VP9_REF_SCALE(i)
#define RKVDEC_VP9_REF_HOR_SCALE(x)
#define RKVDEC_VP9_REF_VER_SCALE(x)

#define RKVDEC_VP9_REF_DELTAS_LASTFRAME
#define RKVDEC_REF_DELTAS_LASTFRAME(pos, val)

#define RKVDEC_VP9_INFO_LASTFRAME
#define RKVDEC_MODE_DELTAS_LASTFRAME(pos, val)
#define RKVDEC_SEG_EN_LASTFRAME
#define RKVDEC_LAST_SHOW_FRAME
#define RKVDEC_LAST_INTRA_ONLY
#define RKVDEC_LAST_WIDHHEIGHT_EQCUR
#define RKVDEC_COLOR_SPACE_LASTKEYFRAME(x)

#define RKVDEC_VP9_INTERCMD_BASE

#define RKVDEC_VP9_INTERCMD_NUM
#define RKVDEC_INTERCMD_NUM(x)

#define RKVDEC_VP9_LASTTILE_SIZE
#define RKVDEC_LASTTILE_SIZE(x)

#define RKVDEC_VP9_HOR_VIRSTRIDE(i)
#define RKVDEC_HOR_Y_VIRSTRIDE(x)
#define RKVDEC_HOR_UV_VIRSTRIDE(x)

#define RKVDEC_REG_H264_POC_REFER0(i)
#define RKVDEC_REG_H264_POC_REFER1(i)
#define RKVDEC_REG_H264_POC_REFER2(i)
#define RKVDEC_POC_REFER(x)

#define RKVDEC_REG_CUR_POC0
#define RKVDEC_REG_CUR_POC1
#define RKVDEC_CUR_POC(x)

#define RKVDEC_REG_RLCWRITE_BASE
#define RKVDEC_REG_PPS_BASE
#define RKVDEC_REG_RPS_BASE

#define RKVDEC_REG_STRMD_ERR_EN
#define RKVDEC_STRMD_ERR_EN(x)

#define RKVDEC_REG_STRMD_ERR_STA
#define RKVDEC_STRMD_ERR_STA(x)
#define RKVDEC_COLMV_ERR_REF_PICIDX(x)

#define RKVDEC_REG_STRMD_ERR_CTU
#define RKVDEC_STRMD_ERR_CTU(x)
#define RKVDEC_STRMD_ERR_CTU_YOFFSET(x)
#define RKVDEC_STRMFIFO_SPACE2FULL(x)
#define RKVDEC_VP9_ERR_EN_CTU0

#define RKVDEC_REG_SAO_CTU_POS
#define RKVDEC_SAOWR_XOFFSET(x)
#define RKVDEC_SAOWR_YOFFSET(x)

#define RKVDEC_VP9_LAST_FRAME_YSTRIDE
#define RKVDEC_VP9_GOLDEN_FRAME_YSTRIDE
#define RKVDEC_VP9_ALTREF_FRAME_YSTRIDE
#define RKVDEC_VP9_REF_YSTRIDE(x)

#define RKVDEC_VP9_LAST_FRAME_YUVSTRIDE
#define RKVDEC_VP9_REF_YUVSTRIDE(x)

#define RKVDEC_VP9_REF_COLMV_BASE

#define RKVDEC_REG_PERFORMANCE_CYCLE
#define RKVDEC_PERFORMANCE_CYCLE(x)

#define RKVDEC_REG_AXI_DDR_RDATA
#define RKVDEC_AXI_DDR_RDATA(x)

#define RKVDEC_REG_AXI_DDR_WDATA
#define RKVDEC_AXI_DDR_WDATA(x)

#define RKVDEC_REG_FPGADEBUG_RESET
#define RKVDEC_BUSIFD_RESETN
#define RKVDEC_CABAC_RESETN
#define RKVDEC_DEC_CTRL_RESETN
#define RKVDEC_TRANSD_RESETN
#define RKVDEC_INTRA_RESETN
#define RKVDEC_INTER_RESETN
#define RKVDEC_RECON_RESETN
#define RKVDEC_FILER_RESETN

#define RKVDEC_REG_PERFORMANCE_SEL
#define RKVDEC_PERF_SEL_CNT0(x)
#define RKVDEC_PERF_SEL_CNT1(x)
#define RKVDEC_PERF_SEL_CNT2(x)

#define RKVDEC_REG_PERFORMANCE_CNT(i)
#define RKVDEC_PERF_CNT(x)

#define RKVDEC_REG_H264_ERRINFO_BASE

#define RKVDEC_REG_H264_ERRINFO_NUM
#define RKVDEC_SLICEDEC_NUM(x)
#define RKVDEC_STRMD_DECT_ERR_FLAG
#define RKVDEC_ERR_PKT_NUM(x)

#define RKVDEC_REG_H264_ERR_E
#define RKVDEC_H264_ERR_EN_HIGHBITS(x)

#define RKVDEC_REG_PREF_LUMA_CACHE_COMMAND
#define RKVDEC_REG_PREF_CHR_CACHE_COMMAND

#endif /* RKVDEC_REGS_H_ */