linux/drivers/media/platform/verisilicon/hantro_g2_regs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2021, Collabora
 *
 * Author: Benjamin Gaignard <[email protected]>
 */

#ifndef HANTRO_G2_REGS_H_
#define HANTRO_G2_REGS_H_

#include "hantro.h"

#define G2_SWREG(nr)

#define G2_DEC_REG(b, s, m)

#define G2_REG_VERSION

#define G2_REG_INTERRUPT
#define G2_REG_INTERRUPT_DEC_RDY_INT
#define G2_REG_INTERRUPT_DEC_ABORT_E
#define G2_REG_INTERRUPT_DEC_IRQ_DIS
#define G2_REG_INTERRUPT_DEC_E

#define HEVC_DEC_MODE
#define VP9_DEC_MODE

#define BUS_WIDTH_32
#define BUS_WIDTH_64
#define BUS_WIDTH_128
#define BUS_WIDTH_256

#define g2_strm_swap
#define g2_strm_swap_old
#define g2_pic_swap
#define g2_dirmv_swap
#define g2_dirmv_swap_old
#define g2_tab0_swap_old
#define g2_tab1_swap_old
#define g2_tab2_swap_old

#define g2_mode
#define g2_compress_swap
#define g2_ref_compress_bypass
#define g2_out_rs_e
#define g2_out_dis
#define g2_out_filtering_dis
#define g2_write_mvs_e
#define g2_tab3_swap_old
#define g2_rscan_swap

#define g2_pic_width_in_cbs
#define g2_pic_height_in_cbs
#define g2_num_ref_frames

#define g2_start_bit
#define g2_scaling_list_e
#define g2_cb_qp_offset
#define g2_cr_qp_offset
#define g2_sign_data_hide
#define g2_tempor_mvp_e
#define g2_max_cu_qpd_depth
#define g2_cu_qpd_e
#define g2_pix_shift

#define g2_stream_len

#define g2_cabac_init_present
#define g2_weight_pred_e
#define g2_weight_bipr_idc
#define g2_filter_over_slices
#define g2_filter_over_tiles
#define g2_asym_pred_e
#define g2_sao_e
#define g2_pcm_filt_d
#define g2_slice_chqp_present
#define g2_dependent_slice
#define g2_filter_override
#define g2_strong_smooth_e
#define g2_filt_offset_beta
#define g2_filt_offset_tc
#define g2_slice_hdr_ext_e
#define g2_slice_hdr_ext_bits

#define g2_const_intra_e
#define g2_filt_ctrl_pres
#define g2_bit_depth_y
#define g2_bit_depth_c
#define g2_idr_pic_e
#define g2_bit_depth_pcm_y
#define g2_bit_depth_pcm_c
#define g2_bit_depth_y_minus8
#define g2_bit_depth_c_minus8
#define g2_rs_out_bit_depth
#define g2_output_8_bits
#define g2_output_format
#define g2_pp_pix_shift

#define g2_refidx1_active
#define g2_refidx0_active
#define g2_hdr_skip_length

#define g2_start_code_e
#define g2_init_qp_old
#define g2_init_qp
#define g2_num_tile_cols_old
#define g2_num_tile_cols
#define g2_num_tile_rows_old
#define g2_num_tile_rows
#define g2_tile_e
#define g2_entropy_sync_e

#define vp9_transform_mode
#define vp9_filt_sharpness
#define vp9_mcomp_filt_type
#define vp9_high_prec_mv_e
#define vp9_comp_pred_mode
#define vp9_gref_sign_bias
#define vp9_aref_sign_bias

#define g2_refer_lterm_e
#define g2_min_cb_size
#define g2_max_cb_size
#define g2_min_pcm_size
#define g2_max_pcm_size
#define g2_pcm_e
#define g2_transform_skip
#define g2_transq_bypass
#define g2_list_mod_e

#define hevc_min_trb_size
#define hevc_max_trb_size
#define hevc_max_intra_hierdepth
#define hevc_max_inter_hierdepth
#define hevc_parallel_merge

#define hevc_rlist_f0
#define hevc_rlist_f1
#define hevc_rlist_f2
#define hevc_rlist_b0
#define hevc_rlist_b1
#define hevc_rlist_b2

#define hevc_rlist_f3
#define hevc_rlist_f4
#define hevc_rlist_f5
#define hevc_rlist_b3
#define hevc_rlist_b4
#define hevc_rlist_b5

#define hevc_rlist_f6
#define hevc_rlist_f7
#define hevc_rlist_f8
#define hevc_rlist_b6
#define hevc_rlist_b7
#define hevc_rlist_b8

#define hevc_rlist_f9
#define hevc_rlist_f10
#define hevc_rlist_f11
#define hevc_rlist_b9
#define hevc_rlist_b10
#define hevc_rlist_b11

#define hevc_rlist_f12
#define hevc_rlist_f13
#define hevc_rlist_f14
#define hevc_rlist_b12
#define hevc_rlist_b13
#define hevc_rlist_b14

#define hevc_rlist_f15
#define hevc_rlist_b15

#define g2_partial_ctb_x
#define g2_partial_ctb_y
#define g2_pic_width_4x4
#define g2_pic_height_4x4

#define vp9_qp_delta_y_dc
#define vp9_qp_delta_ch_dc
#define vp9_qp_delta_ch_ac
#define vp9_last_sign_bias
#define vp9_lossless_e
#define vp9_comp_pred_var_ref1
#define vp9_comp_pred_var_ref0
#define vp9_comp_pred_fixed_ref
#define vp9_segment_temp_upd_e
#define vp9_segment_upd_e
#define vp9_segment_e

#define vp9_filt_level
#define vp9_refpic_seg0
#define vp9_skip_seg0
#define vp9_filt_level_seg0
#define vp9_quant_seg0

#define vp9_refpic_seg1
#define vp9_skip_seg1
#define vp9_filt_level_seg1
#define vp9_quant_seg1

#define vp9_refpic_seg2
#define vp9_skip_seg2
#define vp9_filt_level_seg2
#define vp9_quant_seg2

#define vp9_refpic_seg3
#define vp9_skip_seg3
#define vp9_filt_level_seg3
#define vp9_quant_seg3

#define vp9_refpic_seg4
#define vp9_skip_seg4
#define vp9_filt_level_seg4
#define vp9_quant_seg4

#define vp9_refpic_seg5
#define vp9_skip_seg5
#define vp9_filt_level_seg5
#define vp9_quant_seg5

#define hevc_cur_poc_00
#define hevc_cur_poc_01
#define hevc_cur_poc_02
#define hevc_cur_poc_03

#define hevc_cur_poc_04
#define hevc_cur_poc_05
#define hevc_cur_poc_06
#define hevc_cur_poc_07

#define hevc_cur_poc_08
#define hevc_cur_poc_09
#define hevc_cur_poc_10
#define hevc_cur_poc_11

#define hevc_cur_poc_12
#define hevc_cur_poc_13
#define hevc_cur_poc_14
#define hevc_cur_poc_15

#define vp9_refpic_seg6
#define vp9_skip_seg6
#define vp9_filt_level_seg6
#define vp9_quant_seg6

#define vp9_refpic_seg7
#define vp9_skip_seg7
#define vp9_filt_level_seg7
#define vp9_quant_seg7

#define vp9_lref_width
#define vp9_lref_height

#define vp9_gref_width
#define vp9_gref_height

#define vp9_aref_width
#define vp9_aref_height

#define vp9_lref_hor_scale
#define vp9_lref_ver_scale

#define vp9_gref_hor_scale
#define vp9_gref_ver_scale

#define vp9_aref_hor_scale
#define vp9_aref_ver_scale

#define vp9_filt_ref_adj_0
#define vp9_filt_ref_adj_1
#define vp9_filt_ref_adj_2
#define vp9_filt_ref_adj_3

#define vp9_filt_mb_adj_0
#define vp9_filt_mb_adj_1
#define vp9_filt_mb_adj_2
#define vp9_filt_mb_adj_3

#define g2_apf_threshold

#define g2_clk_gate_e
#define g2_double_buffer_e
#define g2_buswidth
#define g2_max_burst

#define g2_down_scale_e
#define g2_down_scale_y
#define g2_down_scale_x

#define G2_REG_CONFIG
#define G2_REG_CONFIG_DEC_CLK_GATE_E
#define G2_REG_CONFIG_DEC_CLK_GATE_IDLE_E

#define G2_OUT_LUMA_ADDR
#define G2_REF_LUMA_ADDR(i)
#define G2_VP9_SEGMENT_WRITE_ADDR
#define G2_VP9_SEGMENT_READ_ADDR
#define G2_OUT_CHROMA_ADDR
#define G2_REF_CHROMA_ADDR(i)
#define G2_OUT_MV_ADDR
#define G2_REF_MV_ADDR(i)
#define G2_TILE_SIZES_ADDR
#define G2_STREAM_ADDR
#define G2_HEVC_SCALING_LIST_ADDR
#define G2_VP9_CTX_COUNT_ADDR
#define G2_VP9_PROBS_ADDR
#define G2_RS_OUT_LUMA_ADDR
#define G2_RS_OUT_CHROMA_ADDR
#define G2_TILE_FILTER_ADDR
#define G2_TILE_SAO_ADDR
#define G2_TILE_BSD_ADDR
#define G2_DS_DST
#define G2_DS_DST_CHR

#define g2_strm_buffer_len
#define g2_strm_start_offset

#endif