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

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

#ifndef _ROCKCHIP_VPU981_REGS_H_
#define _ROCKCHIP_VPU981_REGS_H_

#include "hantro.h"

#define AV1_SWREG(nr)

#define AV1_DEC_REG(b, s, m)

#define AV1_REG_INTERRUPT
#define AV1_REG_INTERRUPT_DEC_RDY_INT

#define AV1_REG_CONFIG
#define AV1_REG_CONFIG_DEC_CLK_GATE_E

#define av1_dec_e
#define av1_dec_abort_e
#define av1_dec_tile_int_e

#define av1_dec_clk_gate_e

#define av1_dec_out_ec_bypass
#define av1_write_mvs_e
#define av1_filtering_dis
#define av1_dec_out_dis
#define av1_dec_out_ec_byte_word
#define av1_skip_mode
#define av1_dec_mode

#define av1_ref_frames
#define av1_pic_height_in_cbs
#define av1_pic_width_in_cbs

#define av1_ref_scaling_enable
#define av1_filt_level_base_gt32
#define av1_error_resilient
#define av1_force_interger_mv
#define av1_allow_intrabc
#define av1_allow_screen_content_tools
#define av1_reduced_tx_set_used
#define av1_enable_dual_filter
#define av1_enable_jnt_comp
#define av1_allow_filter_intra
#define av1_enable_intra_edge_filter
#define av1_tempor_mvp_e
#define av1_allow_interintra
#define av1_allow_masked_compound
#define av1_enable_cdef
#define av1_switchable_motion_mode
#define av1_show_frame
#define av1_superres_is_scaled
#define av1_allow_warp
#define av1_disable_cdf_update
#define av1_preskip_segid
#define av1_delta_lf_present
#define av1_delta_lf_multi
#define av1_delta_lf_res_log
#define av1_strm_start_bit

#define av1_stream_len

#define av1_delta_q_present
#define av1_delta_q_res_log
#define av1_cdef_damping
#define av1_cdef_bits
#define av1_apply_grain
#define av1_num_y_points_b
#define av1_num_cb_points_b
#define av1_num_cr_points_b
#define av1_overlap_flag
#define av1_clip_to_restricted_range
#define av1_chroma_scaling_from_luma
#define av1_random_seed
#define av1_blackwhite_e

#define av1_scaling_shift
#define av1_bit_depth_c_minus8
#define av1_bit_depth_y_minus8
#define av1_quant_base_qindex
#define av1_idr_pic_e
#define av1_superres_pic_width

#define av1_ref4_sign_bias
#define av1_ref5_sign_bias
#define av1_ref6_sign_bias
#define av1_mf1_type
#define av1_mf2_type
#define av1_mf3_type
#define av1_scale_denom_minus9
#define av1_last_active_seg
#define av1_context_update_tile_id

#define av1_tile_transpose
#define av1_tile_enable
#define av1_multicore_full_width
#define av1_num_tile_rows_8k
#define av1_num_tile_cols_8k
#define av1_multicore_tile_start_x

#define av1_use_temporal3_mvs
#define av1_use_temporal2_mvs
#define av1_use_temporal1_mvs
#define av1_use_temporal0_mvs
#define av1_comp_pred_mode
#define av1_high_prec_mv_e
#define av1_mcomp_filt_type
#define av1_multicore_expect_context_update
#define av1_multicore_sbx_offset
#define av1_multicore_tile_col
#define av1_transform_mode
#define av1_dec_tile_size_mag

#define av1_seg_quant_sign
#define av1_max_cb_size
#define av1_min_cb_size
#define av1_comp_pred_fixed_ref
#define av1_multicore_tile_width
#define av1_pic_height_pad
#define av1_pic_width_pad

#define av1_segment_e
#define av1_segment_upd_e
#define av1_segment_temp_upd_e
#define av1_comp_pred_var_ref0_av1
#define av1_comp_pred_var_ref1_av1
#define av1_lossless_e
#define av1_qp_delta_ch_ac_av1
#define av1_qp_delta_ch_dc_av1
#define av1_qp_delta_y_dc_av1

#define av1_quant_seg0
#define av1_filt_level_seg0
#define av1_skip_seg0
#define av1_refpic_seg0
#define av1_filt_level_delta0_seg0
#define av1_filt_level0

#define av1_quant_seg1
#define av1_filt_level_seg1
#define av1_skip_seg1
#define av1_refpic_seg1
#define av1_filt_level_delta0_seg1
#define av1_filt_level1

#define av1_quant_seg2
#define av1_filt_level_seg2
#define av1_skip_seg2
#define av1_refpic_seg2
#define av1_filt_level_delta0_seg2
#define av1_filt_level2

#define av1_quant_seg3
#define av1_filt_level_seg3
#define av1_skip_seg3
#define av1_refpic_seg3
#define av1_filt_level_delta0_seg3
#define av1_filt_level3

#define av1_quant_seg4
#define av1_filt_level_seg4
#define av1_skip_seg4
#define av1_refpic_seg4
#define av1_filt_level_delta0_seg4
#define av1_lr_type

#define av1_quant_seg5
#define av1_filt_level_seg5
#define av1_skip_seg5
#define av1_refpic_seg5
#define av1_filt_level_delta0_seg5
#define av1_lr_unit_size

#define av1_filt_level_delta1_seg0
#define av1_filt_level_delta2_seg0
#define av1_filt_level_delta3_seg0
#define av1_global_mv_seg0
#define av1_mf1_last_offset

#define av1_filt_level_delta1_seg1
#define av1_filt_level_delta2_seg1
#define av1_filt_level_delta3_seg1
#define av1_global_mv_seg1
#define av1_mf1_last2_offset

#define av1_filt_level_delta1_seg2
#define av1_filt_level_delta2_seg2
#define av1_filt_level_delta3_seg2
#define av1_global_mv_seg2
#define av1_mf1_last3_offset

#define av1_filt_level_delta1_seg3
#define av1_filt_level_delta2_seg3
#define av1_filt_level_delta3_seg3
#define av1_global_mv_seg3
#define av1_mf1_golden_offset

#define av1_filt_level_delta1_seg4
#define av1_filt_level_delta2_seg4
#define av1_filt_level_delta3_seg4
#define av1_global_mv_seg4
#define av1_mf1_bwdref_offset

#define av1_filt_level_delta1_seg5
#define av1_filt_level_delta2_seg5
#define av1_filt_level_delta3_seg5
#define av1_global_mv_seg5
#define av1_mf1_altref2_offset

#define av1_filt_level_delta1_seg6
#define av1_filt_level_delta2_seg6
#define av1_filt_level_delta3_seg6
#define av1_global_mv_seg6
#define av1_mf1_altref_offset

#define av1_filt_level_delta1_seg7
#define av1_filt_level_delta2_seg7
#define av1_filt_level_delta3_seg7
#define av1_global_mv_seg7
#define av1_mf2_last_offset

#define av1_cb_offset
#define av1_cb_luma_mult
#define av1_cb_mult
#define av1_quant_delta_v_dc

#define av1_cr_offset
#define av1_cr_luma_mult
#define av1_cr_mult
#define av1_quant_delta_v_ac

#define av1_filt_ref_adj_5
#define av1_filt_ref_adj_4
#define av1_filt_mb_adj_1
#define av1_filt_mb_adj_0
#define av1_filt_sharpness

#define av1_quant_seg6
#define av1_filt_level_seg6
#define av1_skip_seg6
#define av1_refpic_seg6
#define av1_filt_level_delta0_seg6
#define av1_skip_ref0

#define av1_quant_seg7
#define av1_filt_level_seg7
#define av1_skip_seg7
#define av1_refpic_seg7
#define av1_filt_level_delta0_seg7
#define av1_skip_ref1

#define av1_ref0_height
#define av1_ref0_width

#define av1_ref1_height
#define av1_ref1_width

#define av1_ref2_height
#define av1_ref2_width

#define av1_ref0_ver_scale
#define av1_ref0_hor_scale

#define av1_ref1_ver_scale
#define av1_ref1_hor_scale

#define av1_ref2_ver_scale
#define av1_ref2_hor_scale

#define av1_ref3_ver_scale
#define av1_ref3_hor_scale

#define av1_ref4_ver_scale
#define av1_ref4_hor_scale

#define av1_ref5_ver_scale
#define av1_ref5_hor_scale

#define av1_ref6_ver_scale
#define av1_ref6_hor_scale

#define av1_ref3_height
#define av1_ref3_width

#define av1_ref4_height
#define av1_ref4_width

#define av1_ref5_height
#define av1_ref5_width

#define av1_ref6_height
#define av1_ref6_width

#define av1_mf2_last2_offset
#define av1_mf2_last3_offset
#define av1_mf2_golden_offset
#define av1_qmlevel_y

#define av1_mf2_bwdref_offset
#define av1_mf2_altref2_offset
#define av1_mf2_altref_offset
#define av1_qmlevel_u

#define av1_filt_ref_adj_6
#define av1_filt_ref_adj_7
#define av1_qmlevel_v

#define av1_superres_chroma_step
#define av1_superres_luma_step

#define av1_superres_init_chroma_subpel_x
#define av1_superres_init_luma_subpel_x

#define av1_cdef_chroma_secondary_strength
#define av1_cdef_luma_secondary_strength

#define av1_apf_threshold
#define av1_apf_single_pu_mode
#define av1_apf_disable

#define av1_dec_max_burst
#define av1_dec_buswidth
#define av1_dec_multicore_mode
#define av1_dec_axi_wd_id_e
#define av1_dec_axi_rd_id_e
#define av1_dec_mc_polltime
#define av1_dec_mc_pollmode

#define av1_filt_ref_adj_3
#define av1_filt_ref_adj_2
#define av1_filt_ref_adj_1
#define av1_filt_ref_adj_0
#define av1_ref0_sign_bias
#define av1_ref1_sign_bias
#define av1_ref2_sign_bias
#define av1_ref3_sign_bias

#define av1_cur_last_roffset
#define av1_cur_last_offset
#define av1_mf3_last_offset
#define av1_ref0_gm_mode

#define av1_cur_last2_roffset
#define av1_cur_last2_offset
#define av1_mf3_last2_offset
#define av1_ref1_gm_mode

#define av1_cur_last3_roffset
#define av1_cur_last3_offset
#define av1_mf3_last3_offset
#define av1_ref2_gm_mode

#define av1_cur_golden_roffset
#define av1_cur_golden_offset
#define av1_mf3_golden_offset
#define av1_ref3_gm_mode

#define av1_cur_bwdref_roffset
#define av1_cur_bwdref_offset
#define av1_mf3_bwdref_offset
#define av1_ref4_gm_mode

#define av1_cur_altref2_roffset
#define av1_cur_altref2_offset
#define av1_mf3_altref2_offset
#define av1_ref5_gm_mode

#define av1_strm_buffer_len

#define av1_strm_start_offset

#define av1_ppd_blend_exist
#define av1_ppd_dith_exist
#define av1_ablend_crop_e
#define av1_pp_format_p010_e
#define av1_pp_format_customer1_e
#define av1_pp_crop_exist
#define av1_pp_up_level
#define av1_pp_down_level
#define av1_pp_exist

#define av1_cur_altref_roffset
#define av1_cur_altref_offset
#define av1_mf3_altref_offset
#define av1_ref6_gm_mode

#define av1_cdef_luma_primary_strength

#define av1_cdef_chroma_primary_strength

#define av1_axi_arqos
#define av1_axi_awqos
#define av1_axi_wr_ostd_threshold
#define av1_axi_rd_ostd_threshold
#define av1_axi_wr_4k_dis

#define av1_128bit_mode
#define av1_wr_shaper_bypass
#define av1_error_conceal_e

#define av1_superres_chroma_step_invra
#define av1_superres_luma_step_invra

#define av1_dec_alignment

#define av1_ext_timeout_cycles
#define av1_ext_timeout_override_e

#define av1_timeout_cycles
#define av1_timeout_override_e

#define av1_pp_out_e
#define av1_pp_cr_first
#define av1_pp_out_mode
#define av1_pp_out_tile_e
#define av1_pp_status
#define av1_pp_in_blk_size
#define av1_pp_out_p010_fmt
#define av1_pp_out_rgb_fmt
#define av1_rgb_range_max
#define av1_pp_rgb_planar

#define av1_scale_hratio
#define av1_pp_out_format
#define av1_ver_scale_mode
#define av1_hor_scale_mode
#define av1_pp_in_format

#define av1_pp_out_c_stride
#define av1_pp_out_y_stride

#define av1_pp_in_height
#define av1_pp_in_width

#define av1_pp_out_height
#define av1_pp_out_width

#define av1_pp1_dup_ver
#define av1_pp1_dup_hor
#define av1_pp0_dup_ver
#define av1_pp0_dup_hor

#define AV1_TILE_OUT_LU
#define AV1_REFERENCE_Y(i)
#define AV1_SEGMENTATION
#define AV1_GLOBAL_MODEL
#define AV1_CDEF_COL
#define AV1_SR_COL
#define AV1_LR_COL
#define AV1_FILM_GRAIN
#define AV1_TILE_OUT_CH
#define AV1_REFERENCE_CB(i)
#define AV1_TILE_OUT_MV
#define AV1_REFERENCE_MV(i)
#define AV1_TILE_BASE
#define AV1_INPUT_STREAM
#define AV1_PROP_TABLE_OUT
#define AV1_PROP_TABLE
#define AV1_MC_SYNC_CURR
#define AV1_MC_SYNC_LEFT
#define AV1_DB_DATA_COL
#define AV1_DB_CTRL_COL
#define AV1_PP_OUT_LU
#define AV1_PP_OUT_CH

#endif /* _ROCKCHIP_VPU981_REGS_H_ */