linux/drivers/media/pci/cx25821/cx25821-medusa-reg.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *  Driver for the Conexant CX25821 PCIe bridge
 *
 *  Copyright (C) 2009 Conexant Systems Inc.
 *  Authors  <[email protected]>, <[email protected]>
 */

#ifndef __MEDUSA_REGISTERS__
#define __MEDUSA_REGISTERS__

/* Serial Slave Registers */
#define HOST_REGISTER1
#define HOST_REGISTER2

/* Chip Configuration Registers */
#define CHIP_CTRL
#define AFE_AB_CTRL
#define AFE_CD_CTRL
#define AFE_EF_CTRL
#define AFE_GH_CTRL
#define DENC_AB_CTRL
#define BYP_AB_CTRL
#define MON_A_CTRL
#define DISP_SEQ_A
#define DISP_SEQ_B
#define DISP_AB_CNT
#define DISP_CD_CNT
#define DISP_EF_CNT
#define DISP_GH_CNT
#define DISP_IJ_CNT
#define PIN_OE_CTRL
#define PIN_SPD_CTRL
#define PIN_SPD_CTRL2
#define IRQ_STAT_CTRL
#define POWER_CTRL_AB
#define POWER_CTRL_CD
#define POWER_CTRL_EF
#define POWER_CTRL_GH
#define TUNE_CTRL
#define BIAS_CTRL
#define AFE_AB_DIAG_CTRL
#define AFE_CD_DIAG_CTRL
#define AFE_EF_DIAG_CTRL
#define AFE_GH_DIAG_CTRL
#define PLL_AB_DIAG_CTRL
#define PLL_CD_DIAG_CTRL
#define PLL_EF_DIAG_CTRL
#define PLL_GH_DIAG_CTRL
#define TEST_CTRL
#define BIST_STAT
#define BIST_STAT2
#define BIST_VID_PLL_AB_STAT
#define BIST_VID_PLL_CD_STAT
#define BIST_VID_PLL_EF_STAT
#define BIST_VID_PLL_GH_STAT
#define DLL_DIAG_CTRL
#define DEV_CH_ID_CTRL
#define ABIST_CTRL_STATUS
#define ABIST_FREQ
#define ABIST_GOERT_SHIFT
#define ABIST_COEF12
#define ABIST_COEF34
#define ABIST_COEF56
#define ABIST_COEF7_SNR
#define ABIST_ADC_CAL
#define ABIST_BIN1_VGA0
#define ABIST_BIN2_VGA1
#define ABIST_BIN3_VGA2
#define ABIST_BIN4_VGA3
#define ABIST_BIN5_VGA4
#define ABIST_BIN6_VGA5
#define ABIST_BIN7_VGA6
#define ABIST_CLAMP_A
#define ABIST_CLAMP_B
#define ABIST_CLAMP_C
#define ABIST_CLAMP_D
#define ABIST_CLAMP_E
#define ABIST_CLAMP_F

/* Digital Video Encoder A Registers */
#define DENC_A_REG_1
#define DENC_A_REG_2
#define DENC_A_REG_3
#define DENC_A_REG_4
#define DENC_A_REG_5
#define DENC_A_REG_6
#define DENC_A_REG_7
#define DENC_A_REG_8

/* Digital Video Encoder B Registers */
#define DENC_B_REG_1
#define DENC_B_REG_2
#define DENC_B_REG_3
#define DENC_B_REG_4
#define DENC_B_REG_5
#define DENC_B_REG_6
#define DENC_B_REG_7
#define DENC_B_REG_8

/* Video Decoder A Registers */
#define MODE_CTRL
#define OUT_CTRL1
#define OUT_CTRL_NS
#define GEN_STAT
#define INT_STAT_MASK
#define LUMA_CTRL
#define CHROMA_CTRL
#define CRUSH_CTRL
#define HORIZ_TIM_CTRL
#define VERT_TIM_CTRL
#define MISC_TIM_CTRL
#define FIELD_COUNT
#define HSCALE_CTRL
#define VSCALE_CTRL
#define MAN_VGA_CTRL
#define MAN_AGC_CTRL
#define DFE_CTRL1
#define DFE_CTRL2
#define DFE_CTRL3
#define PLL_CTRL
#define PLL_CTRL_FAST
#define HTL_CTRL
#define SRC_CFG
#define SC_STEP_SIZE
#define SC_CONVERGE_CTRL
#define SC_LOOP_CTRL
#define COMB_2D_HFS_CFG
#define COMB_2D_HFD_CFG
#define COMB_2D_LF_CFG
#define COMB_2D_BLEND
#define COMB_MISC_CTRL
#define COMB_FLAT_THRESH_CTRL
#define COMB_TEST
#define BP_MISC_CTRL
#define VCR_DET_CTRL
#define NOISE_DET_CTRL
#define COMB_FLAT_NOISE_CTRL
#define VERSION
#define SOFT_RST_CTRL

/* Video Decoder B Registers */
#define VDEC_B_MODE_CTRL
#define VDEC_B_OUT_CTRL1
#define VDEC_B_OUT_CTRL_NS
#define VDEC_B_GEN_STAT
#define VDEC_B_INT_STAT_MASK
#define VDEC_B_LUMA_CTRL
#define VDEC_B_CHROMA_CTRL
#define VDEC_B_CRUSH_CTRL
#define VDEC_B_HORIZ_TIM_CTRL
#define VDEC_B_VERT_TIM_CTRL
#define VDEC_B_MISC_TIM_CTRL
#define VDEC_B_FIELD_COUNT
#define VDEC_B_HSCALE_CTRL
#define VDEC_B_VSCALE_CTRL
#define VDEC_B_MAN_VGA_CTRL
#define VDEC_B_MAN_AGC_CTRL
#define VDEC_B_DFE_CTRL1
#define VDEC_B_DFE_CTRL2
#define VDEC_B_DFE_CTRL3
#define VDEC_B_PLL_CTRL
#define VDEC_B_PLL_CTRL_FAST
#define VDEC_B_HTL_CTRL
#define VDEC_B_SRC_CFG
#define VDEC_B_SC_STEP_SIZE
#define VDEC_B_SC_CONVERGE_CTRL
#define VDEC_B_SC_LOOP_CTRL
#define VDEC_B_COMB_2D_HFS_CFG
#define VDEC_B_COMB_2D_HFD_CFG
#define VDEC_B_COMB_2D_LF_CFG
#define VDEC_B_COMB_2D_BLEND
#define VDEC_B_COMB_MISC_CTRL
#define VDEC_B_COMB_FLAT_THRESH_CTRL
#define VDEC_B_COMB_TEST
#define VDEC_B_BP_MISC_CTRL
#define VDEC_B_VCR_DET_CTRL
#define VDEC_B_NOISE_DET_CTRL
#define VDEC_B_COMB_FLAT_NOISE_CTRL
#define VDEC_B_VERSION
#define VDEC_B_SOFT_RST_CTRL

/* Video Decoder C Registers */
#define VDEC_C_MODE_CTRL
#define VDEC_C_OUT_CTRL1
#define VDEC_C_OUT_CTRL_NS
#define VDEC_C_GEN_STAT
#define VDEC_C_INT_STAT_MASK
#define VDEC_C_LUMA_CTRL
#define VDEC_C_CHROMA_CTRL
#define VDEC_C_CRUSH_CTRL
#define VDEC_C_HORIZ_TIM_CTRL
#define VDEC_C_VERT_TIM_CTRL
#define VDEC_C_MISC_TIM_CTRL
#define VDEC_C_FIELD_COUNT
#define VDEC_C_HSCALE_CTRL
#define VDEC_C_VSCALE_CTRL
#define VDEC_C_MAN_VGA_CTRL
#define VDEC_C_MAN_AGC_CTRL
#define VDEC_C_DFE_CTRL1
#define VDEC_C_DFE_CTRL2
#define VDEC_C_DFE_CTRL3
#define VDEC_C_PLL_CTRL
#define VDEC_C_PLL_CTRL_FAST
#define VDEC_C_HTL_CTRL
#define VDEC_C_SRC_CFG
#define VDEC_C_SC_STEP_SIZE
#define VDEC_C_SC_CONVERGE_CTRL
#define VDEC_C_SC_LOOP_CTRL
#define VDEC_C_COMB_2D_HFS_CFG
#define VDEC_C_COMB_2D_HFD_CFG
#define VDEC_C_COMB_2D_LF_CFG
#define VDEC_C_COMB_2D_BLEND
#define VDEC_C_COMB_MISC_CTRL
#define VDEC_C_COMB_FLAT_THRESH_CTRL
#define VDEC_C_COMB_TEST
#define VDEC_C_BP_MISC_CTRL
#define VDEC_C_VCR_DET_CTRL
#define VDEC_C_NOISE_DET_CTRL
#define VDEC_C_COMB_FLAT_NOISE_CTRL
#define VDEC_C_VERSION
#define VDEC_C_SOFT_RST_CTRL

/* Video Decoder D Registers */
#define VDEC_D_MODE_CTRL
#define VDEC_D_OUT_CTRL1
#define VDEC_D_OUT_CTRL_NS
#define VDEC_D_GEN_STAT
#define VDEC_D_INT_STAT_MASK
#define VDEC_D_LUMA_CTRL
#define VDEC_D_CHROMA_CTRL
#define VDEC_D_CRUSH_CTRL
#define VDEC_D_HORIZ_TIM_CTRL
#define VDEC_D_VERT_TIM_CTRL
#define VDEC_D_MISC_TIM_CTRL
#define VDEC_D_FIELD_COUNT
#define VDEC_D_HSCALE_CTRL
#define VDEC_D_VSCALE_CTRL
#define VDEC_D_MAN_VGA_CTRL
#define VDEC_D_MAN_AGC_CTRL
#define VDEC_D_DFE_CTRL1
#define VDEC_D_DFE_CTRL2
#define VDEC_D_DFE_CTRL3
#define VDEC_D_PLL_CTRL
#define VDEC_D_PLL_CTRL_FAST
#define VDEC_D_HTL_CTRL
#define VDEC_D_SRC_CFG
#define VDEC_D_SC_STEP_SIZE
#define VDEC_D_SC_CONVERGE_CTRL
#define VDEC_D_SC_LOOP_CTRL
#define VDEC_D_COMB_2D_HFS_CFG
#define VDEC_D_COMB_2D_HFD_CFG
#define VDEC_D_COMB_2D_LF_CFG
#define VDEC_D_COMB_2D_BLEND
#define VDEC_D_COMB_MISC_CTRL
#define VDEC_D_COMB_FLAT_THRESH_CTRL
#define VDEC_D_COMB_TEST
#define VDEC_D_BP_MISC_CTRL
#define VDEC_D_VCR_DET_CTRL
#define VDEC_D_NOISE_DET_CTRL
#define VDEC_D_COMB_FLAT_NOISE_CTRL
#define VDEC_D_VERSION
#define VDEC_D_SOFT_RST_CTRL

/* Video Decoder E Registers */
#define VDEC_E_MODE_CTRL
#define VDEC_E_OUT_CTRL1
#define VDEC_E_OUT_CTRL_NS
#define VDEC_E_GEN_STAT
#define VDEC_E_INT_STAT_MASK
#define VDEC_E_LUMA_CTRL
#define VDEC_E_CHROMA_CTRL
#define VDEC_E_CRUSH_CTRL
#define VDEC_E_HORIZ_TIM_CTRL
#define VDEC_E_VERT_TIM_CTRL
#define VDEC_E_MISC_TIM_CTRL
#define VDEC_E_FIELD_COUNT
#define VDEC_E_HSCALE_CTRL
#define VDEC_E_VSCALE_CTRL
#define VDEC_E_MAN_VGA_CTRL
#define VDEC_E_MAN_AGC_CTRL
#define VDEC_E_DFE_CTRL1
#define VDEC_E_DFE_CTRL2
#define VDEC_E_DFE_CTRL3
#define VDEC_E_PLL_CTRL
#define VDEC_E_PLL_CTRL_FAST
#define VDEC_E_HTL_CTRL
#define VDEC_E_SRC_CFG
#define VDEC_E_SC_STEP_SIZE
#define VDEC_E_SC_CONVERGE_CTRL
#define VDEC_E_SC_LOOP_CTRL
#define VDEC_E_COMB_2D_HFS_CFG
#define VDEC_E_COMB_2D_HFD_CFG
#define VDEC_E_COMB_2D_LF_CFG
#define VDEC_E_COMB_2D_BLEND
#define VDEC_E_COMB_MISC_CTRL
#define VDEC_E_COMB_FLAT_THRESH_CTRL
#define VDEC_E_COMB_TEST
#define VDEC_E_BP_MISC_CTRL
#define VDEC_E_VCR_DET_CTRL
#define VDEC_E_NOISE_DET_CTRL
#define VDEC_E_COMB_FLAT_NOISE_CTRL
#define VDEC_E_VERSION
#define VDEC_E_SOFT_RST_CTRL

/* Video Decoder F Registers */
#define VDEC_F_MODE_CTRL
#define VDEC_F_OUT_CTRL1
#define VDEC_F_OUT_CTRL_NS
#define VDEC_F_GEN_STAT
#define VDEC_F_INT_STAT_MASK
#define VDEC_F_LUMA_CTRL
#define VDEC_F_CHROMA_CTRL
#define VDEC_F_CRUSH_CTRL
#define VDEC_F_HORIZ_TIM_CTRL
#define VDEC_F_VERT_TIM_CTRL
#define VDEC_F_MISC_TIM_CTRL
#define VDEC_F_FIELD_COUNT
#define VDEC_F_HSCALE_CTRL
#define VDEC_F_VSCALE_CTRL
#define VDEC_F_MAN_VGA_CTRL
#define VDEC_F_MAN_AGC_CTRL
#define VDEC_F_DFE_CTRL1
#define VDEC_F_DFE_CTRL2
#define VDEC_F_DFE_CTRL3
#define VDEC_F_PLL_CTRL
#define VDEC_F_PLL_CTRL_FAST
#define VDEC_F_HTL_CTRL
#define VDEC_F_SRC_CFG
#define VDEC_F_SC_STEP_SIZE
#define VDEC_F_SC_CONVERGE_CTRL
#define VDEC_F_SC_LOOP_CTRL
#define VDEC_F_COMB_2D_HFS_CFG
#define VDEC_F_COMB_2D_HFD_CFG
#define VDEC_F_COMB_2D_LF_CFG
#define VDEC_F_COMB_2D_BLEND
#define VDEC_F_COMB_MISC_CTRL
#define VDEC_F_COMB_FLAT_THRESH_CTRL
#define VDEC_F_COMB_TEST
#define VDEC_F_BP_MISC_CTRL
#define VDEC_F_VCR_DET_CTRL
#define VDEC_F_NOISE_DET_CTRL
#define VDEC_F_COMB_FLAT_NOISE_CTRL
#define VDEC_F_VERSION
#define VDEC_F_SOFT_RST_CTRL

/* Video Decoder G Registers */
#define VDEC_G_MODE_CTRL
#define VDEC_G_OUT_CTRL1
#define VDEC_G_OUT_CTRL_NS
#define VDEC_G_GEN_STAT
#define VDEC_G_INT_STAT_MASK
#define VDEC_G_LUMA_CTRL
#define VDEC_G_CHROMA_CTRL
#define VDEC_G_CRUSH_CTRL
#define VDEC_G_HORIZ_TIM_CTRL
#define VDEC_G_VERT_TIM_CTRL
#define VDEC_G_MISC_TIM_CTRL
#define VDEC_G_FIELD_COUNT
#define VDEC_G_HSCALE_CTRL
#define VDEC_G_VSCALE_CTRL
#define VDEC_G_MAN_VGA_CTRL
#define VDEC_G_MAN_AGC_CTRL
#define VDEC_G_DFE_CTRL1
#define VDEC_G_DFE_CTRL2
#define VDEC_G_DFE_CTRL3
#define VDEC_G_PLL_CTRL
#define VDEC_G_PLL_CTRL_FAST
#define VDEC_G_HTL_CTRL
#define VDEC_G_SRC_CFG
#define VDEC_G_SC_STEP_SIZE
#define VDEC_G_SC_CONVERGE_CTRL
#define VDEC_G_SC_LOOP_CTRL
#define VDEC_G_COMB_2D_HFS_CFG
#define VDEC_G_COMB_2D_HFD_CFG
#define VDEC_G_COMB_2D_LF_CFG
#define VDEC_G_COMB_2D_BLEND
#define VDEC_G_COMB_MISC_CTRL
#define VDEC_G_COMB_FLAT_THRESH_CTRL
#define VDEC_G_COMB_TEST
#define VDEC_G_BP_MISC_CTRL
#define VDEC_G_VCR_DET_CTRL
#define VDEC_G_NOISE_DET_CTRL
#define VDEC_G_COMB_FLAT_NOISE_CTRL
#define VDEC_G_VERSION
#define VDEC_G_SOFT_RST_CTRL

/* Video Decoder H Registers  */
#define VDEC_H_MODE_CTRL
#define VDEC_H_OUT_CTRL1
#define VDEC_H_OUT_CTRL_NS
#define VDEC_H_GEN_STAT
#define VDEC_H_INT_STAT_MASK
#define VDEC_H_LUMA_CTRL
#define VDEC_H_CHROMA_CTRL
#define VDEC_H_CRUSH_CTRL
#define VDEC_H_HORIZ_TIM_CTRL
#define VDEC_H_VERT_TIM_CTRL
#define VDEC_H_MISC_TIM_CTRL
#define VDEC_H_FIELD_COUNT
#define VDEC_H_HSCALE_CTRL
#define VDEC_H_VSCALE_CTRL
#define VDEC_H_MAN_VGA_CTRL
#define VDEC_H_MAN_AGC_CTRL
#define VDEC_H_DFE_CTRL1
#define VDEC_H_DFE_CTRL2
#define VDEC_H_DFE_CTRL3
#define VDEC_H_PLL_CTRL
#define VDEC_H_PLL_CTRL_FAST
#define VDEC_H_HTL_CTRL
#define VDEC_H_SRC_CFG
#define VDEC_H_SC_STEP_SIZE
#define VDEC_H_SC_CONVERGE_CTRL
#define VDEC_H_SC_LOOP_CTRL
#define VDEC_H_COMB_2D_HFS_CFG
#define VDEC_H_COMB_2D_HFD_CFG
#define VDEC_H_COMB_2D_LF_CFG
#define VDEC_H_COMB_2D_BLEND
#define VDEC_H_COMB_MISC_CTRL
#define VDEC_H_COMB_FLAT_THRESH_CTRL
#define VDEC_H_COMB_TEST
#define VDEC_H_BP_MISC_CTRL
#define VDEC_H_VCR_DET_CTRL
#define VDEC_H_NOISE_DET_CTRL
#define VDEC_H_COMB_FLAT_NOISE_CTRL
#define VDEC_H_VERSION
#define VDEC_H_SOFT_RST_CTRL

/*****************************************************************************/
/* LUMA_CTRL register fields */
#define VDEC_A_BRITE_CTRL
#define VDEC_A_CNTRST_CTRL
#define VDEC_A_PEAK_SEL

/*****************************************************************************/
/* CHROMA_CTRL register fields */
#define VDEC_A_USAT_CTRL
#define VDEC_A_VSAT_CTRL
#define VDEC_A_HUE_CTRL

#endif