linux/drivers/media/dvb-frontends/nxt6000_priv.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Public Include File for DRV6000 users
 * (ie. NxtWave Communications - NXT6000 demodulator driver)
 *
 * Copyright (C) 2001 NxtWave Communications, Inc.
 *
 */

/*  Nxt6000 Register Addresses and Bit Masks */

/* Maximum Register Number */
#define MAXNXT6000REG

/* 0x1B A_VIT_BER_0  aka 0x3A */
#define A_VIT_BER_0

/* 0x1D A_VIT_BER_TIMER_0 aka 0x38 */
#define A_VIT_BER_TIMER_0

/* 0x21 RS_COR_STAT */
#define RS_COR_STAT
#define RSCORESTATUS

/* 0x22 RS_COR_INTEN */
#define RS_COR_INTEN

/* 0x23 RS_COR_INSTAT */
#define RS_COR_INSTAT
#define INSTAT_ERROR
#define LOCK_LOSS_BITS

/* 0x24 RS_COR_SYNC_PARAM */
#define RS_COR_SYNC_PARAM
#define SYNC_PARAM

/* 0x25 BER_CTRL */
#define BER_CTRL
#define BER_ENABLE
#define BER_RESET

/* 0x26 BER_PAY */
#define BER_PAY

/* 0x27 BER_PKT_L */
#define BER_PKT_L
#define BER_PKTOVERFLOW

/* 0x30 VIT_COR_CTL */
#define VIT_COR_CTL
#define BER_CONTROL
#define VIT_COR_MASK
#define VIT_COR_RESYNC


/* 0x32 VIT_SYNC_STATUS */
#define VIT_SYNC_STATUS
#define VITINSYNC

/* 0x33 VIT_COR_INTEN */
#define VIT_COR_INTEN
#define GLOBAL_ENABLE

/* 0x34 VIT_COR_INTSTAT */
#define VIT_COR_INTSTAT
#define BER_DONE
#define BER_OVERFLOW

/* 0x38 VIT_BERTIME_2 */
#define VIT_BERTIME_2

/* 0x39 VIT_BERTIME_1 */
#define VIT_BERTIME_1

/* 0x3A VIT_BERTIME_0 */
#define VIT_BERTIME_0

			     /* 0x38 OFDM_BERTimer *//* Use the alias registers */
#define A_VIT_BER_TIMER_0

			     /* 0x3A VIT_BER_TIMER_0 *//* Use the alias registers */
#define A_VIT_BER_0

/* 0x3B VIT_BER_1 */
#define VIT_BER_1

/* 0x3C VIT_BER_0 */
#define VIT_BER_0

/* 0x40 OFDM_COR_CTL */
#define OFDM_COR_CTL
#define COREACT
#define HOLDSM
#define WAIT_AGC
#define WAIT_SYR

/* 0x41 OFDM_COR_STAT */
#define OFDM_COR_STAT
#define COR_STATUS
#define MONITOR_TPS
#define TPSLOCKED
#define AGCLOCKED

/* 0x42 OFDM_COR_INTEN */
#define OFDM_COR_INTEN
#define TPSRCVBAD
#define TPSRCVCHANGED
#define TPSRCVUPDATE

/* 0x43 OFDM_COR_INSTAT */
#define OFDM_COR_INSTAT

/* 0x44 OFDM_COR_MODEGUARD */
#define OFDM_COR_MODEGUARD
#define FORCEMODE
#define FORCEMODE8K

/* 0x45 OFDM_AGC_CTL */
#define OFDM_AGC_CTL
#define INITIAL_AGC_BW
#define AGCNEG
#define AGCLAST

/* 0x48 OFDM_AGC_TARGET */
#define OFDM_AGC_TARGET
#define OFDM_AGC_TARGET_DEFAULT
#define OFDM_AGC_TARGET_IMPULSE

/* 0x49 OFDM_AGC_GAIN_1 */
#define OFDM_AGC_GAIN_1

/* 0x4B OFDM_ITB_CTL */
#define OFDM_ITB_CTL
#define ITBINV

/* 0x49 AGC_GAIN_1 */
#define AGC_GAIN_1

/* 0x4A AGC_GAIN_2 */
#define AGC_GAIN_2

/* 0x4C OFDM_ITB_FREQ_1 */
#define OFDM_ITB_FREQ_1

/* 0x4D OFDM_ITB_FREQ_2 */
#define OFDM_ITB_FREQ_2

/* 0x4E  OFDM_CAS_CTL */
#define OFDM_CAS_CTL
#define ACSDIS
#define CCSEN

/* 0x4F CAS_FREQ */
#define CAS_FREQ

/* 0x51 OFDM_SYR_CTL */
#define OFDM_SYR_CTL
#define SIXTH_ENABLE
#define SYR_TRACKING_DISABLE

/* 0x52 OFDM_SYR_STAT */
#define OFDM_SYR_STAT
#define GI14_2K_SYR_LOCK
#define GI14_8K_SYR_LOCK
#define GI14_SYR_LOCK

/* 0x55 OFDM_SYR_OFFSET_1 */
#define OFDM_SYR_OFFSET_1

/* 0x56 OFDM_SYR_OFFSET_2 */
#define OFDM_SYR_OFFSET_2

/* 0x58 OFDM_SCR_CTL */
#define OFDM_SCR_CTL
#define SYR_ADJ_DECAY_MASK
#define SYR_ADJ_DECAY

/* 0x59 OFDM_PPM_CTL_1 */
#define OFDM_PPM_CTL_1
#define PPMMAX_MASK
#define PPM256

/* 0x5B OFDM_TRL_NOMINALRATE_1 */
#define OFDM_TRL_NOMINALRATE_1

/* 0x5C OFDM_TRL_NOMINALRATE_2 */
#define OFDM_TRL_NOMINALRATE_2

/* 0x5D OFDM_TRL_TIME_1 */
#define OFDM_TRL_TIME_1

/* 0x60 OFDM_CRL_FREQ_1 */
#define OFDM_CRL_FREQ_1

/* 0x63 OFDM_CHC_CTL_1 */
#define OFDM_CHC_CTL_1
#define MANMEAN1
#define CHCFIR

/* 0x64 OFDM_CHC_SNR */
#define OFDM_CHC_SNR

/* 0x65 OFDM_BDI_CTL */
#define OFDM_BDI_CTL
#define LP_SELECT

/* 0x67 OFDM_TPS_RCVD_1 */
#define OFDM_TPS_RCVD_1
#define TPSFRAME

/* 0x68 OFDM_TPS_RCVD_2 */
#define OFDM_TPS_RCVD_2

/* 0x69 OFDM_TPS_RCVD_3 */
#define OFDM_TPS_RCVD_3

/* 0x6A OFDM_TPS_RCVD_4 */
#define OFDM_TPS_RCVD_4

/* 0x6B OFDM_TPS_RESERVED_1 */
#define OFDM_TPS_RESERVED_1

/* 0x6C OFDM_TPS_RESERVED_2 */
#define OFDM_TPS_RESERVED_2

/* 0x73 OFDM_MSC_REV */
#define OFDM_MSC_REV

/* 0x76 OFDM_SNR_CARRIER_2 */
#define OFDM_SNR_CARRIER_2
#define MEAN_MASK
#define MEANBIT

/* 0x80 ANALOG_CONTROL_0 */
#define ANALOG_CONTROL_0
#define POWER_DOWN_ADC

/* 0x81 ENABLE_TUNER_IIC */
#define ENABLE_TUNER_IIC
#define ENABLE_TUNER_BIT

/* 0x82 EN_DMD_RACQ */
#define EN_DMD_RACQ
#define EN_DMD_RACQ_REG_VAL
#define EN_DMD_RACQ_REG_VAL_14

/* 0x84 SNR_COMMAND */
#define SNR_COMMAND
#define SNRStat

/* 0x85 SNRCARRIERNUMBER_LSB */
#define SNRCARRIERNUMBER_LSB

/* 0x87 SNRMINTHRESHOLD_LSB */
#define SNRMINTHRESHOLD_LSB

/* 0x89 SNR_PER_CARRIER_LSB */
#define SNR_PER_CARRIER_LSB

/* 0x8B SNRBELOWTHRESHOLD_LSB */
#define SNRBELOWTHRESHOLD_LSB

/* 0x91 RF_AGC_VAL_1 */
#define RF_AGC_VAL_1

/* 0x92 RF_AGC_STATUS */
#define RF_AGC_STATUS

/* 0x98 DIAG_CONFIG */
#define DIAG_CONFIG
#define DIAG_MASK
#define TB_SET
#define TRAN_SELECT
#define SERIAL_SELECT

/* 0x99 SUB_DIAG_MODE_SEL */
#define SUB_DIAG_MODE_SEL
#define CLKINVERSION

/* 0x9A TS_FORMAT */
#define TS_FORMAT
#define ERROR_SENSE
#define VALID_SENSE
#define SYNC_SENSE
#define GATED_CLOCK

#define NXT6000ASICDEVICE