2 * Realtek RTL2832 DVB-T demodulator driver
4 * Copyright (C) 2012 Thomas Mair <thomas.mair86@gmail.com>
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.
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.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #include <linux/dvb/frontend.h>
26 struct rtl2832_config
{
28 * Demodulator I2C address.
35 * 4000000, 16000000, 25000000, 28800000
41 * XXX: This must be keep sync with dvb_usb_rtl28xxu demod driver.
43 #define RTL2832_TUNER_TUA9001 0x24
44 #define RTL2832_TUNER_FC0012 0x26
45 #define RTL2832_TUNER_E4000 0x27
46 #define RTL2832_TUNER_FC0013 0x29
47 #define RTL2832_TUNER_R820T 0x2a
48 #define RTL2832_TUNER_R828D 0x2b
52 struct rtl2832_platform_data
{
53 const struct rtl2832_config
*config
;
58 * 4000000, 16000000, 25000000, 28800000
64 * XXX: This must be keep sync with dvb_usb_rtl28xxu USB IF driver.
66 #define RTL2832_TUNER_TUA9001 0x24
67 #define RTL2832_TUNER_FC0012 0x26
68 #define RTL2832_TUNER_E4000 0x27
69 #define RTL2832_TUNER_FC0013 0x29
70 #define RTL2832_TUNER_R820T 0x2a
71 #define RTL2832_TUNER_R828D 0x2b
77 struct dvb_frontend
* (*get_dvb_frontend
)(struct i2c_client
*);
78 struct i2c_adapter
* (*get_i2c_adapter
)(struct i2c_client
*);
79 struct i2c_adapter
* (*get_private_i2c_adapter
)(struct i2c_client
*);
80 int (*enable_slave_ts
)(struct i2c_client
*);
81 int (*pid_filter
)(struct dvb_frontend
*, u8
, u16
, int);
82 int (*pid_filter_ctrl
)(struct dvb_frontend
*, int);
83 /* Register access for SDR module */
84 int (*bulk_read
)(struct i2c_client
*, unsigned int, void *, size_t);
85 int (*bulk_write
)(struct i2c_client
*, unsigned int, const void *, size_t);
86 int (*update_bits
)(struct i2c_client
*, unsigned int, unsigned int, unsigned int);
89 #endif /* RTL2832_H */
This page took 0.033361 seconds and 5 git commands to generate.