Path: blob/master/drivers/media/common/tuners/max2165_priv.h
15112 views
/*1* Driver for Maxim MAX2165 silicon tuner2*3* Copyright (c) 2009 David T. L. Wong <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13*14* 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 __MAX2165_PRIV_H__22#define __MAX2165_PRIV_H__2324#define REG_NDIV_INT 0x0025#define REG_NDIV_FRAC2 0x0126#define REG_NDIV_FRAC1 0x0227#define REG_NDIV_FRAC0 0x0328#define REG_TRACK_FILTER 0x0429#define REG_LNA 0x0530#define REG_PLL_CFG 0x0631#define REG_TEST 0x0732#define REG_SHUTDOWN 0x0833#define REG_VCO_CTRL 0x0934#define REG_BASEBAND_CTRL 0x0A35#define REG_DC_OFFSET_CTRL 0x0B36#define REG_DC_OFFSET_DAC 0x0C37#define REG_ROM_TABLE_ADDR 0x0D3839/* Read Only Registers */40#define REG_ROM_TABLE_DATA 0x1041#define REG_STATUS 0x1142#define REG_AUTOTUNE 0x124344struct max2165_priv {45struct max2165_config *config;46struct i2c_adapter *i2c;4748u32 frequency;49u32 bandwidth;5051u8 tf_ntch_low_cfg;52u8 tf_ntch_hi_cfg;53u8 tf_balun_low_ref;54u8 tf_balun_hi_ref;55u8 bb_filter_7mhz_cfg;56u8 bb_filter_8mhz_cfg;57};5859#endif606162