0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef _CX88_REG_H_
0012 #define _CX88_REG_H_
0013
0014
0015
0016
0017
0018 #ifndef PCI_VENDOR_ID_CONEXANT
0019 # define PCI_VENDOR_ID_CONEXANT 0x14F1
0020 #endif
0021 #ifndef PCI_DEVICE_ID_CX2300_VID
0022 # define PCI_DEVICE_ID_CX2300_VID 0x8800
0023 #endif
0024
0025 #define CX88X_DEVCTRL 0x40
0026 #define CX88X_EN_TBFX 0x02
0027 #define CX88X_EN_VSFX 0x04
0028
0029
0030
0031
0032
0033
0034 #define F0_CMD_STAT_MM 0x2f0004
0035 #define F1_CMD_STAT_MM 0x2f0104
0036 #define F2_CMD_STAT_MM 0x2f0204
0037 #define F3_CMD_STAT_MM 0x2f0304
0038 #define F4_CMD_STAT_MM 0x2f0404
0039
0040
0041 #define F0_DEV_CNTRL1_MM 0x2f0040
0042 #define F1_DEV_CNTRL1_MM 0x2f0140
0043 #define F2_DEV_CNTRL1_MM 0x2f0240
0044 #define F3_DEV_CNTRL1_MM 0x2f0340
0045 #define F4_DEV_CNTRL1_MM 0x2f0440
0046
0047
0048 #define F0_BAR0_MM 0x2f0010
0049 #define F1_BAR0_MM 0x2f0110
0050 #define F2_BAR0_MM 0x2f0210
0051 #define F3_BAR0_MM 0x2f0310
0052 #define F4_BAR0_MM 0x2f0410
0053
0054
0055
0056
0057
0058 #define MO_PDMA_STHRSH 0x200000
0059 #define MO_PDMA_STADRS 0x200004
0060 #define MO_PDMA_SIADRS 0x200008
0061 #define MO_PDMA_SCNTRL 0x20000C
0062 #define MO_PDMA_DTHRSH 0x200010
0063 #define MO_PDMA_DTADRS 0x200014
0064 #define MO_PDMA_DIADRS 0x200018
0065 #define MO_PDMA_DCNTRL 0x20001C
0066 #define MO_LD_SSID 0x200030
0067 #define MO_DEV_CNTRL2 0x200034
0068 #define MO_PCI_INTMSK 0x200040
0069 #define MO_PCI_INTSTAT 0x200044
0070 #define MO_PCI_INTMSTAT 0x200048
0071 #define MO_VID_INTMSK 0x200050
0072 #define MO_VID_INTSTAT 0x200054
0073 #define MO_VID_INTMSTAT 0x200058
0074 #define MO_VID_INTSSTAT 0x20005C
0075 #define MO_AUD_INTMSK 0x200060
0076 #define MO_AUD_INTSTAT 0x200064
0077 #define MO_AUD_INTMSTAT 0x200068
0078 #define MO_AUD_INTSSTAT 0x20006C
0079 #define MO_TS_INTMSK 0x200070
0080 #define MO_TS_INTSTAT 0x200074
0081 #define MO_TS_INTMSTAT 0x200078
0082 #define MO_TS_INTSSTAT 0x20007C
0083 #define MO_VIP_INTMSK 0x200080
0084 #define MO_VIP_INTSTAT 0x200084
0085 #define MO_VIP_INTMSTAT 0x200088
0086 #define MO_VIP_INTSSTAT 0x20008C
0087 #define MO_GPHST_INTMSK 0x200090
0088 #define MO_GPHST_INTSTAT 0x200094
0089 #define MO_GPHST_INTMSTAT 0x200098
0090 #define MO_GPHST_INTSSTAT 0x20009C
0091
0092
0093 #define MO_DMA7_PTR1 0x300018
0094 #define MO_DMA8_PTR1 0x30001C
0095
0096
0097 #define MO_DMA21_PTR1 0x300080
0098 #define MO_DMA22_PTR1 0x300084
0099 #define MO_DMA23_PTR1 0x300088
0100 #define MO_DMA24_PTR1 0x30008C
0101 #define MO_DMA25_PTR1 0x300090
0102 #define MO_DMA26_PTR1 0x300094
0103 #define MO_DMA27_PTR1 0x300098
0104 #define MO_DMA28_PTR1 0x30009C
0105 #define MO_DMA29_PTR1 0x3000A0
0106 #define MO_DMA30_PTR1 0x3000A4
0107 #define MO_DMA31_PTR1 0x3000A8
0108 #define MO_DMA32_PTR1 0x3000AC
0109
0110 #define MO_DMA21_PTR2 0x3000C0
0111 #define MO_DMA22_PTR2 0x3000C4
0112 #define MO_DMA23_PTR2 0x3000C8
0113 #define MO_DMA24_PTR2 0x3000CC
0114 #define MO_DMA25_PTR2 0x3000D0
0115 #define MO_DMA26_PTR2 0x3000D4
0116 #define MO_DMA27_PTR2 0x3000D8
0117 #define MO_DMA28_PTR2 0x3000DC
0118 #define MO_DMA29_PTR2 0x3000E0
0119 #define MO_DMA30_PTR2 0x3000E4
0120 #define MO_DMA31_PTR2 0x3000E8
0121 #define MO_DMA32_PTR2 0x3000EC
0122
0123 #define MO_DMA21_CNT1 0x300100
0124 #define MO_DMA22_CNT1 0x300104
0125 #define MO_DMA23_CNT1 0x300108
0126 #define MO_DMA24_CNT1 0x30010C
0127 #define MO_DMA25_CNT1 0x300110
0128 #define MO_DMA26_CNT1 0x300114
0129 #define MO_DMA27_CNT1 0x300118
0130 #define MO_DMA28_CNT1 0x30011C
0131 #define MO_DMA29_CNT1 0x300120
0132 #define MO_DMA30_CNT1 0x300124
0133 #define MO_DMA31_CNT1 0x300128
0134 #define MO_DMA32_CNT1 0x30012C
0135
0136 #define MO_DMA21_CNT2 0x300140
0137 #define MO_DMA22_CNT2 0x300144
0138 #define MO_DMA23_CNT2 0x300148
0139 #define MO_DMA24_CNT2 0x30014C
0140 #define MO_DMA25_CNT2 0x300150
0141 #define MO_DMA26_CNT2 0x300154
0142 #define MO_DMA27_CNT2 0x300158
0143 #define MO_DMA28_CNT2 0x30015C
0144 #define MO_DMA29_CNT2 0x300160
0145 #define MO_DMA30_CNT2 0x300164
0146 #define MO_DMA31_CNT2 0x300168
0147 #define MO_DMA32_CNT2 0x30016C
0148
0149
0150
0151
0152
0153 #define MO_VIDY_DMA 0x310000
0154 #define MO_VIDU_DMA 0x310008
0155 #define MO_VIDV_DMA 0x310010
0156 #define MO_VBI_DMA 0x310018
0157
0158 #define MO_DEVICE_STATUS 0x310100
0159 #define MO_INPUT_FORMAT 0x310104
0160 #define MO_AGC_BURST 0x31010c
0161 #define MO_CONTR_BRIGHT 0x310110
0162 #define MO_UV_SATURATION 0x310114
0163 #define MO_HUE 0x310118
0164 #define MO_HTOTAL 0x310120
0165 #define MO_HDELAY_EVEN 0x310124
0166 #define MO_HDELAY_ODD 0x310128
0167 #define MO_VDELAY_ODD 0x31012c
0168 #define MO_VDELAY_EVEN 0x310130
0169 #define MO_HACTIVE_EVEN 0x31013c
0170 #define MO_HACTIVE_ODD 0x310140
0171 #define MO_VACTIVE_EVEN 0x310144
0172 #define MO_VACTIVE_ODD 0x310148
0173 #define MO_HSCALE_EVEN 0x31014c
0174 #define MO_HSCALE_ODD 0x310150
0175 #define MO_VSCALE_EVEN 0x310154
0176 #define MO_FILTER_EVEN 0x31015c
0177 #define MO_VSCALE_ODD 0x310158
0178 #define MO_FILTER_ODD 0x310160
0179 #define MO_OUTPUT_FORMAT 0x310164
0180
0181 #define MO_PLL_REG 0x310168
0182 #define MO_PLL_ADJ_CTRL 0x31016c
0183 #define MO_SCONV_REG 0x310170
0184 #define MO_SCONV_FIFO 0x310174
0185 #define MO_SUB_STEP 0x310178
0186 #define MO_SUB_STEP_DR 0x31017c
0187
0188 #define MO_CAPTURE_CTRL 0x310180
0189 #define MO_COLOR_CTRL 0x310184
0190 #define MO_VBI_PACKET 0x310188
0191 #define MO_FIELD_COUNT 0x310190
0192 #define MO_VIP_CONFIG 0x310194
0193 #define MO_VBOS_CONTROL 0x3101a8
0194
0195 #define MO_AGC_BACK_VBI 0x310200
0196 #define MO_AGC_SYNC_TIP1 0x310208
0197
0198 #define MO_VIDY_GPCNT 0x31C020
0199 #define MO_VIDU_GPCNT 0x31C024
0200 #define MO_VIDV_GPCNT 0x31C028
0201 #define MO_VBI_GPCNT 0x31C02C
0202 #define MO_VIDY_GPCNTRL 0x31C030
0203 #define MO_VIDU_GPCNTRL 0x31C034
0204 #define MO_VIDV_GPCNTRL 0x31C038
0205 #define MO_VBI_GPCNTRL 0x31C03C
0206 #define MO_VID_DMACNTRL 0x31C040
0207 #define MO_VID_XFR_STAT 0x31C044
0208
0209
0210
0211
0212
0213 #define MO_AUDD_DMA 0x320000
0214 #define MO_AUDU_DMA 0x320008
0215 #define MO_AUDR_DMA 0x320010
0216 #define MO_AUDD_GPCNT 0x32C020
0217 #define MO_AUDU_GPCNT 0x32C024
0218 #define MO_AUDR_GPCNT 0x32C028
0219 #define MO_AUDD_GPCNTRL 0x32C030
0220 #define MO_AUDU_GPCNTRL 0x32C034
0221 #define MO_AUDR_GPCNTRL 0x32C038
0222 #define MO_AUD_DMACNTRL 0x32C040
0223 #define MO_AUD_XFR_STAT 0x32C044
0224 #define MO_AUDD_LNGTH 0x32C048
0225 #define MO_AUDR_LNGTH 0x32C04C
0226
0227 #define AUD_INIT 0x320100
0228 #define AUD_INIT_LD 0x320104
0229 #define AUD_SOFT_RESET 0x320108
0230 #define AUD_I2SINPUTCNTL 0x320120
0231 #define AUD_BAUDRATE 0x320124
0232 #define AUD_I2SOUTPUTCNTL 0x320128
0233 #define AAGC_HYST 0x320134
0234 #define AAGC_GAIN 0x320138
0235 #define AAGC_DEF 0x32013c
0236 #define AUD_IIR1_0_SEL 0x320150
0237 #define AUD_IIR1_0_SHIFT 0x320154
0238 #define AUD_IIR1_1_SEL 0x320158
0239 #define AUD_IIR1_1_SHIFT 0x32015c
0240 #define AUD_IIR1_2_SEL 0x320160
0241 #define AUD_IIR1_2_SHIFT 0x320164
0242 #define AUD_IIR1_3_SEL 0x320168
0243 #define AUD_IIR1_3_SHIFT 0x32016c
0244 #define AUD_IIR1_4_SEL 0x320170
0245 #define AUD_IIR1_4_SHIFT 0x32017c
0246 #define AUD_IIR1_5_SEL 0x320180
0247 #define AUD_IIR1_5_SHIFT 0x320184
0248 #define AUD_IIR2_0_SEL 0x320190
0249 #define AUD_IIR2_0_SHIFT 0x320194
0250 #define AUD_IIR2_1_SEL 0x320198
0251 #define AUD_IIR2_1_SHIFT 0x32019c
0252 #define AUD_IIR2_2_SEL 0x3201a0
0253 #define AUD_IIR2_2_SHIFT 0x3201a4
0254 #define AUD_IIR2_3_SEL 0x3201a8
0255 #define AUD_IIR2_3_SHIFT 0x3201ac
0256 #define AUD_IIR3_0_SEL 0x3201c0
0257 #define AUD_IIR3_0_SHIFT 0x3201c4
0258 #define AUD_IIR3_1_SEL 0x3201c8
0259 #define AUD_IIR3_1_SHIFT 0x3201cc
0260 #define AUD_IIR3_2_SEL 0x3201d0
0261 #define AUD_IIR3_2_SHIFT 0x3201d4
0262 #define AUD_IIR4_0_SEL 0x3201e0
0263 #define AUD_IIR4_0_SHIFT 0x3201e4
0264 #define AUD_IIR4_1_SEL 0x3201e8
0265 #define AUD_IIR4_1_SHIFT 0x3201ec
0266 #define AUD_IIR4_2_SEL 0x3201f0
0267 #define AUD_IIR4_2_SHIFT 0x3201f4
0268 #define AUD_IIR4_0_CA0 0x320200
0269 #define AUD_IIR4_0_CA1 0x320204
0270 #define AUD_IIR4_0_CA2 0x320208
0271 #define AUD_IIR4_0_CB0 0x32020c
0272 #define AUD_IIR4_0_CB1 0x320210
0273 #define AUD_IIR4_1_CA0 0x320214
0274 #define AUD_IIR4_1_CA1 0x320218
0275 #define AUD_IIR4_1_CA2 0x32021c
0276 #define AUD_IIR4_1_CB0 0x320220
0277 #define AUD_IIR4_1_CB1 0x320224
0278 #define AUD_IIR4_2_CA0 0x320228
0279 #define AUD_IIR4_2_CA1 0x32022c
0280 #define AUD_IIR4_2_CA2 0x320230
0281 #define AUD_IIR4_2_CB0 0x320234
0282 #define AUD_IIR4_2_CB1 0x320238
0283 #define AUD_HP_MD_IIR4_1 0x320250
0284 #define AUD_HP_PROG_IIR4_1 0x320254
0285 #define AUD_FM_MODE_ENABLE 0x320258
0286 #define AUD_POLY0_DDS_CONSTANT 0x320270
0287 #define AUD_DN0_FREQ 0x320274
0288 #define AUD_DN1_FREQ 0x320278
0289 #define AUD_DN1_FREQ_SHIFT 0x32027c
0290 #define AUD_DN1_AFC 0x320280
0291 #define AUD_DN1_SRC_SEL 0x320284
0292 #define AUD_DN1_SHFT 0x320288
0293 #define AUD_DN2_FREQ 0x32028c
0294 #define AUD_DN2_FREQ_SHIFT 0x320290
0295 #define AUD_DN2_AFC 0x320294
0296 #define AUD_DN2_SRC_SEL 0x320298
0297 #define AUD_DN2_SHFT 0x32029c
0298 #define AUD_CRDC0_SRC_SEL 0x320300
0299 #define AUD_CRDC0_SHIFT 0x320304
0300 #define AUD_CORDIC_SHIFT_0 0x320308
0301 #define AUD_CRDC1_SRC_SEL 0x32030c
0302 #define AUD_CRDC1_SHIFT 0x320310
0303 #define AUD_CORDIC_SHIFT_1 0x320314
0304 #define AUD_DCOC_0_SRC 0x320320
0305 #define AUD_DCOC0_SHIFT 0x320324
0306 #define AUD_DCOC_0_SHIFT_IN0 0x320328
0307 #define AUD_DCOC_0_SHIFT_IN1 0x32032c
0308 #define AUD_DCOC_1_SRC 0x320330
0309 #define AUD_DCOC1_SHIFT 0x320334
0310 #define AUD_DCOC_1_SHIFT_IN0 0x320338
0311 #define AUD_DCOC_1_SHIFT_IN1 0x32033c
0312 #define AUD_DCOC_2_SRC 0x320340
0313 #define AUD_DCOC2_SHIFT 0x320344
0314 #define AUD_DCOC_2_SHIFT_IN0 0x320348
0315 #define AUD_DCOC_2_SHIFT_IN1 0x32034c
0316 #define AUD_DCOC_PASS_IN 0x320350
0317 #define AUD_PDET_SRC 0x320370
0318 #define AUD_PDET_SHIFT 0x320374
0319 #define AUD_PILOT_BQD_1_K0 0x320380
0320 #define AUD_PILOT_BQD_1_K1 0x320384
0321 #define AUD_PILOT_BQD_1_K2 0x320388
0322 #define AUD_PILOT_BQD_1_K3 0x32038c
0323 #define AUD_PILOT_BQD_1_K4 0x320390
0324 #define AUD_PILOT_BQD_2_K0 0x320394
0325 #define AUD_PILOT_BQD_2_K1 0x320398
0326 #define AUD_PILOT_BQD_2_K2 0x32039c
0327 #define AUD_PILOT_BQD_2_K3 0x3203a0
0328 #define AUD_PILOT_BQD_2_K4 0x3203a4
0329 #define AUD_THR_FR 0x3203c0
0330 #define AUD_X_PROG 0x3203c4
0331 #define AUD_Y_PROG 0x3203c8
0332 #define AUD_HARMONIC_MULT 0x3203cc
0333 #define AUD_C1_UP_THR 0x3203d0
0334 #define AUD_C1_LO_THR 0x3203d4
0335 #define AUD_C2_UP_THR 0x3203d8
0336 #define AUD_C2_LO_THR 0x3203dc
0337 #define AUD_PLL_EN 0x320400
0338 #define AUD_PLL_SRC 0x320404
0339 #define AUD_PLL_SHIFT 0x320408
0340 #define AUD_PLL_IF_SEL 0x32040c
0341 #define AUD_PLL_IF_SHIFT 0x320410
0342 #define AUD_BIQUAD_PLL_K0 0x320414
0343 #define AUD_BIQUAD_PLL_K1 0x320418
0344 #define AUD_BIQUAD_PLL_K2 0x32041c
0345 #define AUD_BIQUAD_PLL_K3 0x320420
0346 #define AUD_BIQUAD_PLL_K4 0x320424
0347 #define AUD_DEEMPH0_SRC_SEL 0x320440
0348 #define AUD_DEEMPH0_SHIFT 0x320444
0349 #define AUD_DEEMPH0_G0 0x320448
0350 #define AUD_DEEMPH0_A0 0x32044c
0351 #define AUD_DEEMPH0_B0 0x320450
0352 #define AUD_DEEMPH0_A1 0x320454
0353 #define AUD_DEEMPH0_B1 0x320458
0354 #define AUD_DEEMPH1_SRC_SEL 0x32045c
0355 #define AUD_DEEMPH1_SHIFT 0x320460
0356 #define AUD_DEEMPH1_G0 0x320464
0357 #define AUD_DEEMPH1_A0 0x320468
0358 #define AUD_DEEMPH1_B0 0x32046c
0359 #define AUD_DEEMPH1_A1 0x320470
0360 #define AUD_DEEMPH1_B1 0x320474
0361 #define AUD_OUT0_SEL 0x320490
0362 #define AUD_OUT0_SHIFT 0x320494
0363 #define AUD_OUT1_SEL 0x320498
0364 #define AUD_OUT1_SHIFT 0x32049c
0365 #define AUD_RDSI_SEL 0x3204a0
0366 #define AUD_RDSI_SHIFT 0x3204a4
0367 #define AUD_RDSQ_SEL 0x3204a8
0368 #define AUD_RDSQ_SHIFT 0x3204ac
0369 #define AUD_DBX_IN_GAIN 0x320500
0370 #define AUD_DBX_WBE_GAIN 0x320504
0371 #define AUD_DBX_SE_GAIN 0x320508
0372 #define AUD_DBX_RMS_WBE 0x32050c
0373 #define AUD_DBX_RMS_SE 0x320510
0374 #define AUD_DBX_SE_BYPASS 0x320514
0375 #define AUD_FAWDETCTL 0x320530
0376 #define AUD_FAWDETWINCTL 0x320534
0377 #define AUD_DEEMPHGAIN_R 0x320538
0378 #define AUD_DEEMPHNUMER1_R 0x32053c
0379 #define AUD_DEEMPHNUMER2_R 0x320540
0380 #define AUD_DEEMPHDENOM1_R 0x320544
0381 #define AUD_DEEMPHDENOM2_R 0x320548
0382 #define AUD_ERRLOGPERIOD_R 0x32054c
0383 #define AUD_ERRINTRPTTHSHLD1_R 0x320550
0384 #define AUD_ERRINTRPTTHSHLD2_R 0x320554
0385 #define AUD_ERRINTRPTTHSHLD3_R 0x320558
0386 #define AUD_NICAM_STATUS1 0x32055c
0387 #define AUD_NICAM_STATUS2 0x320560
0388 #define AUD_ERRLOG1 0x320564
0389 #define AUD_ERRLOG2 0x320568
0390 #define AUD_ERRLOG3 0x32056c
0391 #define AUD_DAC_BYPASS_L 0x320580
0392 #define AUD_DAC_BYPASS_R 0x320584
0393 #define AUD_DAC_BYPASS_CTL 0x320588
0394 #define AUD_CTL 0x32058c
0395 #define AUD_STATUS 0x320590
0396 #define AUD_VOL_CTL 0x320594
0397 #define AUD_BAL_CTL 0x320598
0398 #define AUD_START_TIMER 0x3205b0
0399 #define AUD_MODE_CHG_TIMER 0x3205b4
0400 #define AUD_POLYPH80SCALEFAC 0x3205b8
0401 #define AUD_DMD_RA_DDS 0x3205bc
0402 #define AUD_I2S_RA_DDS 0x3205c0
0403 #define AUD_RATE_THRES_DMD 0x3205d0
0404 #define AUD_RATE_THRES_I2S 0x3205d4
0405 #define AUD_RATE_ADJ1 0x3205d8
0406 #define AUD_RATE_ADJ2 0x3205dc
0407 #define AUD_RATE_ADJ3 0x3205e0
0408 #define AUD_RATE_ADJ4 0x3205e4
0409 #define AUD_RATE_ADJ5 0x3205e8
0410 #define AUD_APB_IN_RATE_ADJ 0x3205ec
0411 #define AUD_I2SCNTL 0x3205ec
0412 #define AUD_PHASE_FIX_CTL 0x3205f0
0413 #define AUD_PLL_PRESCALE 0x320600
0414 #define AUD_PLL_DDS 0x320604
0415 #define AUD_PLL_INT 0x320608
0416 #define AUD_PLL_FRAC 0x32060c
0417 #define AUD_PLL_JTAG 0x320620
0418 #define AUD_PLL_SPMP 0x320624
0419 #define AUD_AFE_12DB_EN 0x320628
0420
0421
0422 #define AUD_PDF_DDS_CNST_BYTE2 0x320d01
0423 #define AUD_PDF_DDS_CNST_BYTE1 0x320d02
0424 #define AUD_PDF_DDS_CNST_BYTE0 0x320d03
0425 #define AUD_PHACC_FREQ_8MSB 0x320d2a
0426 #define AUD_PHACC_FREQ_8LSB 0x320d2b
0427 #define AUD_QAM_MODE 0x320d04
0428
0429
0430
0431
0432
0433 #define MO_TS_DMA 0x330000
0434 #define MO_TS_GPCNT 0x33C020
0435 #define MO_TS_GPCNTRL 0x33C030
0436 #define MO_TS_DMACNTRL 0x33C040
0437 #define MO_TS_XFR_STAT 0x33C044
0438 #define MO_TS_LNGTH 0x33C048
0439
0440 #define TS_HW_SOP_CNTRL 0x33C04C
0441 #define TS_GEN_CNTRL 0x33C050
0442 #define TS_BD_PKT_STAT 0x33C054
0443 #define TS_SOP_STAT 0x33C058
0444 #define TS_FIFO_OVFL_STAT 0x33C05C
0445 #define TS_VALERR_CNTRL 0x33C060
0446
0447
0448
0449
0450
0451 #define MO_VIPD_DMA 0x340000
0452 #define MO_VIPU_DMA 0x340008
0453 #define MO_VIPD_GPCNT 0x34C020
0454 #define MO_VIPU_GPCNT 0x34C024
0455 #define MO_VIPD_GPCNTRL 0x34C030
0456 #define MO_VIPU_GPCNTRL 0x34C034
0457 #define MO_VIP_DMACNTRL 0x34C040
0458 #define MO_VIP_XFR_STAT 0x34C044
0459 #define MO_VIP_CFG 0x340048
0460 #define MO_VIPU_CNTRL 0x34004C
0461 #define MO_VIPD_CNTRL 0x340050
0462 #define MO_VIPD_LNGTH 0x340054
0463 #define MO_VIP_BRSTLN 0x340058
0464 #define MO_VIP_INTCNTRL 0x34C05C
0465 #define MO_VIP_XFTERM 0x340060
0466
0467
0468
0469
0470
0471 #define MO_M2M_DMA 0x350000
0472 #define MO_GP0_IO 0x350010
0473 #define MO_GP1_IO 0x350014
0474 #define MO_GP2_IO 0x350018
0475 #define MO_GP3_IO 0x35001C
0476 #define MO_GPIO 0x350020
0477 #define MO_GPOE 0x350024
0478 #define MO_GP_ISM 0x350028
0479
0480 #define MO_PLL_B 0x35C008
0481 #define MO_M2M_CNT 0x35C024
0482 #define MO_M2M_XSUM 0x35C028
0483 #define MO_CRC 0x35C02C
0484 #define MO_CRC_D 0x35C030
0485 #define MO_TM_CNT_LDW 0x35C034
0486 #define MO_TM_CNT_UW 0x35C038
0487 #define MO_TM_LMT_LDW 0x35C03C
0488 #define MO_TM_LMT_UW 0x35C040
0489 #define MO_PINMUX_IO 0x35C044
0490 #define MO_TSTSEL_IO 0x35C048
0491 #define MO_AFECFG_IO 0x35C04C
0492 #define MO_DDS_IO 0x35C050
0493 #define MO_DDSCFG_IO 0x35C054
0494 #define MO_SAMPLE_IO 0x35C058
0495 #define MO_SRST_IO 0x35C05C
0496
0497 #define MO_INT1_MSK 0x35C060
0498 #define MO_INT1_STAT 0x35C064
0499 #define MO_INT1_MSTAT 0x35C068
0500
0501
0502
0503
0504
0505 #define MO_I2C 0x368000
0506 #define MO_I2C_DIV (0xf<<4)
0507 #define MO_I2C_SYNC (1<<3)
0508 #define MO_I2C_W3B (1<<2)
0509 #define MO_I2C_SCL (1<<1)
0510 #define MO_I2C_SDA (1<<0)
0511
0512
0513
0514
0515
0516
0517
0518
0519 #define MO_GPHSTD_DMA 0x350000
0520 #define MO_GPHSTU_DMA 0x350008
0521 #define MO_GPHSTU_CNTRL 0x380048
0522 #define MO_GPHSTD_CNTRL 0x38004C
0523 #define MO_GPHSTD_LNGTH 0x380050
0524 #define MO_GPHST_WSC 0x380054
0525 #define MO_GPHST_XFR 0x380058
0526 #define MO_GPHST_WDTH 0x38005C
0527 #define MO_GPHST_HDSHK 0x380060
0528 #define MO_GPHST_MUX16 0x380064
0529 #define MO_GPHST_MODE 0x380068
0530
0531 #define MO_GPHSTD_GPCNT 0x35C020
0532 #define MO_GPHSTU_GPCNT 0x35C024
0533 #define MO_GPHSTD_GPCNTRL 0x38C030
0534 #define MO_GPHSTU_GPCNTRL 0x38C034
0535 #define MO_GPHST_DMACNTRL 0x38C040
0536 #define MO_GPHST_XFR_STAT 0x38C044
0537 #define MO_GPHST_SOFT_RST 0x38C06C
0538
0539
0540
0541
0542
0543 #define RISC_SYNC 0x80000000
0544 #define RISC_SYNC_ODD 0x80000000
0545 #define RISC_SYNC_EVEN 0x80000200
0546 #define RISC_RESYNC 0x80008000
0547 #define RISC_RESYNC_ODD 0x80008000
0548 #define RISC_RESYNC_EVEN 0x80008200
0549 #define RISC_WRITE 0x10000000
0550 #define RISC_WRITEC 0x50000000
0551 #define RISC_READ 0x90000000
0552 #define RISC_READC 0xA0000000
0553 #define RISC_JUMP 0x70000000
0554 #define RISC_SKIP 0x20000000
0555 #define RISC_WRITERM 0xB0000000
0556 #define RISC_WRITECM 0xC0000000
0557 #define RISC_WRITECR 0xD0000000
0558 #define RISC_IMM 0x00000001
0559
0560 #define RISC_SOL 0x08000000
0561 #define RISC_EOL 0x04000000
0562
0563 #define RISC_IRQ2 0x02000000
0564 #define RISC_IRQ1 0x01000000
0565
0566 #define RISC_CNT_NONE 0x00000000
0567 #define RISC_CNT_INC 0x00010000
0568 #define RISC_CNT_RSVR 0x00020000
0569 #define RISC_CNT_RESET 0x00030000
0570 #define RISC_JMP_SRP 0x01
0571
0572
0573
0574
0575
0576
0577
0578 #define PCI_INT_VIDINT (1 << 0)
0579 #define PCI_INT_AUDINT (1 << 1)
0580 #define PCI_INT_TSINT (1 << 2)
0581 #define PCI_INT_VIPINT (1 << 3)
0582 #define PCI_INT_HSTINT (1 << 4)
0583 #define PCI_INT_TM1INT (1 << 5)
0584 #define PCI_INT_SRCDMAINT (1 << 6)
0585 #define PCI_INT_DSTDMAINT (1 << 7)
0586 #define PCI_INT_RISC_RD_BERRINT (1 << 10)
0587 #define PCI_INT_RISC_WR_BERRINT (1 << 11)
0588 #define PCI_INT_BRDG_BERRINT (1 << 12)
0589 #define PCI_INT_SRC_DMA_BERRINT (1 << 13)
0590 #define PCI_INT_DST_DMA_BERRINT (1 << 14)
0591 #define PCI_INT_IPB_DMA_BERRINT (1 << 15)
0592 #define PCI_INT_I2CDONE (1 << 16)
0593 #define PCI_INT_I2CRACK (1 << 17)
0594 #define PCI_INT_IR_SMPINT (1 << 18)
0595 #define PCI_INT_GPIO_INT0 (1 << 19)
0596 #define PCI_INT_GPIO_INT1 (1 << 20)
0597
0598 #define SEL_BTSC 0x01
0599 #define SEL_EIAJ 0x02
0600 #define SEL_A2 0x04
0601 #define SEL_SAP 0x08
0602 #define SEL_NICAM 0x10
0603 #define SEL_FMRADIO 0x20
0604
0605
0606 #define AUD_INT_DN_RISCI1 (1 << 0)
0607 #define AUD_INT_UP_RISCI1 (1 << 1)
0608 #define AUD_INT_RDS_DN_RISCI1 (1 << 2)
0609 #define AUD_INT_DN_RISCI2 (1 << 4)
0610 #define AUD_INT_UP_RISCI2 (1 << 5)
0611 #define AUD_INT_RDS_DN_RISCI2 (1 << 6)
0612 #define AUD_INT_DN_SYNC (1 << 12)
0613 #define AUD_INT_UP_SYNC (1 << 13)
0614 #define AUD_INT_RDS_DN_SYNC (1 << 14)
0615 #define AUD_INT_OPC_ERR (1 << 16)
0616 #define AUD_INT_BER_IRQ (1 << 20)
0617 #define AUD_INT_MCHG_IRQ (1 << 21)
0618
0619 #define EN_BTSC_FORCE_MONO 0
0620 #define EN_BTSC_FORCE_STEREO 1
0621 #define EN_BTSC_FORCE_SAP 2
0622 #define EN_BTSC_AUTO_STEREO 3
0623 #define EN_BTSC_AUTO_SAP 4
0624
0625 #define EN_A2_FORCE_MONO1 8
0626 #define EN_A2_FORCE_MONO2 9
0627 #define EN_A2_FORCE_STEREO 10
0628 #define EN_A2_AUTO_MONO2 11
0629 #define EN_A2_AUTO_STEREO 12
0630
0631 #define EN_EIAJ_FORCE_MONO1 16
0632 #define EN_EIAJ_FORCE_MONO2 17
0633 #define EN_EIAJ_FORCE_STEREO 18
0634 #define EN_EIAJ_AUTO_MONO2 19
0635 #define EN_EIAJ_AUTO_STEREO 20
0636
0637 #define EN_NICAM_FORCE_MONO1 32
0638 #define EN_NICAM_FORCE_MONO2 33
0639 #define EN_NICAM_FORCE_STEREO 34
0640 #define EN_NICAM_AUTO_MONO2 35
0641 #define EN_NICAM_AUTO_STEREO 36
0642
0643 #define EN_FMRADIO_FORCE_MONO 24
0644 #define EN_FMRADIO_FORCE_STEREO 25
0645 #define EN_FMRADIO_AUTO_STEREO 26
0646
0647 #define EN_NICAM_AUTO_FALLBACK 0x00000040
0648 #define EN_FMRADIO_EN_RDS 0x00000200
0649 #define EN_NICAM_TRY_AGAIN_BIT 0x00000400
0650 #define EN_DAC_ENABLE 0x00001000
0651 #define EN_I2SOUT_ENABLE 0x00002000
0652 #define EN_I2SIN_STR2DAC 0x00004000
0653 #define EN_I2SIN_ENABLE 0x00008000
0654
0655 #define EN_DMTRX_SUMDIFF (0 << 7)
0656 #define EN_DMTRX_SUMR (1 << 7)
0657 #define EN_DMTRX_LR (2 << 7)
0658 #define EN_DMTRX_MONO (3 << 7)
0659 #define EN_DMTRX_BYPASS (1 << 11)
0660
0661
0662 #define VID_CAPTURE_CONTROL 0x310180
0663
0664 #define CX23880_CAP_CTL_CAPTURE_VBI_ODD (1<<3)
0665 #define CX23880_CAP_CTL_CAPTURE_VBI_EVEN (1<<2)
0666 #define CX23880_CAP_CTL_CAPTURE_ODD (1<<1)
0667 #define CX23880_CAP_CTL_CAPTURE_EVEN (1<<0)
0668
0669 #define VideoInputMux0 0x0
0670 #define VideoInputMux1 0x1
0671 #define VideoInputMux2 0x2
0672 #define VideoInputMux3 0x3
0673 #define VideoInputTuner 0x0
0674 #define VideoInputComposite 0x1
0675 #define VideoInputSVideo 0x2
0676 #define VideoInputOther 0x3
0677
0678 #define Xtal0 0x1
0679 #define Xtal1 0x2
0680 #define XtalAuto 0x3
0681
0682 #define VideoFormatAuto 0x0
0683 #define VideoFormatNTSC 0x1
0684 #define VideoFormatNTSCJapan 0x2
0685 #define VideoFormatNTSC443 0x3
0686 #define VideoFormatPAL 0x4
0687 #define VideoFormatPALB 0x4
0688 #define VideoFormatPALD 0x4
0689 #define VideoFormatPALG 0x4
0690 #define VideoFormatPALH 0x4
0691 #define VideoFormatPALI 0x4
0692 #define VideoFormatPALBDGHI 0x4
0693 #define VideoFormatPALM 0x5
0694 #define VideoFormatPALN 0x6
0695 #define VideoFormatPALNC 0x7
0696 #define VideoFormatPAL60 0x8
0697 #define VideoFormatSECAM 0x9
0698
0699 #define VideoFormatAuto27MHz 0x10
0700 #define VideoFormatNTSC27MHz 0x11
0701 #define VideoFormatNTSCJapan27MHz 0x12
0702 #define VideoFormatNTSC44327MHz 0x13
0703 #define VideoFormatPAL27MHz 0x14
0704 #define VideoFormatPALB27MHz 0x14
0705 #define VideoFormatPALD27MHz 0x14
0706 #define VideoFormatPALG27MHz 0x14
0707 #define VideoFormatPALH27MHz 0x14
0708 #define VideoFormatPALI27MHz 0x14
0709 #define VideoFormatPALBDGHI27MHz 0x14
0710 #define VideoFormatPALM27MHz 0x15
0711 #define VideoFormatPALN27MHz 0x16
0712 #define VideoFormatPALNC27MHz 0x17
0713 #define VideoFormatPAL6027MHz 0x18
0714 #define VideoFormatSECAM27MHz 0x19
0715
0716 #define NominalUSECAM 0x87
0717 #define NominalVSECAM 0x85
0718 #define NominalUNTSC 0xFE
0719 #define NominalVNTSC 0xB4
0720
0721 #define NominalContrast 0xD8
0722
0723 #define HFilterAutoFormat 0x0
0724 #define HFilterCIF 0x1
0725 #define HFilterQCIF 0x2
0726 #define HFilterICON 0x3
0727
0728 #define VFilter2TapInterpolate 0
0729 #define VFilter3TapInterpolate 1
0730 #define VFilter4TapInterpolate 2
0731 #define VFilter5TapInterpolate 3
0732 #define VFilter2TapNoInterpolate 4
0733 #define VFilter3TapNoInterpolate 5
0734 #define VFilter4TapNoInterpolate 6
0735 #define VFilter5TapNoInterpolate 7
0736
0737 #define ColorFormatRGB32 0x0000
0738 #define ColorFormatRGB24 0x0011
0739 #define ColorFormatRGB16 0x0022
0740 #define ColorFormatRGB15 0x0033
0741 #define ColorFormatYUY2 0x0044
0742 #define ColorFormatBTYUV 0x0055
0743 #define ColorFormatY8 0x0066
0744 #define ColorFormatRGB8 0x0077
0745 #define ColorFormatPL422 0x0088
0746 #define ColorFormatPL411 0x0099
0747 #define ColorFormatYUV12 0x00AA
0748 #define ColorFormatYUV9 0x00BB
0749 #define ColorFormatRAW 0x00EE
0750 #define ColorFormatBSWAP 0x0300
0751 #define ColorFormatWSWAP 0x0c00
0752 #define ColorFormatEvenMask 0x050f
0753 #define ColorFormatOddMask 0x0af0
0754 #define ColorFormatGamma 0x1000
0755
0756 #define Interlaced 0x1
0757 #define NonInterlaced 0x0
0758
0759 #define FieldEven 0x1
0760 #define FieldOdd 0x0
0761
0762 #define TGReadWriteMode 0x0
0763 #define TGEnableMode 0x1
0764
0765 #define DV_CbAlign 0x0
0766 #define DV_Y0Align 0x1
0767 #define DV_CrAlign 0x2
0768 #define DV_Y1Align 0x3
0769
0770 #define DVF_Analog 0x0
0771 #define DVF_CCIR656 0x1
0772 #define DVF_ByteStream 0x2
0773 #define DVF_ExtVSYNC 0x4
0774 #define DVF_ExtField 0x5
0775
0776 #define CHANNEL_VID_Y 0x1
0777 #define CHANNEL_VID_U 0x2
0778 #define CHANNEL_VID_V 0x3
0779 #define CHANNEL_VID_VBI 0x4
0780 #define CHANNEL_AUD_DN 0x5
0781 #define CHANNEL_AUD_UP 0x6
0782 #define CHANNEL_AUD_RDS_DN 0x7
0783 #define CHANNEL_MPEG_DN 0x8
0784 #define CHANNEL_VIP_DN 0x9
0785 #define CHANNEL_VIP_UP 0xA
0786 #define CHANNEL_HOST_DN 0xB
0787 #define CHANNEL_HOST_UP 0xC
0788 #define CHANNEL_FIRST 0x1
0789 #define CHANNEL_LAST 0xC
0790
0791 #define GP_COUNT_CONTROL_NONE 0x0
0792 #define GP_COUNT_CONTROL_INC 0x1
0793 #define GP_COUNT_CONTROL_RESERVED 0x2
0794 #define GP_COUNT_CONTROL_RESET 0x3
0795
0796 #define PLL_PRESCALE_BY_2 2
0797 #define PLL_PRESCALE_BY_3 3
0798 #define PLL_PRESCALE_BY_4 4
0799 #define PLL_PRESCALE_BY_5 5
0800
0801 #define HLNotchFilter4xFsc 0
0802 #define HLNotchFilterSquare 1
0803 #define HLNotchFilter135NTSC 2
0804 #define HLNotchFilter135PAL 3
0805
0806 #define NTSC_8x_SUB_CARRIER 28.63636E6
0807 #define PAL_8x_SUB_CARRIER 35.46895E6
0808
0809
0810 #define DEFAULT_HUE_NTSC 0x00
0811 #define DEFAULT_BRIGHTNESS_NTSC 0x00
0812 #define DEFAULT_CONTRAST_NTSC 0x39
0813 #define DEFAULT_SAT_U_NTSC 0x7F
0814 #define DEFAULT_SAT_V_NTSC 0x5A
0815
0816 #endif