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