/* AF-901x DVB-T demodulator driver Copyright (c) Manu Abraham Copyright (c) AFA Technologies This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __AF9015_H #define __AF9015_H #include #define AF9015_DEFAULT_TS_PACKT_LEN 64 #define AF9015_DEFAULT_TS_FRAME_SIZE (64 * 188) enum af901x_ts_mode { AF901x_MPEG_PARALLEL = 0, AF901x_MPEG_SERIAL, AF901x_USB, }; enum af901x_f_sample { AF901x_FSAMPLE_28800 = 28800, /* 28.800 MHz */ AF901x_FSAMPLE_20480 = 20480, /* 20.480 MHz */ AF901x_FSAMPLE_28000 = 28000, /* 28.000 MHz */ AF901x_FSAMPLE_25000 = 25000, /* 25.000 MHz */ }; struct af901x_config { u8 addr; u8 slave; u8 eeprom_addr; u8 tuner_addr; // interface setting u32 frame_size; u16 packt_size; /* Initial settings*/ enum fe_bandwidth bandwidth; u32 inversion; // convert to enum enum af901x_ts_mode ts_mode; enum af901x_f_sample f_sample; /* nyquist sampling */ u32 i_freq_0; /* IF 1 */ u32 i_freq_1; /* IF 2 */ // u32 osc_freq; /* OSC freq = nyquist freq */ }; #endif //__AF9015_H