Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Public Include File for DRV6000 users
0004  * (ie. NxtWave Communications - NXT6000 demodulator driver)
0005  *
0006  * Copyright (C) 2001 NxtWave Communications, Inc.
0007  *
0008  */
0009 
0010 /*  Nxt6000 Register Addresses and Bit Masks */
0011 
0012 /* Maximum Register Number */
0013 #define MAXNXT6000REG          (0x9A)
0014 
0015 /* 0x1B A_VIT_BER_0  aka 0x3A */
0016 #define A_VIT_BER_0            (0x1B)
0017 
0018 /* 0x1D A_VIT_BER_TIMER_0 aka 0x38 */
0019 #define A_VIT_BER_TIMER_0      (0x1D)
0020 
0021 /* 0x21 RS_COR_STAT */
0022 #define RS_COR_STAT            (0x21)
0023 #define RSCORESTATUS           (0x03)
0024 
0025 /* 0x22 RS_COR_INTEN */
0026 #define RS_COR_INTEN           (0x22)
0027 
0028 /* 0x23 RS_COR_INSTAT */
0029 #define RS_COR_INSTAT          (0x23)
0030 #define INSTAT_ERROR           (0x04)
0031 #define LOCK_LOSS_BITS         (0x03)
0032 
0033 /* 0x24 RS_COR_SYNC_PARAM */
0034 #define RS_COR_SYNC_PARAM      (0x24)
0035 #define SYNC_PARAM             (0x03)
0036 
0037 /* 0x25 BER_CTRL */
0038 #define BER_CTRL               (0x25)
0039 #define BER_ENABLE             (0x02)
0040 #define BER_RESET              (0x01)
0041 
0042 /* 0x26 BER_PAY */
0043 #define BER_PAY                (0x26)
0044 
0045 /* 0x27 BER_PKT_L */
0046 #define BER_PKT_L              (0x27)
0047 #define BER_PKTOVERFLOW        (0x80)
0048 
0049 /* 0x30 VIT_COR_CTL */
0050 #define VIT_COR_CTL            (0x30)
0051 #define BER_CONTROL            (0x02)
0052 #define VIT_COR_MASK           (0x82)
0053 #define VIT_COR_RESYNC         (0x80)
0054 
0055 
0056 /* 0x32 VIT_SYNC_STATUS */
0057 #define VIT_SYNC_STATUS        (0x32)
0058 #define VITINSYNC              (0x80)
0059 
0060 /* 0x33 VIT_COR_INTEN */
0061 #define VIT_COR_INTEN          (0x33)
0062 #define GLOBAL_ENABLE          (0x80)
0063 
0064 /* 0x34 VIT_COR_INTSTAT */
0065 #define VIT_COR_INTSTAT        (0x34)
0066 #define BER_DONE               (0x08)
0067 #define BER_OVERFLOW           (0x10)
0068 
0069 /* 0x38 VIT_BERTIME_2 */
0070 #define VIT_BERTIME_2      (0x38)
0071 
0072 /* 0x39 VIT_BERTIME_1 */
0073 #define VIT_BERTIME_1      (0x39)
0074 
0075 /* 0x3A VIT_BERTIME_0 */
0076 #define VIT_BERTIME_0      (0x3a)
0077 
0078                  /* 0x38 OFDM_BERTimer *//* Use the alias registers */
0079 #define A_VIT_BER_TIMER_0      (0x1D)
0080 
0081                  /* 0x3A VIT_BER_TIMER_0 *//* Use the alias registers */
0082 #define A_VIT_BER_0            (0x1B)
0083 
0084 /* 0x3B VIT_BER_1 */
0085 #define VIT_BER_1              (0x3b)
0086 
0087 /* 0x3C VIT_BER_0 */
0088 #define VIT_BER_0              (0x3c)
0089 
0090 /* 0x40 OFDM_COR_CTL */
0091 #define OFDM_COR_CTL           (0x40)
0092 #define COREACT                (0x20)
0093 #define HOLDSM                 (0x10)
0094 #define WAIT_AGC               (0x02)
0095 #define WAIT_SYR               (0x03)
0096 
0097 /* 0x41 OFDM_COR_STAT */
0098 #define OFDM_COR_STAT          (0x41)
0099 #define COR_STATUS             (0x0F)
0100 #define MONITOR_TPS            (0x06)
0101 #define TPSLOCKED              (0x40)
0102 #define AGCLOCKED              (0x10)
0103 
0104 /* 0x42 OFDM_COR_INTEN */
0105 #define OFDM_COR_INTEN         (0x42)
0106 #define TPSRCVBAD              (0x04)
0107 #define TPSRCVCHANGED         (0x02)
0108 #define TPSRCVUPDATE           (0x01)
0109 
0110 /* 0x43 OFDM_COR_INSTAT */
0111 #define OFDM_COR_INSTAT        (0x43)
0112 
0113 /* 0x44 OFDM_COR_MODEGUARD */
0114 #define OFDM_COR_MODEGUARD     (0x44)
0115 #define FORCEMODE              (0x08)
0116 #define FORCEMODE8K            (0x04)
0117 
0118 /* 0x45 OFDM_AGC_CTL */
0119 #define OFDM_AGC_CTL           (0x45)
0120 #define INITIAL_AGC_BW         (0x08)
0121 #define AGCNEG                 (0x02)
0122 #define AGCLAST                (0x10)
0123 
0124 /* 0x48 OFDM_AGC_TARGET */
0125 #define OFDM_AGC_TARGET        (0x48)
0126 #define OFDM_AGC_TARGET_DEFAULT (0x28)
0127 #define OFDM_AGC_TARGET_IMPULSE (0x38)
0128 
0129 /* 0x49 OFDM_AGC_GAIN_1 */
0130 #define OFDM_AGC_GAIN_1        (0x49)
0131 
0132 /* 0x4B OFDM_ITB_CTL */
0133 #define OFDM_ITB_CTL           (0x4B)
0134 #define ITBINV                 (0x01)
0135 
0136 /* 0x49 AGC_GAIN_1 */
0137 #define AGC_GAIN_1             (0x49)
0138 
0139 /* 0x4A AGC_GAIN_2 */
0140 #define AGC_GAIN_2             (0x4A)
0141 
0142 /* 0x4C OFDM_ITB_FREQ_1 */
0143 #define OFDM_ITB_FREQ_1        (0x4C)
0144 
0145 /* 0x4D OFDM_ITB_FREQ_2 */
0146 #define OFDM_ITB_FREQ_2        (0x4D)
0147 
0148 /* 0x4E  OFDM_CAS_CTL */
0149 #define OFDM_CAS_CTL           (0x4E)
0150 #define ACSDIS                 (0x40)
0151 #define CCSEN                  (0x80)
0152 
0153 /* 0x4F CAS_FREQ */
0154 #define CAS_FREQ               (0x4F)
0155 
0156 /* 0x51 OFDM_SYR_CTL */
0157 #define OFDM_SYR_CTL           (0x51)
0158 #define SIXTH_ENABLE           (0x80)
0159 #define SYR_TRACKING_DISABLE   (0x01)
0160 
0161 /* 0x52 OFDM_SYR_STAT */
0162 #define OFDM_SYR_STAT          (0x52)
0163 #define GI14_2K_SYR_LOCK       (0x13)
0164 #define GI14_8K_SYR_LOCK       (0x17)
0165 #define GI14_SYR_LOCK          (0x10)
0166 
0167 /* 0x55 OFDM_SYR_OFFSET_1 */
0168 #define OFDM_SYR_OFFSET_1      (0x55)
0169 
0170 /* 0x56 OFDM_SYR_OFFSET_2 */
0171 #define OFDM_SYR_OFFSET_2      (0x56)
0172 
0173 /* 0x58 OFDM_SCR_CTL */
0174 #define OFDM_SCR_CTL           (0x58)
0175 #define SYR_ADJ_DECAY_MASK     (0x70)
0176 #define SYR_ADJ_DECAY          (0x30)
0177 
0178 /* 0x59 OFDM_PPM_CTL_1 */
0179 #define OFDM_PPM_CTL_1         (0x59)
0180 #define PPMMAX_MASK            (0x30)
0181 #define PPM256                 (0x30)
0182 
0183 /* 0x5B OFDM_TRL_NOMINALRATE_1 */
0184 #define OFDM_TRL_NOMINALRATE_1 (0x5B)
0185 
0186 /* 0x5C OFDM_TRL_NOMINALRATE_2 */
0187 #define OFDM_TRL_NOMINALRATE_2 (0x5C)
0188 
0189 /* 0x5D OFDM_TRL_TIME_1 */
0190 #define OFDM_TRL_TIME_1        (0x5D)
0191 
0192 /* 0x60 OFDM_CRL_FREQ_1 */
0193 #define OFDM_CRL_FREQ_1        (0x60)
0194 
0195 /* 0x63 OFDM_CHC_CTL_1 */
0196 #define OFDM_CHC_CTL_1         (0x63)
0197 #define MANMEAN1               (0xF0);
0198 #define CHCFIR                 (0x01)
0199 
0200 /* 0x64 OFDM_CHC_SNR */
0201 #define OFDM_CHC_SNR           (0x64)
0202 
0203 /* 0x65 OFDM_BDI_CTL */
0204 #define OFDM_BDI_CTL           (0x65)
0205 #define LP_SELECT              (0x02)
0206 
0207 /* 0x67 OFDM_TPS_RCVD_1 */
0208 #define OFDM_TPS_RCVD_1        (0x67)
0209 #define TPSFRAME               (0x03)
0210 
0211 /* 0x68 OFDM_TPS_RCVD_2 */
0212 #define OFDM_TPS_RCVD_2        (0x68)
0213 
0214 /* 0x69 OFDM_TPS_RCVD_3 */
0215 #define OFDM_TPS_RCVD_3        (0x69)
0216 
0217 /* 0x6A OFDM_TPS_RCVD_4 */
0218 #define OFDM_TPS_RCVD_4        (0x6A)
0219 
0220 /* 0x6B OFDM_TPS_RESERVED_1 */
0221 #define OFDM_TPS_RESERVED_1    (0x6B)
0222 
0223 /* 0x6C OFDM_TPS_RESERVED_2 */
0224 #define OFDM_TPS_RESERVED_2    (0x6C)
0225 
0226 /* 0x73 OFDM_MSC_REV */
0227 #define OFDM_MSC_REV           (0x73)
0228 
0229 /* 0x76 OFDM_SNR_CARRIER_2 */
0230 #define OFDM_SNR_CARRIER_2     (0x76)
0231 #define MEAN_MASK              (0x80)
0232 #define MEANBIT                (0x80)
0233 
0234 /* 0x80 ANALOG_CONTROL_0 */
0235 #define ANALOG_CONTROL_0       (0x80)
0236 #define POWER_DOWN_ADC         (0x40)
0237 
0238 /* 0x81 ENABLE_TUNER_IIC */
0239 #define ENABLE_TUNER_IIC       (0x81)
0240 #define ENABLE_TUNER_BIT       (0x01)
0241 
0242 /* 0x82 EN_DMD_RACQ */
0243 #define EN_DMD_RACQ            (0x82)
0244 #define EN_DMD_RACQ_REG_VAL    (0x81)
0245 #define EN_DMD_RACQ_REG_VAL_14 (0x01)
0246 
0247 /* 0x84 SNR_COMMAND */
0248 #define SNR_COMMAND            (0x84)
0249 #define SNRStat                (0x80)
0250 
0251 /* 0x85 SNRCARRIERNUMBER_LSB */
0252 #define SNRCARRIERNUMBER_LSB   (0x85)
0253 
0254 /* 0x87 SNRMINTHRESHOLD_LSB */
0255 #define SNRMINTHRESHOLD_LSB    (0x87)
0256 
0257 /* 0x89 SNR_PER_CARRIER_LSB */
0258 #define SNR_PER_CARRIER_LSB    (0x89)
0259 
0260 /* 0x8B SNRBELOWTHRESHOLD_LSB */
0261 #define SNRBELOWTHRESHOLD_LSB  (0x8B)
0262 
0263 /* 0x91 RF_AGC_VAL_1 */
0264 #define RF_AGC_VAL_1           (0x91)
0265 
0266 /* 0x92 RF_AGC_STATUS */
0267 #define RF_AGC_STATUS          (0x92)
0268 
0269 /* 0x98 DIAG_CONFIG */
0270 #define DIAG_CONFIG            (0x98)
0271 #define DIAG_MASK              (0x70)
0272 #define TB_SET                 (0x10)
0273 #define TRAN_SELECT            (0x07)
0274 #define SERIAL_SELECT          (0x01)
0275 
0276 /* 0x99 SUB_DIAG_MODE_SEL */
0277 #define SUB_DIAG_MODE_SEL      (0x99)
0278 #define CLKINVERSION           (0x01)
0279 
0280 /* 0x9A TS_FORMAT */
0281 #define TS_FORMAT              (0x9A)
0282 #define ERROR_SENSE            (0x08)
0283 #define VALID_SENSE            (0x04)
0284 #define SYNC_SENSE             (0x02)
0285 #define GATED_CLOCK            (0x01)
0286 
0287 #define NXT6000ASICDEVICE      (0x0b)