[media] em28xx: auto-select drx-k if CUSTOMISE is not set
[linux-2.6-block.git] / drivers / media / dvb / frontends / drxd.h
CommitLineData
126f1e61
RM
1/*
2 * drxd.h: DRXD DVB-T demodulator driver
3 *
4 * Copyright (C) 2005-2007 Micronas
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 only, as published by the Free Software Foundation.
9 *
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 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301, USA
21 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
22 */
23
24#ifndef _DRXD_H_
25#define _DRXD_H_
26
27#include <linux/types.h>
28#include <linux/i2c.h>
29
30struct drxd_config
31{
32 u8 index;
33
34 u8 pll_address;
35 u8 pll_type;
36#define DRXD_PLL_NONE 0
37#define DRXD_PLL_DTT7520X 1
38#define DRXD_PLL_MT3X0823 2
39
40 u32 clock;
ba967965 41 u8 insert_rs_byte;
126f1e61
RM
42
43 u8 demod_address;
44 u8 demoda_address;
45 u8 demod_revision;
46
47 u32 IF;
48 int (*pll_set) (void *priv, void *priv_params,
49 u8 pll_addr, u8 demoda_addr, s32 *off);
50 s16 (*osc_deviation) (void *priv, s16 dev, int flag);
51};
52
53extern
54struct dvb_frontend *drxd_attach(const struct drxd_config *config,
55 void *priv, struct i2c_adapter *i2c,
56 struct device *dev);
57extern int drxd_config_i2c(struct dvb_frontend *, int);
58#endif