Linux Kernel
3.7.1
|
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/videodev2.h>
#include "mt2063.h"
Go to the source code of this file.
Data Structures | |
struct | MT2063_ExclZone_t |
struct | MT2063_AvoidSpursData_t |
struct | mt2063_state |
struct | MT2063_FIFZone_t |
Macros | |
#define | dprintk(level, fmt, arg...) |
#define | MT2063_SPUR_PRESENT_ERR (0x00800000) |
#define | MT2063_SPUR_CNT_MASK (0x001f0000) |
#define | MT2063_SPUR_SHIFT (16) |
#define | MT2063_UPC_RANGE (0x04000000) |
#define | MT2063_DNC_RANGE (0x08000000) |
#define | MT2063_DECT_AVOID_US_FREQS 0x00000001 |
#define | MT2063_DECT_AVOID_EURO_FREQS 0x00000002 |
#define | MT2063_EXCLUDE_US_DECT_FREQUENCIES(s) (((s) & MT2063_DECT_AVOID_US_FREQS) != 0) |
#define | MT2063_EXCLUDE_EURO_DECT_FREQUENCIES(s) (((s) & MT2063_DECT_AVOID_EURO_FREQS) != 0) |
#define | MT2063_MAX_ZONES 48 |
#define | ceil(n, d) (((n) < 0) ? (-((-(n))/(d))) : (n)/(d) + ((n)%(d) != 0)) |
#define | floor(n, d) (((n) < 0) ? (-((-(n))/(d))) - ((n)%(d) != 0) : (n)/(d)) |
#define | MT2063_REF_FREQ (16000000UL) /* Reference oscillator Frequency (in Hz) */ |
#define | MT2063_IF1_BW (22000000UL) /* The IF1 filter bandwidth (in Hz) */ |
#define | MT2063_TUNE_STEP_SIZE (50000UL) /* Tune in steps of 50 kHz */ |
#define | MT2063_SPUR_STEP_HZ (250000UL) /* Step size (in Hz) to move IF1 when avoiding spurs */ |
#define | MT2063_ZIF_BW (2000000UL) /* Zero-IF spur-free bandwidth (in Hz) */ |
#define | MT2063_MAX_HARMONICS_1 (15UL) /* Highest intra-tuner LO Spur Harmonic to be avoided */ |
#define | MT2063_MAX_HARMONICS_2 (5UL) /* Highest inter-tuner LO Spur Harmonic to be avoided */ |
#define | MT2063_MIN_LO_SEP (1000000UL) /* Minimum inter-tuner LO frequency separation */ |
#define | MT2063_LO1_FRACN_AVOID (0UL) /* LO1 FracN numerator avoid region (in Hz) */ |
#define | MT2063_LO2_FRACN_AVOID (199999UL) /* LO2 FracN numerator avoid region (in Hz) */ |
#define | MT2063_MIN_FIN_FREQ (44000000UL) /* Minimum input frequency (in Hz) */ |
#define | MT2063_MAX_FIN_FREQ (1100000000UL) /* Maximum input frequency (in Hz) */ |
#define | MT2063_MIN_FOUT_FREQ (36000000UL) /* Minimum output frequency (in Hz) */ |
#define | MT2063_MAX_FOUT_FREQ (57000000UL) /* Maximum output frequency (in Hz) */ |
#define | MT2063_MIN_DNC_FREQ (1293000000UL) /* Minimum LO2 frequency (in Hz) */ |
#define | MT2063_MAX_DNC_FREQ (1614000000UL) /* Maximum LO2 frequency (in Hz) */ |
#define | MT2063_MIN_UPC_FREQ (1396000000UL) /* Minimum LO1 frequency (in Hz) */ |
#define | MT2063_MAX_UPC_FREQ (2750000000UL) /* Maximum LO1 frequency (in Hz) */ |
#define | MT2063_B0 (0x9B) |
#define | MT2063_B1 (0x9C) |
#define | MT2063_B2 (0x9D) |
#define | MT2063_B3 (0x9E) |
#define | MAX_SYMBOL_RATE_6MHz 5217391 |
Functions | |
module_param (debug, int, 0644) | |
MODULE_PARM_DESC (debug,"Set Verbosity level") | |
struct dvb_frontend * | mt2063_attach (struct dvb_frontend *fe, struct mt2063_config *config, struct i2c_adapter *i2c) |
EXPORT_SYMBOL_GPL (mt2063_attach) | |
MODULE_AUTHOR ("Mauro Carvalho Chehab <[email protected]>") | |
MODULE_DESCRIPTION ("MT2063 Silicon tuner") | |
MODULE_LICENSE ("GPL") | |
#define MT2063_EXCLUDE_EURO_DECT_FREQUENCIES | ( | s | ) | (((s) & MT2063_DECT_AVOID_EURO_FREQS) != 0) |
#define MT2063_EXCLUDE_US_DECT_FREQUENCIES | ( | s | ) | (((s) & MT2063_DECT_AVOID_US_FREQS) != 0) |
#define MT2063_IF1_BW (22000000UL) /* The IF1 filter bandwidth (in Hz) */ |
#define MT2063_LO1_FRACN_AVOID (0UL) /* LO1 FracN numerator avoid region (in Hz) */ |
#define MT2063_LO2_FRACN_AVOID (199999UL) /* LO2 FracN numerator avoid region (in Hz) */ |
#define MT2063_MAX_DNC_FREQ (1614000000UL) /* Maximum LO2 frequency (in Hz) */ |
#define MT2063_MAX_FIN_FREQ (1100000000UL) /* Maximum input frequency (in Hz) */ |
#define MT2063_MAX_FOUT_FREQ (57000000UL) /* Maximum output frequency (in Hz) */ |
#define MT2063_MAX_HARMONICS_1 (15UL) /* Highest intra-tuner LO Spur Harmonic to be avoided */ |
#define MT2063_MAX_HARMONICS_2 (5UL) /* Highest inter-tuner LO Spur Harmonic to be avoided */ |
#define MT2063_MAX_UPC_FREQ (2750000000UL) /* Maximum LO1 frequency (in Hz) */ |
#define MT2063_MIN_DNC_FREQ (1293000000UL) /* Minimum LO2 frequency (in Hz) */ |
#define MT2063_MIN_FIN_FREQ (44000000UL) /* Minimum input frequency (in Hz) */ |
#define MT2063_MIN_FOUT_FREQ (36000000UL) /* Minimum output frequency (in Hz) */ |
#define MT2063_MIN_LO_SEP (1000000UL) /* Minimum inter-tuner LO frequency separation */ |
#define MT2063_MIN_UPC_FREQ (1396000000UL) /* Minimum LO1 frequency (in Hz) */ |
#define MT2063_REF_FREQ (16000000UL) /* Reference oscillator Frequency (in Hz) */ |
#define MT2063_SPUR_STEP_HZ (250000UL) /* Step size (in Hz) to move IF1 when avoiding spurs */ |
#define MT2063_TUNE_STEP_SIZE (50000UL) /* Tune in steps of 50 kHz */ |
#define MT2063_ZIF_BW (2000000UL) /* Zero-IF spur-free bandwidth (in Hz) */ |
enum mt2063_delivery_sys |
enum MT2063_Mask_Bits |
EXPORT_SYMBOL_GPL | ( | mt2063_attach | ) |
MODULE_AUTHOR | ( | "Mauro Carvalho Chehab <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "MT2063 Silicon tuner" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
|
read |