xref: /linux/drivers/media/dvb-frontends/lgdt330x_priv.h (revision 9a0bf528b4d66b605f02634236da085595c22101)
1*9a0bf528SMauro Carvalho Chehab /*
2*9a0bf528SMauro Carvalho Chehab  *    Support for LGDT3302 and LGDT3303 - VSB/QAM
3*9a0bf528SMauro Carvalho Chehab  *
4*9a0bf528SMauro Carvalho Chehab  *    Copyright (C) 2005 Wilson Michaels <wilsonmichaels@earthlink.net>
5*9a0bf528SMauro Carvalho Chehab  *
6*9a0bf528SMauro Carvalho Chehab  *    This program is free software; you can redistribute it and/or modify
7*9a0bf528SMauro Carvalho Chehab  *    it under the terms of the GNU General Public License as published by
8*9a0bf528SMauro Carvalho Chehab  *    the Free Software Foundation; either version 2 of the License, or
9*9a0bf528SMauro Carvalho Chehab  *    (at your option) any later version.
10*9a0bf528SMauro Carvalho Chehab  *
11*9a0bf528SMauro Carvalho Chehab  *    This program is distributed in the hope that it will be useful,
12*9a0bf528SMauro Carvalho Chehab  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*9a0bf528SMauro Carvalho Chehab  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*9a0bf528SMauro Carvalho Chehab  *    GNU General Public License for more details.
15*9a0bf528SMauro Carvalho Chehab  *
16*9a0bf528SMauro Carvalho Chehab  *    You should have received a copy of the GNU General Public License
17*9a0bf528SMauro Carvalho Chehab  *    along with this program; if not, write to the Free Software
18*9a0bf528SMauro Carvalho Chehab  *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19*9a0bf528SMauro Carvalho Chehab  *
20*9a0bf528SMauro Carvalho Chehab  */
21*9a0bf528SMauro Carvalho Chehab 
22*9a0bf528SMauro Carvalho Chehab #ifndef _LGDT330X_PRIV_
23*9a0bf528SMauro Carvalho Chehab #define _LGDT330X_PRIV_
24*9a0bf528SMauro Carvalho Chehab 
25*9a0bf528SMauro Carvalho Chehab /* i2c control register addresses */
26*9a0bf528SMauro Carvalho Chehab enum I2C_REG {
27*9a0bf528SMauro Carvalho Chehab 	TOP_CONTROL= 0x00,
28*9a0bf528SMauro Carvalho Chehab 	IRQ_MASK= 0x01,
29*9a0bf528SMauro Carvalho Chehab 	IRQ_STATUS= 0x02,
30*9a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ0= 0x16,
31*9a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ1= 0x17,
32*9a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ2= 0x18,
33*9a0bf528SMauro Carvalho Chehab 	VSB_CARRIER_FREQ3= 0x19,
34*9a0bf528SMauro Carvalho Chehab 	CARRIER_MSEQAM1= 0x1a,
35*9a0bf528SMauro Carvalho Chehab 	CARRIER_MSEQAM2= 0x1b,
36*9a0bf528SMauro Carvalho Chehab 	CARRIER_LOCK= 0x1c,
37*9a0bf528SMauro Carvalho Chehab 	TIMING_RECOVERY= 0x1d,
38*9a0bf528SMauro Carvalho Chehab 	AGC_DELAY0= 0x2a,
39*9a0bf528SMauro Carvalho Chehab 	AGC_DELAY1= 0x2b,
40*9a0bf528SMauro Carvalho Chehab 	AGC_DELAY2= 0x2c,
41*9a0bf528SMauro Carvalho Chehab 	AGC_RF_BANDWIDTH0= 0x2d,
42*9a0bf528SMauro Carvalho Chehab 	AGC_RF_BANDWIDTH1= 0x2e,
43*9a0bf528SMauro Carvalho Chehab 	AGC_RF_BANDWIDTH2= 0x2f,
44*9a0bf528SMauro Carvalho Chehab 	AGC_LOOP_BANDWIDTH0= 0x30,
45*9a0bf528SMauro Carvalho Chehab 	AGC_LOOP_BANDWIDTH1= 0x31,
46*9a0bf528SMauro Carvalho Chehab 	AGC_FUNC_CTRL1= 0x32,
47*9a0bf528SMauro Carvalho Chehab 	AGC_FUNC_CTRL2= 0x33,
48*9a0bf528SMauro Carvalho Chehab 	AGC_FUNC_CTRL3= 0x34,
49*9a0bf528SMauro Carvalho Chehab 	AGC_RFIF_ACC0= 0x39,
50*9a0bf528SMauro Carvalho Chehab 	AGC_RFIF_ACC1= 0x3a,
51*9a0bf528SMauro Carvalho Chehab 	AGC_RFIF_ACC2= 0x3b,
52*9a0bf528SMauro Carvalho Chehab 	AGC_STATUS= 0x3f,
53*9a0bf528SMauro Carvalho Chehab 	SYNC_STATUS_VSB= 0x43,
54*9a0bf528SMauro Carvalho Chehab 	DEMUX_CONTROL= 0x66,
55*9a0bf528SMauro Carvalho Chehab 	LGDT3302_EQPH_ERR0= 0x47,
56*9a0bf528SMauro Carvalho Chehab 	LGDT3302_EQ_ERR1= 0x48,
57*9a0bf528SMauro Carvalho Chehab 	LGDT3302_EQ_ERR2= 0x49,
58*9a0bf528SMauro Carvalho Chehab 	LGDT3302_PH_ERR1= 0x4a,
59*9a0bf528SMauro Carvalho Chehab 	LGDT3302_PH_ERR2= 0x4b,
60*9a0bf528SMauro Carvalho Chehab 	LGDT3302_PACKET_ERR_COUNTER1= 0x6a,
61*9a0bf528SMauro Carvalho Chehab 	LGDT3302_PACKET_ERR_COUNTER2= 0x6b,
62*9a0bf528SMauro Carvalho Chehab 	LGDT3303_EQPH_ERR0= 0x6e,
63*9a0bf528SMauro Carvalho Chehab 	LGDT3303_EQ_ERR1= 0x6f,
64*9a0bf528SMauro Carvalho Chehab 	LGDT3303_EQ_ERR2= 0x70,
65*9a0bf528SMauro Carvalho Chehab 	LGDT3303_PH_ERR1= 0x71,
66*9a0bf528SMauro Carvalho Chehab 	LGDT3303_PH_ERR2= 0x72,
67*9a0bf528SMauro Carvalho Chehab 	LGDT3303_PACKET_ERR_COUNTER1= 0x8b,
68*9a0bf528SMauro Carvalho Chehab 	LGDT3303_PACKET_ERR_COUNTER2= 0x8c,
69*9a0bf528SMauro Carvalho Chehab };
70*9a0bf528SMauro Carvalho Chehab 
71*9a0bf528SMauro Carvalho Chehab #endif /* _LGDT330X_PRIV_ */
72*9a0bf528SMauro Carvalho Chehab 
73*9a0bf528SMauro Carvalho Chehab /*
74*9a0bf528SMauro Carvalho Chehab  * Local variables:
75*9a0bf528SMauro Carvalho Chehab  * c-basic-offset: 8
76*9a0bf528SMauro Carvalho Chehab  * End:
77*9a0bf528SMauro Carvalho Chehab  */
78