Path: blob/master/drivers/media/dvb/frontends/atbm8830_priv.h
15112 views
/*1* Support for AltoBeam GB20600 (a.k.a DMB-TH) demodulator2* ATBM8830, ATBM88313*4* Copyright (C) 2009 David T.L. Wong <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (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 of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021#ifndef __ATBM8830_PRIV_H22#define __ATBM8830_PRIV_H2324struct atbm_state {25struct i2c_adapter *i2c;26/* configuration settings */27const struct atbm8830_config *config;28struct dvb_frontend frontend;29};3031#define REG_CHIP_ID 0x000032#define REG_TUNER_BASEBAND 0x000133#define REG_DEMOD_RUN 0x000434#define REG_DSP_RESET 0x000535#define REG_RAM_RESET 0x000636#define REG_ADC_RESET 0x000737#define REG_TSPORT_RESET 0x000838#define REG_BLKERR_POL 0x000C39#define REG_I2C_GATE 0x010340#define REG_TS_SAMPLE_EDGE 0x030141#define REG_TS_PKT_LEN_204 0x030242#define REG_TS_PKT_LEN_AUTO 0x030343#define REG_TS_SERIAL 0x030544#define REG_TS_CLK_FREERUN 0x030645#define REG_TS_VALID_MODE 0x030746#define REG_TS_CLK_MODE 0x030B /* 1 for serial, 0 for parallel */4748#define REG_TS_ERRBIT_USE 0x030C49#define REG_LOCK_STATUS 0x030D50#define REG_ADC_CONFIG 0x060251#define REG_CARRIER_OFFSET 0x0827 /* 0x0827-0x0829 little endian */52#define REG_DETECTED_PN_MODE 0x082D53#define REG_READ_LATCH 0x084D54#define REG_IF_FREQ 0x0A00 /* 0x0A00-0x0A02 little endian */55#define REG_OSC_CLK 0x0A03 /* 0x0A03-0x0A05 little endian */56#define REG_BYPASS_CCI 0x0A0657#define REG_ANALOG_LUMA_DETECTED 0x0A2558#define REG_ANALOG_AUDIO_DETECTED 0x0A2659#define REG_ANALOG_CHROMA_DETECTED 0x0A3960#define REG_FRAME_ERR_CNT 0x0B0461#define REG_USE_EXT_ADC 0x0C0062#define REG_SWAP_I_Q 0x0C0163#define REG_TPS_MANUAL 0x0D0164#define REG_TPS_CONFIG 0x0D0265#define REG_BYPASS_DEINTERLEAVER 0x0E0066#define REG_AGC_TARGET 0x1003 /* 0x1003-0x1005 little endian */67#define REG_AGC_MIN 0x102068#define REG_AGC_MAX 0x102369#define REG_AGC_LOCK 0x102770#define REG_AGC_PWM_VAL 0x1028 /* 0x1028-0x1029 little endian */71#define REG_AGC_HOLD_LOOP 0x10317273#endif74757677